Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-pubsub/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-pubsub</artifactId>
<version>v1-rev20260421-2.0.0</version>
<version>v1-rev20260602-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-pubsub:v1-rev20260421-2.0.0'
implementation 'com.google.apis:google-api-services-pubsub:v1-rev20260602-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.pubsub.model;

/**
* Configuration for compressing/decompressing message data using a user-specified compression
* algorithm.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Pub/Sub API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Compression extends com.google.api.client.json.GenericJson {

/**
* Required. Specifies the compression algorithm to use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String compressionAlgorithm;

/**
* Required. Specifies whether to compress or decompress the message.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String compressionMode;

/**
* Required. Specifies the compression algorithm to use.
* @return value or {@code null} for none
*/
public java.lang.String getCompressionAlgorithm() {
return compressionAlgorithm;
}

/**
* Required. Specifies the compression algorithm to use.
* @param compressionAlgorithm compressionAlgorithm or {@code null} for none
*/
public Compression setCompressionAlgorithm(java.lang.String compressionAlgorithm) {
this.compressionAlgorithm = compressionAlgorithm;
return this;
}

/**
* Required. Specifies whether to compress or decompress the message.
* @return value or {@code null} for none
*/
public java.lang.String getCompressionMode() {
return compressionMode;
}

/**
* Required. Specifies whether to compress or decompress the message.
* @param compressionMode compressionMode or {@code null} for none
*/
public Compression setCompressionMode(java.lang.String compressionMode) {
this.compressionMode = compressionMode;
return this;
}

@Override
public Compression set(String fieldName, Object value) {
return (Compression) super.set(fieldName, value);
}

@Override
public Compression clone() {
return (Compression) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public final class MessageTransform extends com.google.api.client.json.GenericJs
@com.google.api.client.util.Key
private AIInference aiInference;

/**
* Optional. Compression/Decompression.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Compression compression;

/**
* Optional. If true, the transform is disabled and will not be applied to messages. Defaults to
* `false`.
Expand Down Expand Up @@ -79,6 +86,23 @@ public MessageTransform setAiInference(AIInference aiInference) {
return this;
}

/**
* Optional. Compression/Decompression.
* @return value or {@code null} for none
*/
public Compression getCompression() {
return compression;
}

/**
* Optional. Compression/Decompression.
* @param compression compression or {@code null} for none
*/
public MessageTransform setCompression(Compression compression) {
this.compression = compression;
return this;
}

/**
* Optional. If true, the transform is disabled and will not be applied to messages. Defaults to
* `false`.
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-pubsub/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-pubsub</artifactId>
<version>v1-rev20260421-2.0.0</version>
<name>Cloud Pub/Sub API v1-rev20260421-2.0.0</name>
<version>v1-rev20260602-2.0.0</version>
<name>Cloud Pub/Sub API v1-rev20260602-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-pubsub/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-pubsub</artifactId>
<version>v1-rev20260421-2.0.0</version>
<version>v1-rev20260602-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-pubsub:v1-rev20260421-2.0.0'
implementation 'com.google.apis:google-api-services-pubsub:v1-rev20260602-2.0.0'
}
```

Expand Down