diff --git a/clients/google-api-services-pubsub/v1/2.0.0/README.md b/clients/google-api-services-pubsub/v1/2.0.0/README.md index 2bd78f68b1c..b7a1c7c2b6d 100644 --- a/clients/google-api-services-pubsub/v1/2.0.0/README.md +++ b/clients/google-api-services-pubsub/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-pubsub - v1-rev20260421-2.0.0 + v1-rev20260602-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/Compression.java b/clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/Compression.java new file mode 100644 index 00000000000..b291107c7d9 --- /dev/null +++ b/clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/Compression.java @@ -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. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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(); + } + +} diff --git a/clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/MessageTransform.java b/clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/MessageTransform.java index aaa33d75812..5341d87c427 100644 --- a/clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/MessageTransform.java +++ b/clients/google-api-services-pubsub/v1/2.0.0/com/google/api/services/pubsub/model/MessageTransform.java @@ -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`. @@ -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`. diff --git a/clients/google-api-services-pubsub/v1/2.0.0/pom.xml b/clients/google-api-services-pubsub/v1/2.0.0/pom.xml index a8aac20de66..2e474a57cb4 100644 --- a/clients/google-api-services-pubsub/v1/2.0.0/pom.xml +++ b/clients/google-api-services-pubsub/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-pubsub - v1-rev20260421-2.0.0 - Cloud Pub/Sub API v1-rev20260421-2.0.0 + v1-rev20260602-2.0.0 + Cloud Pub/Sub API v1-rev20260602-2.0.0 jar 2011 diff --git a/clients/google-api-services-pubsub/v1/README.md b/clients/google-api-services-pubsub/v1/README.md index 2bd78f68b1c..b7a1c7c2b6d 100644 --- a/clients/google-api-services-pubsub/v1/README.md +++ b/clients/google-api-services-pubsub/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-pubsub - v1-rev20260421-2.0.0 + v1-rev20260602-2.0.0 @@ -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' } ```