From 232fac1c47e0d3680dcc8d56b69d65ed0d379dde Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 16 May 2025 17:46:54 +0200 Subject: [PATCH 01/14] deps: update dependency com.google.protobuf:protobuf-java-util to v4.31.0 (#2430) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b73774790..2dc9b7d08 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 267ff17f2..21f0d23a7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c5877a62e..414e4c703 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 From b37c5573e1d0d7eada4ce4ec6a052521ea11cff1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 May 2025 17:23:01 +0200 Subject: [PATCH 02/14] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 (#2435) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2dc9b7d08..892b13e3a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.50.0 + 2.50.1 com.google.cloud diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 21f0d23a7..3bbeee007 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.50.0 + 2.50.1 com.google.cloud From 4f309d151d4bd584a33a0bb8882d0614a1b9d533 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 May 2025 17:23:10 +0200 Subject: [PATCH 03/14] deps: update dependency com.google.cloud:google-cloud-storage to v2.52.3 (#2436) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 892b13e3a..615922d94 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.52.2 + 2.52.3 com.google.cloud.opentelemetry diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3bbeee007..ca7eae922 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.52.2 + 2.52.3 com.google.cloud.opentelemetry From 3132d52ec4f974c8c276a8e55b8085a90a759d8e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 May 2025 00:14:44 +0200 Subject: [PATCH 04/14] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.139.4 (#2434) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 615922d94..364fccb9c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4 From 21cc3764aaa6fc05eb4a5078a72dae30694fba91 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 22 May 2025 09:56:54 -0400 Subject: [PATCH 05/14] chore: Update generation configuration at Thu May 22 02:33:49 UTC 2025 (#2432) * chore: Update generation configuration at Fri May 16 02:34:07 UTC 2025 * chore: generate libraries at Fri May 16 02:34:49 UTC 2025 * chore: Update generation configuration at Sat May 17 02:32:21 UTC 2025 * chore: Update generation configuration at Tue May 20 02:34:14 UTC 2025 * chore: Update generation configuration at Wed May 21 02:34:06 UTC 2025 * chore: Update generation configuration at Thu May 22 02:33:49 UTC 2025 * chore: generate libraries at Thu May 22 02:34:17 UTC 2025 --- README.md | 2 +- generation_config.yaml | 2 +- .../pubsub/v1/SubscriptionAdminClient.java | 4 +- .../reflect-config.json | 36 + .../com/google/pubsub/v1/SubscriberGrpc.java | 6 +- .../google/pubsub/v1/CloudStorageConfig.java | 24 +- .../v1/CloudStorageConfigOrBuilder.java | 6 +- .../google/pubsub/v1/DeadLetterPolicy.java | 8 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../pubsub/v1/IngestionFailureEvent.java | 6815 +++++++++++++---- .../v1/IngestionFailureEventOrBuilder.java | 44 + .../google/pubsub/v1/MessageTransform.java | 8 +- .../pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 375 +- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 4 +- .../pubsub/v1/StreamingPullRequest.java | 121 +- .../v1/StreamingPullRequestOrBuilder.java | 36 +- .../pubsub/v1/StreamingPullResponse.java | 314 +- .../com/google/pubsub/v1/Subscription.java | 56 +- .../pubsub/v1/SubscriptionOrBuilder.java | 14 +- .../main/proto/google/pubsub/v1/pubsub.proto | 90 +- 23 files changed, 6037 insertions(+), 1942 deletions(-) diff --git a/README.md b/README.md index b266a65ef..fe7b35eee 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4 ``` diff --git a/generation_config.yaml b/generation_config.yaml index 93466f8b5..4e87f268b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: f319bbc88abd22cd8c39c349e776cf3dc2722214 +googleapis_commitish: 488c8cc0d41aca4b4f33748ab6166129edcfd836 libraries_bom_version: 26.60.0 libraries: - api_shortname: pubsub diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index c18683cf6..61b93520f 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -266,7 +266,7 @@ * * *

StreamingPull - *

Establishes a stream with the server, which sends messages down to the client. The client streams acknowledgements and ack deadline modifications back to the server. The server will close the stream and return the status on any error. The server may close the stream with status `UNAVAILABLE` to reassign server-side resources, in which case, the client should re-establish the stream. Flow control can be achieved by configuring the underlying RPC channel. + *

Establishes a stream with the server, which sends messages down to the client. The client streams acknowledgments and ack deadline modifications back to the server. The server will close the stream and return the status on any error. The server may close the stream with status `UNAVAILABLE` to reassign server-side resources, in which case, the client should re-establish the stream. Flow control can be achieved by configuring the underlying RPC channel. * *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    @@ -2379,7 +2379,7 @@ public final UnaryCallable pullCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Establishes a stream with the server, which sends messages down to the client. The client - * streams acknowledgements and ack deadline modifications back to the server. The server will + * streams acknowledgments and ack deadline modifications back to the server. The server will * close the stream and return the status on any error. The server may close the stream with * status `UNAVAILABLE` to reassign server-side resources, in which case, the client should * re-establish the stream. Flow control can be achieved by configuring the underlying RPC diff --git a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 3c5de9478..f0c86a2e7 100644 --- a/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -2114,6 +2114,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsKinesisFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsKinesisFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsMskFailureReason", "queryAllDeclaredConstructors": true, @@ -2195,6 +2213,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$SchemaViolationReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$SchemaViolationReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.JavaScriptUDF", "queryAllDeclaredConstructors": true, diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 531c82e20..2a8fc9299 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -891,7 +891,7 @@ default void pull( * *
          * Establishes a stream with the server, which sends messages down to the
    -     * client. The client streams acknowledgements and ack deadline modifications
    +     * client. The client streams acknowledgments and ack deadline modifications
          * back to the server. The server will close the stream and return the status
          * on any error. The server may close the stream with status `UNAVAILABLE` to
          * reassign server-side resources, in which case, the client should
    @@ -1241,7 +1241,7 @@ public void pull(
          *
          * 
          * Establishes a stream with the server, which sends messages down to the
    -     * client. The client streams acknowledgements and ack deadline modifications
    +     * client. The client streams acknowledgments and ack deadline modifications
          * back to the server. The server will close the stream and return the status
          * on any error. The server may close the stream with status `UNAVAILABLE` to
          * reassign server-side resources, in which case, the client should
    @@ -1564,7 +1564,7 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r
          *
          * 
          * Establishes a stream with the server, which sends messages down to the
    -     * client. The client streams acknowledgements and ack deadline modifications
    +     * client. The client streams acknowledgments and ack deadline modifications
          * back to the server. The server will close the stream and return the status
          * on any error. The server may close the stream with status `UNAVAILABLE` to
          * reassign server-side resources, in which case, the client should
    diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
    index 6d4d9bbfb..601c178e6 100644
    --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
    +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
    @@ -1834,7 +1834,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig
        * 
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1853,7 +1853,7 @@ public boolean hasMaxDuration() { *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1872,7 +1872,7 @@ public com.google.protobuf.Duration getMaxDuration() { *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3667,7 +3667,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3685,7 +3685,7 @@ public boolean hasMaxDuration() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3709,7 +3709,7 @@ public com.google.protobuf.Duration getMaxDuration() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3735,7 +3735,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3758,7 +3758,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3789,7 +3789,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3812,7 +3812,7 @@ public Builder clearMaxDuration() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3830,7 +3830,7 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3852,7 +3852,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -     * exceed the subscription's acknowledgement deadline.
    +     * exceed the subscription's acknowledgment deadline.
          * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index b4977dc74..d3bbad242 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -242,7 +242,7 @@ public interface CloudStorageConfigOrBuilder *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -258,7 +258,7 @@ public interface CloudStorageConfigOrBuilder *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -274,7 +274,7 @@ public interface CloudStorageConfigOrBuilder *
        * Optional. The maximum duration that can elapse before a new Cloud Storage
        * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    -   * exceed the subscription's acknowledgement deadline.
    +   * exceed the subscription's acknowledgment deadline.
        * 
    * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 51009677c..eb42e4602 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -695,7 +695,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -723,7 +723,7 @@ public int getMaxDeliveryAttempts() { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -755,7 +755,7 @@ public Builder setMaxDeliveryAttempts(int value) { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index e5f13f3db..29f9d6536 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -74,7 +74,7 @@ public interface DeadLetterPolicyOrBuilder * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 206b6d9e9..b423b901d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -945,122 +945,2819 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface SchemaViolationReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
    +   * Set when a Pub/Sub message fails to get published due to a schema
    +   * validation violation.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} + */ + public static final class SchemaViolationReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + SchemaViolationReasonOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SchemaViolationReason.newBuilder() to construct. + private SchemaViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SchemaViolationReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SchemaViolationReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason other = + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Set when a Pub/Sub message fails to get published due to a schema
    +     * validation violation.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason build() { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason result = + new com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaViolationReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface CloudStorageFailureOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + java.lang.String getObjectName(); + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + com.google.protobuf.ByteString getObjectNameBytes(); + + /** + * + * + *
    +     * Optional. Generation of the Cloud Storage object which contained the
    +     * section that couldn't be ingested.
    +     * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + long getObjectGeneration(); + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + boolean hasAvroFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); + } + + /** + * + * + *
    +   * Failure when ingesting from a Cloud Storage source.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + CloudStorageFailureOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudStorageFailure.newBuilder() to construct. + private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageFailure() { + bucket_ = ""; + objectName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageFailure(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AVRO_FAILURE_REASON(5), + API_VIOLATION_REASON(6), + SCHEMA_VIOLATION_REASON(7), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return AVRO_FAILURE_REASON; + case 6: + return API_VIOLATION_REASON; + case 7: + return SCHEMA_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object objectName_ = ""; + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + @java.lang.Override + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } + } + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; + private long objectGeneration_ = 0L; + + /** + * + * + *
    +     * Optional. Generation of the Cloud Storage object which contained the
    +     * section that couldn't be ingested.
    +     * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + + public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + } + if (objectGeneration_ != 0L) { + output.writeInt64(3, objectGeneration_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 7) { + output.writeMessage( + 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + } + if (objectGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other = + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) obj; + + if (!getBucket().equals(other.getBucket())) return false; + if (!getObjectName().equals(other.getObjectName())) return false; + if (getObjectGeneration() != other.getObjectGeneration()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getAvroFailureReason().equals(other.getAvroFailureReason())) return false; + break; + case 6: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 7: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getObjectName().hashCode(); + hash = (37 * hash) + OBJECT_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectGeneration()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + AVRO_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getAvroFailureReason().hashCode(); + break; + case 6: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 7: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * Failure when ingesting from a Cloud Storage source.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + objectName_ = ""; + objectGeneration_ = 0L; + if (avroFailureReasonBuilder_ != null) { + avroFailureReasonBuilder_.clear(); + } + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = + new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectName_ = objectName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.objectGeneration_ = objectGeneration_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && avroFailureReasonBuilder_ != null) { + result.reason_ = avroFailureReasonBuilder_.build(); + } + if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + if (reasonCase_ == 7 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance()) + return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getObjectName().isEmpty()) { + objectName_ = other.objectName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getObjectGeneration() != 0L) { + setObjectGeneration(other.getObjectGeneration()); + } + switch (other.getReasonCase()) { + case AVRO_FAILURE_REASON: + { + mergeAvroFailureReason(other.getAvroFailureReason()); + break; + } + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + objectName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + objectGeneration_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + input.readMessage( + getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object bucket_ = ""; + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object objectName_ = ""; + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectName() { + objectName_ = getDefaultInstance().getObjectName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long objectGeneration_; + + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectGeneration to set. + * @return This builder for chaining. + */ + public Builder setObjectGeneration(long value) { + + objectGeneration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + objectGeneration_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + avroFailureReasonBuilder_; + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return avroFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder builderForValue) { + if (avroFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + avroFailureReasonBuilder_.mergeFrom(value); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + avroFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder + getAvroFailureReasonBuilder() { + return getAvroFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if ((reasonCase_ == 5) && (avroFailureReasonBuilder_ != null)) { + return avroFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + getAvroFailureReasonFieldBuilder() { + if (avroFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + avroFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return avroFailureReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 6; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 7) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 7) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + } + schemaViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 7) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + schemaViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 7; + onChanged(); + return schemaViolationReasonBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + private static final com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AwsMskFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * Optional. The ARN of the cluster of the topic being ingested from.
          * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ - java.lang.String getBucket(); + java.lang.String getClusterArn(); /** * * *
    -     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * Optional. The ARN of the cluster of the topic being ingested from.
          * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString getClusterArnBytes(); /** * * *
    -     * Optional. Name of the Cloud Storage object which contained the section
    -     * that couldn't be ingested.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ - java.lang.String getObjectName(); + java.lang.String getKafkaTopic(); /** * * *
    -     * Optional. Name of the Cloud Storage object which contained the section
    -     * that couldn't be ingested.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ - com.google.protobuf.ByteString getObjectNameBytes(); + com.google.protobuf.ByteString getKafkaTopicBytes(); /** * * *
    -     * Optional. Generation of the Cloud Storage object which contained the
    -     * section that couldn't be ingested.
    +     * Optional. The partition ID of the message that failed to be ingested.
          * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The partitionId. */ - long getObjectGeneration(); + long getPartitionId(); /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
          * 
    * - * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the avroFailureReason field is set. + * @return The offset. */ - boolean hasAvroFailureReason(); + long getOffset(); /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return Whether the apiViolationReason field is set. */ - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + boolean hasApiViolationReason(); /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The apiViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); /** * @@ -1071,91 +3768,103 @@ public interface CloudStorageFailureOrBuilder *
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + /** * - * @return Whether the apiViolationReason field is set. + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. */ - boolean hasApiViolationReason(); + boolean hasSchemaViolationReason(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } /** * * *
    -   * Failure when ingesting from a Cloud Storage source.
    +   * Failure when ingesting from an Amazon MSK source.
        * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ - public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - CloudStorageFailureOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + AwsMskFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use CloudStorageFailure.newBuilder() to construct. - private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AwsMskFailureReason.newBuilder() to construct. + private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudStorageFailure() { - bucket_ = ""; - objectName_ = ""; + private AwsMskFailureReason() { + clusterArn_ = ""; + kafkaTopic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CloudStorageFailure(); + return new AwsMskFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -1167,8 +3876,8 @@ public enum ReasonCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AVRO_FAILURE_REASON(5), - API_VIOLATION_REASON(6), + API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -1189,9 +3898,9 @@ public static ReasonCase valueOf(int value) { public static ReasonCase forNumber(int value) { switch (value) { case 5: - return AVRO_FAILURE_REASON; - case 6: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -1208,31 +3917,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int BUCKET_FIELD_NUMBER = 1; + public static final int CLUSTER_ARN_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object bucket_ = ""; + private volatile java.lang.Object clusterArn_ = ""; /** * * *
    -     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * Optional. The ARN of the cluster of the topic being ingested from.
          * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ @java.lang.Override - public java.lang.String getBucket() { - java.lang.Object ref = bucket_; + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - bucket_ = s; + clusterArn_ = s; return s; } } @@ -1241,52 +3950,51 @@ public java.lang.String getBucket() { * * *
    -     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * Optional. The ARN of the cluster of the topic being ingested from.
          * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { - java.lang.Object ref = bucket_; + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bucket_ = b; + clusterArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OBJECT_NAME_FIELD_NUMBER = 2; + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object objectName_ = ""; + private volatile java.lang.Object kafkaTopic_ = ""; /** * * *
    -     * Optional. Name of the Cloud Storage object which contained the section
    -     * that couldn't be ingested.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ @java.lang.Override - public java.lang.String getObjectName() { - java.lang.Object ref = objectName_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - objectName_ = s; + kafkaTopic_ = s; return s; } } @@ -1295,64 +4003,83 @@ public java.lang.String getObjectName() { * * *
    -     * Optional. Name of the Cloud Storage object which contained the section
    -     * that couldn't be ingested.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectNameBytes() { - java.lang.Object ref = objectName_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - objectName_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; - private long objectGeneration_ = 0L; + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; /** * * *
    -     * Optional. Generation of the Cloud Storage object which contained the
    -     * section that couldn't be ingested.
    +     * Optional. The partition ID of the message that failed to be ingested.
          * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The partitionId. */ @java.lang.Override - public long getObjectGeneration() { - return objectGeneration_; + public long getPartitionId() { + return partitionId_; } - public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
    +     * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the avroFailureReason field is set. + * @return Whether the apiViolationReason field is set. */ @java.lang.Override - public boolean hasAvroFailureReason() { + public boolean hasApiViolationReason() { return reasonCase_ == 5; } @@ -1360,61 +4087,62 @@ public boolean hasAvroFailureReason() { * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return The apiViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } /** * * *
    -     * Optional. Failure encountered when parsing an Avro file.
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder() { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } - public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { + public boolean hasSchemaViolationReason() { return reasonCase_ == 6; } @@ -1422,43 +4150,42 @@ public boolean hasApiViolationReason() { * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -1475,22 +4202,25 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); } - if (objectGeneration_ != 0L) { - output.writeInt64(3, objectGeneration_); + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); } if (reasonCase_ == 5) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } if (reasonCase_ == 6) { output.writeMessage( - 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -1501,24 +4231,27 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); } - if (objectGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); } if (reasonCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } if (reasonCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1530,22 +4263,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)) { + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other = - (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) obj; + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObjectName().equals(other.getObjectName())) return false; - if (getObjectGeneration() != other.getObjectGeneration()) return false; + if (!getClusterArn().equals(other.getClusterArn())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; switch (reasonCase_) { case 5: - if (!getAvroFailureReason().equals(other.getAvroFailureReason())) return false; + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; case 6: - if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; case 0: default: @@ -1561,21 +4295,23 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getBucket().hashCode(); - hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getObjectName().hashCode(); - hash = (37 * hash) + OBJECT_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectGeneration()); + hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getClusterArn().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); switch (reasonCase_) { case 5: - hash = (37 * hash) + AVRO_FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + getAvroFailureReason().hashCode(); - break; - case 6: hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -1584,71 +4320,71 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1666,7 +4402,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -1686,32 +4422,32 @@ protected Builder newBuilderForType( * * *
    -     * Failure when ingesting from a Cloud Storage source.
    +     * Failure when ingesting from an Amazon MSK source.
          * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); } - // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() + // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -1720,17 +4456,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { - super.clear(); - bitField0_ = 0; - bucket_ = ""; - objectName_ = ""; - objectGeneration_ = 0L; - if (avroFailureReasonBuilder_ != null) { - avroFailureReasonBuilder_.clear(); - } + super.clear(); + bitField0_ = 0; + clusterArn_ = ""; + kafkaTopic_ = ""; + partitionId_ = 0L; + offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -1739,18 +4476,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1758,9 +4495,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = - new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(this); + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -1770,29 +4507,32 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildParti } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.bucket_ = bucket_; + result.clusterArn_ = clusterArn_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectName_ = objectName_; + result.kafkaTopic_ = kafkaTopic_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectGeneration_ = objectGeneration_; + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; } } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; - if (reasonCase_ == 5 && avroFailureReasonBuilder_ != null) { - result.reason_ = avroFailureReasonBuilder_.build(); - } - if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -1832,8 +4572,8 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { - return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) other); + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) other); } else { super.mergeFrom(other); return this; @@ -1841,32 +4581,35 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance()) + == com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance()) return this; - if (!other.getBucket().isEmpty()) { - bucket_ = other.bucket_; + if (!other.getClusterArn().isEmpty()) { + clusterArn_ = other.clusterArn_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getObjectName().isEmpty()) { - objectName_ = other.objectName_; + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; bitField0_ |= 0x00000002; onChanged(); } - if (other.getObjectGeneration() != 0L) { - setObjectGeneration(other.getObjectGeneration()); + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); } switch (other.getReasonCase()) { - case AVRO_FAILURE_REASON: + case API_VIOLATION_REASON: { - mergeAvroFailureReason(other.getAvroFailureReason()); + mergeApiViolationReason(other.getApiViolationReason()); break; } - case API_VIOLATION_REASON: + case SCHEMA_VIOLATION_REASON: { - mergeApiViolationReason(other.getApiViolationReason()); + mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } case REASON_NOT_SET: @@ -1902,33 +4645,39 @@ public Builder mergeFrom( break; case 10: { - bucket_ = input.readStringRequireUtf8(); + clusterArn_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - objectName_ = input.readStringRequireUtf8(); + kafkaTopic_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { - objectGeneration_ = input.readInt64(); + partitionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 case 42: { input.readMessage( - getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 6; break; } // case 50 @@ -1965,25 +4714,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object bucket_ = ""; + private java.lang.Object clusterArn_ = ""; /** * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ - public java.lang.String getBucket() { - java.lang.Object ref = bucket_; + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - bucket_ = s; + clusterArn_ = s; return s; } else { return (java.lang.String) ref; @@ -1994,19 +4743,19 @@ public java.lang.String getBucket() { * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ - public com.google.protobuf.ByteString getBucketBytes() { - java.lang.Object ref = bucket_; + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bucket_ = b; + clusterArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2017,19 +4766,19 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bucket to set. + * @param value The clusterArn to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { + public Builder setClusterArn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bucket_ = value; + clusterArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -2039,15 +4788,15 @@ public Builder setBucket(java.lang.String value) { * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearBucket() { - bucket_ = getDefaultInstance().getBucket(); + public Builder clearClusterArn() { + clusterArn_ = getDefaultInstance().getClusterArn(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -2057,45 +4806,44 @@ public Builder clearBucket() { * * *
    -       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * Optional. The ARN of the cluster of the topic being ingested from.
            * 
    * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for bucket to set. + * @param value The bytes for clusterArn to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { + public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bucket_ = value; + clusterArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object objectName_ = ""; + private java.lang.Object kafkaTopic_ = ""; /** * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ - public java.lang.String getObjectName() { - java.lang.Object ref = objectName_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - objectName_ = s; + kafkaTopic_ = s; return s; } else { return (java.lang.String) ref; @@ -2106,20 +4854,19 @@ public java.lang.String getObjectName() { * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ - public com.google.protobuf.ByteString getObjectNameBytes() { - java.lang.Object ref = objectName_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - objectName_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2130,20 +4877,19 @@ public com.google.protobuf.ByteString getObjectNameBytes() { * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The objectName to set. + * @param value The kafkaTopic to set. * @return This builder for chaining. */ - public Builder setObjectName(java.lang.String value) { + public Builder setKafkaTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - objectName_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -2153,16 +4899,15 @@ public Builder setObjectName(java.lang.String value) { * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearObjectName() { - objectName_ = getDefaultInstance().getObjectName(); + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -2172,62 +4917,117 @@ public Builder clearObjectName() { * * *
    -       * Optional. Name of the Cloud Storage object which contained the section
    -       * that couldn't be ingested.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for objectName to set. + * @param value The bytes for kafkaTopic to set. * @return This builder for chaining. */ - public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - objectName_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - private long objectGeneration_; + private long partitionId_; + + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; /** * * *
    -       * Optional. Generation of the Cloud Storage object which contained the
    -       * section that couldn't be ingested.
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
            * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The offset. */ @java.lang.Override - public long getObjectGeneration() { - return objectGeneration_; + public long getOffset() { + return offset_; } /** * * *
    -       * Optional. Generation of the Cloud Storage object which contained the
    -       * section that couldn't be ingested.
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
            * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The objectGeneration to set. + * @param value The offset to set. * @return This builder for chaining. */ - public Builder setObjectGeneration(long value) { + public Builder setOffset(long value) { - objectGeneration_ = value; - bitField0_ |= 0x00000004; + offset_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2236,42 +5036,43 @@ public Builder setObjectGeneration(long value) { * * *
    -       * Optional. Generation of the Cloud Storage object which contained the
    -       * section that couldn't be ingested.
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
            * 
    * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearObjectGeneration() { - bitField0_ = (bitField0_ & ~0x00000004); - objectGeneration_ = 0L; + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> - avroFailureReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; /** * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the avroFailureReason field is set. + * @return Whether the apiViolationReason field is set. */ @java.lang.Override - public boolean hasAvroFailureReason() { + public boolean hasApiViolationReason() { return reasonCase_ == 5; } @@ -2279,27 +5080,28 @@ public boolean hasAvroFailureReason() { * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return The apiViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { - if (avroFailureReasonBuilder_ == null) { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } else { if (reasonCase_ == 5) { - return avroFailureReasonBuilder_.getMessage(); + return apiViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } @@ -2307,23 +5109,24 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { - if (avroFailureReasonBuilder_ == null) { + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - avroFailureReasonBuilder_.setMessage(value); + apiViolationReasonBuilder_.setMessage(value); } reasonCase_ = 5; return this; @@ -2333,20 +5136,21 @@ public Builder setAvroFailureReason( * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder builderForValue) { - if (avroFailureReasonBuilder_ == null) { + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - avroFailureReasonBuilder_.setMessage(builderForValue.build()); + apiViolationReasonBuilder_.setMessage(builderForValue.build()); } reasonCase_ = 5; return this; @@ -2356,23 +5160,24 @@ public Builder setAvroFailureReason( * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { - if (avroFailureReasonBuilder_ == null) { + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -2381,9 +5186,9 @@ public Builder mergeAvroFailureReason( onChanged(); } else { if (reasonCase_ == 5) { - avroFailureReasonBuilder_.mergeFrom(value); + apiViolationReasonBuilder_.mergeFrom(value); } else { - avroFailureReasonBuilder_.setMessage(value); + apiViolationReasonBuilder_.setMessage(value); } } reasonCase_ = 5; @@ -2394,15 +5199,16 @@ public Builder mergeAvroFailureReason( * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearAvroFailureReason() { - if (avroFailureReasonBuilder_ == null) { + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5) { reasonCase_ = 0; reason_ = null; @@ -2413,7 +5219,7 @@ public Builder clearAvroFailureReason() { reasonCase_ = 0; reason_ = null; } - avroFailureReasonBuilder_.clear(); + apiViolationReasonBuilder_.clear(); } return this; } @@ -2422,39 +5228,41 @@ public Builder clearAvroFailureReason() { * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder - getAvroFailureReasonBuilder() { - return getAvroFailureReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder() { - if ((reasonCase_ == 5) && (avroFailureReasonBuilder_ != null)) { - return avroFailureReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); } else { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } @@ -2462,60 +5270,60 @@ public Builder clearAvroFailureReason() { * * *
    -       * Optional. Failure encountered when parsing an Avro file.
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> - getAvroFailureReasonFieldBuilder() { - if (avroFailureReasonBuilder_ == null) { + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } - avroFailureReasonBuilder_ = + apiViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } reasonCase_ = 5; onChanged(); - return avroFailureReasonBuilder_; + return apiViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { + public boolean hasSchemaViolationReason() { return reasonCase_ == 6; } @@ -2523,28 +5331,30 @@ public boolean hasApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { if (reasonCase_ == 6) { - return apiViolationReasonBuilder_.getMessage(); + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -2552,24 +5362,23 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } reasonCase_ = 6; return this; @@ -2579,21 +5388,21 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } reasonCase_ = 6; return this; @@ -2603,24 +5412,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -2629,9 +5437,9 @@ public Builder mergeApiViolationReason( onChanged(); } else { if (reasonCase_ == 6) { - apiViolationReasonBuilder_.mergeFrom(value); + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } reasonCase_ = 6; @@ -2642,16 +5450,15 @@ public Builder mergeApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; @@ -2662,7 +5469,7 @@ public Builder clearApiViolationReason() { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -2671,41 +5478,40 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
    + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -2713,37 +5519,37 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -2758,26 +5564,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - private static final com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(); + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public CloudStorageFailure parsePartialFrom( + public AwsMskFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2797,78 +5603,78 @@ public CloudStorageFailure parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AwsMskFailureReasonOrBuilder + public interface AzureEventHubsFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * Optional. The namespace containing the event hub being ingested from.
          * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ - java.lang.String getClusterArn(); + java.lang.String getNamespace(); /** * * *
    -     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * Optional. The namespace containing the event hub being ingested from.
          * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ - com.google.protobuf.ByteString getClusterArnBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The name of the event hub being ingested from.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ - java.lang.String getKafkaTopic(); + java.lang.String getEventHub(); /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The name of the event hub being ingested from.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ - com.google.protobuf.ByteString getKafkaTopicBytes(); + com.google.protobuf.ByteString getEventHubBytes(); /** * @@ -2944,53 +5750,99 @@ public interface AwsMskFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder getApiViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase + getReasonCase(); } /** * * *
    -   * Failure when ingesting from an Amazon MSK source.
    +   * Failure when ingesting from an Azure Event Hubs source.
        * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} */ - public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 + public static final class AzureEventHubsFailureReason + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - AwsMskFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + AzureEventHubsFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use AwsMskFailureReason.newBuilder() to construct. - private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AzureEventHubsFailureReason.newBuilder() to construct. + private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AwsMskFailureReason() { - clusterArn_ = ""; - kafkaTopic_ = ""; + private AzureEventHubsFailureReason() { + namespace_ = ""; + eventHub_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AwsMskFailureReason(); + return new AzureEventHubsFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -3003,6 +5855,7 @@ public enum ReasonCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -3024,6 +5877,8 @@ public static ReasonCase forNumber(int value) { switch (value) { case 5: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -3040,31 +5895,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int CLUSTER_ARN_FIELD_NUMBER = 1; + public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object clusterArn_ = ""; + private volatile java.lang.Object namespace_ = ""; /** * * *
    -     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * Optional. The namespace containing the event hub being ingested from.
          * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ @java.lang.Override - public java.lang.String getClusterArn() { - java.lang.Object ref = clusterArn_; + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterArn_ = s; + namespace_ = s; return s; } } @@ -3073,51 +5928,51 @@ public java.lang.String getClusterArn() { * * *
    -     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * Optional. The namespace containing the event hub being ingested from.
          * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterArnBytes() { - java.lang.Object ref = clusterArn_; + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterArn_ = b; + namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; + public static final int EVENT_HUB_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object kafkaTopic_ = ""; + private volatile java.lang.Object eventHub_ = ""; /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The name of the event hub being ingested from.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ @java.lang.Override - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + eventHub_ = s; return s; } } @@ -3126,20 +5981,20 @@ public java.lang.String getKafkaTopic() { * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The name of the event hub being ingested from.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ @java.lang.Override - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + eventHub_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3249,6 +6104,68 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3263,11 +6180,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -3277,7 +6194,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (reasonCase_ == 5) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -3288,11 +6209,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -3305,6 +6226,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3315,14 +6241,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)) { + if (!(obj + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) obj; - if (!getClusterArn().equals(other.getClusterArn())) return false; - if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getEventHub().equals(other.getEventHub())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; @@ -3330,6 +6257,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; + case 6: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; case 0: default: } @@ -3344,10 +6274,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; - hash = (53 * hash) + getClusterArn().hashCode(); - hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; + hash = (53 * hash) + getEventHub().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); hash = (37 * hash) + OFFSET_FIELD_NUMBER; @@ -3357,6 +6287,10 @@ public int hashCode() { hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -3365,71 +6299,72 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3447,7 +6382,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3467,32 +6402,34 @@ protected Builder newBuilderForType( * * *
    -     * Failure when ingesting from an Amazon MSK source.
    +     * Failure when ingesting from an Azure Event Hubs source.
          * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + .class); } - // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -3503,13 +6440,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - clusterArn_ = ""; - kafkaTopic_ = ""; + namespace_ = ""; + eventHub_ = ""; partitionId_ = 0L; offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -3518,18 +6458,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3537,9 +6479,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3549,13 +6491,13 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildParti } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterArn_ = clusterArn_; + result.namespace_ = namespace_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.kafkaTopic_ = kafkaTopic_; + result.eventHub_ = eventHub_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; @@ -3566,12 +6508,15 @@ private void buildPartial0( } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -3611,8 +6556,10 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { - return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) other); + if (other + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) other); } else { super.mergeFrom(other); return this; @@ -3620,17 +6567,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance()) - return this; - if (!other.getClusterArn().isEmpty()) { - clusterArn_ = other.clusterArn_; + == com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance()) return this; + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getKafkaTopic().isEmpty()) { - kafkaTopic_ = other.kafkaTopic_; + if (!other.getEventHub().isEmpty()) { + eventHub_ = other.eventHub_; bitField0_ |= 0x00000002; onChanged(); } @@ -3646,6 +6593,11 @@ public Builder mergeFrom( mergeApiViolationReason(other.getApiViolationReason()); break; } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } case REASON_NOT_SET: { break; @@ -3679,13 +6631,13 @@ public Builder mergeFrom( break; case 10: { - clusterArn_ = input.readStringRequireUtf8(); + namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - kafkaTopic_ = input.readStringRequireUtf8(); + eventHub_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -3708,6 +6660,13 @@ public Builder mergeFrom( reasonCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3741,25 +6700,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object clusterArn_ = ""; + private java.lang.Object namespace_ = ""; /** * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ - public java.lang.String getClusterArn() { - java.lang.Object ref = clusterArn_; + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterArn_ = s; + namespace_ = s; return s; } else { return (java.lang.String) ref; @@ -3770,19 +6729,19 @@ public java.lang.String getClusterArn() { * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ - public com.google.protobuf.ByteString getClusterArnBytes() { - java.lang.Object ref = clusterArn_; + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterArn_ = b; + namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3793,19 +6752,19 @@ public com.google.protobuf.ByteString getClusterArnBytes() { * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The clusterArn to set. + * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setClusterArn(java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clusterArn_ = value; + namespace_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -3815,15 +6774,15 @@ public Builder setClusterArn(java.lang.String value) { * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearClusterArn() { - clusterArn_ = getDefaultInstance().getClusterArn(); + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -3833,44 +6792,44 @@ public Builder clearClusterArn() { * * *
    -       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * Optional. The namespace containing the event hub being ingested from.
            * 
    * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for clusterArn to set. + * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clusterArn_ = value; + namespace_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object kafkaTopic_ = ""; + private java.lang.Object eventHub_ = ""; /** * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + eventHub_ = s; return s; } else { return (java.lang.String) ref; @@ -3881,19 +6840,19 @@ public java.lang.String getKafkaTopic() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + eventHub_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3904,19 +6863,19 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The kafkaTopic to set. + * @param value The eventHub to set. * @return This builder for chaining. */ - public Builder setKafkaTopic(java.lang.String value) { + public Builder setEventHub(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kafkaTopic_ = value; + eventHub_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -3926,15 +6885,15 @@ public Builder setKafkaTopic(java.lang.String value) { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearKafkaTopic() { - kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + public Builder clearEventHub() { + eventHub_ = getDefaultInstance().getEventHub(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -3944,20 +6903,20 @@ public Builder clearKafkaTopic() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The name of the event hub being ingested from.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for kafkaTopic to set. + * @param value The bytes for eventHub to set. * @return This builder for chaining. */ - public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + public Builder setEventHubBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kafkaTopic_ = value; + eventHub_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -4075,60 +7034,313 @@ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000008); offset_ = 0L; onChanged(); - return this; + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { - if (reasonCase_ == 5) { - return apiViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -4136,26 +7348,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4163,23 +7374,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4187,24 +7398,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5 + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -4212,13 +7422,13 @@ public Builder mergeApiViolationReason( } onChanged(); } else { - if (reasonCase_ == 5) { - apiViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4226,27 +7436,26 @@ public Builder mergeApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 5) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -4255,41 +7464,40 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -4297,37 +7505,37 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -4342,26 +7550,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(); + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AwsMskFailureReason parsePartialFrom( + public AzureEventHubsFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4381,78 +7590,78 @@ public AwsMskFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AzureEventHubsFailureReasonOrBuilder + public interface ConfluentCloudFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * Optional. The namespace containing the event hub being ingested from.
    +     * Optional. The cluster ID containing the topic being ingested from.
          * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ - java.lang.String getNamespace(); + java.lang.String getClusterId(); /** * * *
    -     * Optional. The namespace containing the event hub being ingested from.
    +     * Optional. The cluster ID containing the topic being ingested from.
          * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ - com.google.protobuf.ByteString getNamespaceBytes(); + com.google.protobuf.ByteString getClusterIdBytes(); /** * * *
    -     * Optional. The name of the event hub being ingested from.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ - java.lang.String getEventHub(); + java.lang.String getKafkaTopic(); /** * * *
    -     * Optional. The name of the event hub being ingested from.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ - com.google.protobuf.ByteString getEventHubBytes(); + com.google.protobuf.ByteString getKafkaTopicBytes(); /** * @@ -4528,7 +7737,51 @@ public interface AzureEventHubsFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder getApiViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase getReasonCase(); } @@ -4536,47 +7789,47 @@ public interface AzureEventHubsFailureReasonOrBuilder * * *
    -   * Failure when ingesting from an Azure Event Hubs source.
    +   * Failure when ingesting from a Confluent Cloud source.
        * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} */ - public static final class AzureEventHubsFailureReason + public static final class ConfluentCloudFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - AzureEventHubsFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + ConfluentCloudFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use AzureEventHubsFailureReason.newBuilder() to construct. - private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConfluentCloudFailureReason.newBuilder() to construct. + private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AzureEventHubsFailureReason() { - namespace_ = ""; - eventHub_ = ""; + private ConfluentCloudFailureReason() { + clusterId_ = ""; + kafkaTopic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AzureEventHubsFailureReason(); + return new ConfluentCloudFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -4589,6 +7842,7 @@ public enum ReasonCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -4610,6 +7864,8 @@ public static ReasonCase forNumber(int value) { switch (value) { case 5: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -4626,31 +7882,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int NAMESPACE_FIELD_NUMBER = 1; + public static final int CLUSTER_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object namespace_ = ""; + private volatile java.lang.Object clusterId_ = ""; /** * * *
    -     * Optional. The namespace containing the event hub being ingested from.
    +     * Optional. The cluster ID containing the topic being ingested from.
          * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ @java.lang.Override - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - namespace_ = s; + clusterId_ = s; return s; } } @@ -4659,51 +7915,51 @@ public java.lang.String getNamespace() { * * *
    -     * Optional. The namespace containing the event hub being ingested from.
    +     * Optional. The cluster ID containing the topic being ingested from.
          * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ @java.lang.Override - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; + clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int EVENT_HUB_FIELD_NUMBER = 2; + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object eventHub_ = ""; + private volatile java.lang.Object kafkaTopic_ = ""; /** * * *
    -     * Optional. The name of the event hub being ingested from.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ @java.lang.Override - public java.lang.String getEventHub() { - java.lang.Object ref = eventHub_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - eventHub_ = s; + kafkaTopic_ = s; return s; } } @@ -4712,20 +7968,20 @@ public java.lang.String getEventHub() { * * *
    -     * Optional. The name of the event hub being ingested from.
    +     * Optional. The name of the Kafka topic being ingested from.
          * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getEventHubBytes() { - java.lang.Object ref = eventHub_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventHub_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4835,6 +8091,68 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
    +     * Optional. The Pub/Sub message failed schema validation.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4849,11 +8167,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -4865,6 +8183,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } getUnknownFields().writeTo(output); } @@ -4874,11 +8196,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -4891,6 +8213,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4902,14 +8229,14 @@ public boolean equals(final java.lang.Object obj) { return true; } if (!(obj - instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)) { + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) obj; - if (!getNamespace().equals(other.getNamespace())) return false; - if (!getEventHub().equals(other.getEventHub())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; @@ -4917,6 +8244,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; + case 6: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; case 0: default: } @@ -4931,10 +8261,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; - hash = (53 * hash) + getEventHub().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); hash = (37 * hash) + OFFSET_FIELD_NUMBER; @@ -4944,6 +8274,10 @@ public int hashCode() { hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -4952,59 +8286,59 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5012,12 +8346,12 @@ public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureRe PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5035,7 +8369,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5055,34 +8389,34 @@ protected Builder newBuilderForType( * * *
    -     * Failure when ingesting from an Azure Event Hubs source.
    +     * Failure when ingesting from a Confluent Cloud source.
          * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder .class); } // Construct using - // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() + // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -5093,13 +8427,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - namespace_ = ""; - eventHub_ = ""; + clusterId_ = ""; + kafkaTopic_ = ""; partitionId_ = 0L; offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -5108,19 +8445,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -5129,9 +8466,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason bu } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -5141,13 +8478,13 @@ public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason bu } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.namespace_ = namespace_; + result.clusterId_ = clusterId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventHub_ = eventHub_; + result.kafkaTopic_ = kafkaTopic_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; @@ -5158,12 +8495,15 @@ private void buildPartial0( } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -5204,9 +8544,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) { + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) { return mergeFrom( - (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) other); + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) other); } else { super.mergeFrom(other); return this; @@ -5214,17 +8554,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + == com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance()) return this; - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getEventHub().isEmpty()) { - eventHub_ = other.eventHub_; + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; bitField0_ |= 0x00000002; onChanged(); } @@ -5240,6 +8580,11 @@ public Builder mergeFrom( mergeApiViolationReason(other.getApiViolationReason()); break; } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } case REASON_NOT_SET: { break; @@ -5273,13 +8618,13 @@ public Builder mergeFrom( break; case 10: { - namespace_ = input.readStringRequireUtf8(); + clusterId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - eventHub_ = input.readStringRequireUtf8(); + kafkaTopic_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -5302,6 +8647,13 @@ public Builder mergeFrom( reasonCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5335,25 +8687,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object namespace_ = ""; + private java.lang.Object clusterId_ = ""; /** * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - namespace_ = s; + clusterId_ = s; return s; } else { return (java.lang.String) ref; @@ -5364,19 +8716,19 @@ public java.lang.String getNamespace() { * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; + clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5387,19 +8739,19 @@ public com.google.protobuf.ByteString getNamespaceBytes() { * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The namespace to set. + * @param value The clusterId to set. * @return This builder for chaining. */ - public Builder setNamespace(java.lang.String value) { + public Builder setClusterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - namespace_ = value; + clusterId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -5409,15 +8761,15 @@ public Builder setNamespace(java.lang.String value) { * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearNamespace() { - namespace_ = getDefaultInstance().getNamespace(); + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -5427,44 +8779,44 @@ public Builder clearNamespace() { * * *
    -       * Optional. The namespace containing the event hub being ingested from.
    +       * Optional. The cluster ID containing the topic being ingested from.
            * 
    * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for namespace to set. + * @param value The bytes for clusterId to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - namespace_ = value; + clusterId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object eventHub_ = ""; + private java.lang.Object kafkaTopic_ = ""; /** * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ - public java.lang.String getEventHub() { - java.lang.Object ref = eventHub_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - eventHub_ = s; + kafkaTopic_ = s; return s; } else { return (java.lang.String) ref; @@ -5475,19 +8827,19 @@ public java.lang.String getEventHub() { * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ - public com.google.protobuf.ByteString getEventHubBytes() { - java.lang.Object ref = eventHub_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventHub_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5498,19 +8850,19 @@ public com.google.protobuf.ByteString getEventHubBytes() { * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The eventHub to set. + * @param value The kafkaTopic to set. * @return This builder for chaining. */ - public Builder setEventHub(java.lang.String value) { + public Builder setKafkaTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - eventHub_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -5520,15 +8872,15 @@ public Builder setEventHub(java.lang.String value) { * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearEventHub() { - eventHub_ = getDefaultInstance().getEventHub(); + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -5538,20 +8890,20 @@ public Builder clearEventHub() { * * *
    -       * Optional. The name of the event hub being ingested from.
    +       * Optional. The name of the Kafka topic being ingested from.
            * 
    * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for eventHub to set. + * @param value The bytes for kafkaTopic to set. * @return This builder for chaining. */ - public Builder setEventHubBytes(com.google.protobuf.ByteString value) { + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - eventHub_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -5907,21 +9259,270 @@ public Builder clearApiViolationReason() { if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + schemaViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +       * Optional. The Pub/Sub message failed schema validation.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -5936,27 +9537,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(); + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AzureEventHubsFailureReason parsePartialFrom( + public ConfluentCloudFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5976,202 +9577,197 @@ public AzureEventHubsFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ConfluentCloudFailureReasonOrBuilder + public interface AwsKinesisFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * Optional. The cluster ID containing the topic being ingested from.
    +     * Optional. The stream ARN of the Kinesis stream being ingested from.
          * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ - java.lang.String getClusterId(); + java.lang.String getStreamArn(); /** * * *
    -     * Optional. The cluster ID containing the topic being ingested from.
    +     * Optional. The stream ARN of the Kinesis stream being ingested from.
          * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ - com.google.protobuf.ByteString getClusterIdBytes(); + com.google.protobuf.ByteString getStreamArnBytes(); /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The partition key of the message that failed to be ingested.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ - java.lang.String getKafkaTopic(); + java.lang.String getPartitionKey(); /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The partition key of the message that failed to be ingested.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ - com.google.protobuf.ByteString getKafkaTopicBytes(); + com.google.protobuf.ByteString getPartitionKeyBytes(); /** * * *
    -     * Optional. The partition ID of the message that failed to be ingested.
    +     * Optional. The sequence number of the message that failed to be ingested.
          * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ - long getPartitionId(); + java.lang.String getSequenceNumber(); /** * * *
    -     * Optional. The offset within the partition of the message that failed to
    -     * be ingested.
    +     * Optional. The sequence number of the message that failed to be ingested.
          * 
    * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The offset. + * @return The bytes for sequenceNumber. */ - long getOffset(); + com.google.protobuf.ByteString getSequenceNumberBytes(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ - boolean hasApiViolationReason(); + boolean hasSchemaViolationReason(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase - getReasonCase(); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.ReasonCase getReasonCase(); } /** * * *
    -   * Failure when ingesting from a Confluent Cloud source.
    +   * Failure when ingesting from an AWS Kinesis source.
        * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} */ - public static final class ConfluentCloudFailureReason - extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsKinesisFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - ConfluentCloudFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + AwsKinesisFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use ConfluentCloudFailureReason.newBuilder() to construct. - private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AwsKinesisFailureReason.newBuilder() to construct. + private AwsKinesisFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfluentCloudFailureReason() { - clusterId_ = ""; - kafkaTopic_ = ""; + private AwsKinesisFailureReason() { + streamArn_ = ""; + partitionKey_ = ""; + sequenceNumber_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfluentCloudFailureReason(); + return new AwsKinesisFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -6183,7 +9779,7 @@ public enum ReasonCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(4), REASON_NOT_SET(0); private final int value; @@ -6203,8 +9799,8 @@ public static ReasonCase valueOf(int value) { public static ReasonCase forNumber(int value) { switch (value) { - case 5: - return API_VIOLATION_REASON; + case 4: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -6221,31 +9817,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int CLUSTER_ID_FIELD_NUMBER = 1; + public static final int STREAM_ARN_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; + private volatile java.lang.Object streamArn_ = ""; /** * * *
    -     * Optional. The cluster ID containing the topic being ingested from.
    +     * Optional. The stream ARN of the Kinesis stream being ingested from.
          * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ @java.lang.Override - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; + streamArn_ = s; return s; } } @@ -6254,51 +9850,51 @@ public java.lang.String getClusterId() { * * *
    -     * Optional. The cluster ID containing the topic being ingested from.
    +     * Optional. The stream ARN of the Kinesis stream being ingested from.
          * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; + streamArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; + public static final int PARTITION_KEY_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object kafkaTopic_ = ""; + private volatile java.lang.Object partitionKey_ = ""; /** * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The partition key of the message that failed to be ingested.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ @java.lang.Override - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getPartitionKey() { + java.lang.Object ref = partitionKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + partitionKey_ = s; return s; } } @@ -6307,127 +9903,139 @@ public java.lang.String getKafkaTopic() { * * *
    -     * Optional. The name of the Kafka topic being ingested from.
    +     * Optional. The partition key of the message that failed to be ingested.
          * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getPartitionKeyBytes() { + java.lang.Object ref = partitionKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + partitionKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PARTITION_ID_FIELD_NUMBER = 3; - private long partitionId_ = 0L; + public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sequenceNumber_ = ""; /** * * *
    -     * Optional. The partition ID of the message that failed to be ingested.
    +     * Optional. The sequence number of the message that failed to be ingested.
          * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ @java.lang.Override - public long getPartitionId() { - return partitionId_; + public java.lang.String getSequenceNumber() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sequenceNumber_ = s; + return s; + } } - public static final int OFFSET_FIELD_NUMBER = 4; - private long offset_ = 0L; - /** * * *
    -     * Optional. The offset within the partition of the message that failed to
    -     * be ingested.
    +     * Optional. The sequence number of the message that failed to be ingested.
          * 
    * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The offset. + * @return The bytes for sequenceNumber. */ @java.lang.Override - public long getOffset() { - return offset_; + public com.google.protobuf.ByteString getSequenceNumberBytes() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sequenceNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 4; /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 4; } /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } /** * * *
    -     * Optional. The Pub/Sub API limits prevented the desired message from
    -     * being published.
    +     * Optional. The Pub/Sub message failed schema validation.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -6444,21 +10052,18 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, streamArn_); } - if (partitionId_ != 0L) { - output.writeInt64(3, partitionId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partitionKey_); } - if (offset_ != 0L) { - output.writeInt64(4, offset_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sequenceNumber_); } - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -6469,22 +10074,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, streamArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); - } - if (partitionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partitionKey_); } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceNumber_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sequenceNumber_); } - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6496,21 +10098,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj - instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)) { + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) obj; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; - if (getPartitionId() != other.getPartitionId()) return false; - if (getOffset() != other.getOffset()) return false; + if (!getStreamArn().equals(other.getStreamArn())) return false; + if (!getPartitionKey().equals(other.getPartitionKey())) return false; + if (!getSequenceNumber().equals(other.getSequenceNumber())) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; switch (reasonCase_) { - case 5: - if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + case 4: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; case 0: default: @@ -6526,18 +10126,16 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getKafkaTopic().hashCode(); - hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (37 * hash) + STREAM_ARN_FIELD_NUMBER; + hash = (53 * hash) + getStreamArn().hashCode(); + hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPartitionKey().hashCode(); + hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSequenceNumber().hashCode(); switch (reasonCase_) { - case 5: - hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; - hash = (53 * hash) + getApiViolationReason().hashCode(); + case 4: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; case 0: default: @@ -6547,59 +10145,59 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6607,12 +10205,12 @@ public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureRe PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6630,7 +10228,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6650,34 +10248,33 @@ protected Builder newBuilderForType( * * *
    -     * Failure when ingesting from a Confluent Cloud source.
    +     * Failure when ingesting from an AWS Kinesis source.
          * 
    * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder - .class); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder.class); } // Construct using - // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() + // com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -6685,15 +10282,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clusterId_ = ""; - kafkaTopic_ = ""; - partitionId_ = 0L; - offset_ = 0L; - if (apiViolationReasonBuilder_ != null) { - apiViolationReasonBuilder_.clear(); + public Builder clear() { + super.clear(); + bitField0_ = 0; + streamArn_ = ""; + partitionKey_ = ""; + sequenceNumber_ = ""; + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); } reasonCase_ = 0; reason_ = null; @@ -6703,20 +10299,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = - buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6724,9 +10319,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason bu } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -6736,28 +10331,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason bu } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterId_ = clusterId_; + result.streamArn_ = streamArn_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.kafkaTopic_ = kafkaTopic_; + result.partitionKey_ = partitionKey_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.partitionId_ = partitionId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.offset_ = offset_; + result.sequenceNumber_ = sequenceNumber_; } } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; - if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { - result.reason_ = apiViolationReasonBuilder_.build(); + if (reasonCase_ == 4 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); } } @@ -6798,10 +10390,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) { return mergeFrom( - (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) other); + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) other); } else { super.mergeFrom(other); return this; @@ -6809,30 +10400,29 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + == com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason .getDefaultInstance()) return this; - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; + if (!other.getStreamArn().isEmpty()) { + streamArn_ = other.streamArn_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getKafkaTopic().isEmpty()) { - kafkaTopic_ = other.kafkaTopic_; + if (!other.getPartitionKey().isEmpty()) { + partitionKey_ = other.partitionKey_; bitField0_ |= 0x00000002; onChanged(); } - if (other.getPartitionId() != 0L) { - setPartitionId(other.getPartitionId()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); + if (!other.getSequenceNumber().isEmpty()) { + sequenceNumber_ = other.sequenceNumber_; + bitField0_ |= 0x00000004; + onChanged(); } switch (other.getReasonCase()) { - case API_VIOLATION_REASON: + case SCHEMA_VIOLATION_REASON: { - mergeApiViolationReason(other.getApiViolationReason()); + mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } case REASON_NOT_SET: @@ -6868,35 +10458,29 @@ public Builder mergeFrom( break; case 10: { - clusterId_ = input.readStringRequireUtf8(); + streamArn_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - kafkaTopic_ = input.readStringRequireUtf8(); + partitionKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 - case 24: + case 26: { - partitionId_ = input.readInt64(); + sequenceNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; - } // case 24 - case 32: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: + } // case 26 + case 34: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); - reasonCase_ = 5; + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 4; break; - } // case 42 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6930,25 +10514,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object clusterId_ = ""; + private java.lang.Object streamArn_ = ""; /** * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; + streamArn_ = s; return s; } else { return (java.lang.String) ref; @@ -6959,19 +10543,19 @@ public java.lang.String getClusterId() { * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; + streamArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -6982,19 +10566,19 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The clusterId to set. + * @param value The streamArn to set. * @return This builder for chaining. */ - public Builder setClusterId(java.lang.String value) { + public Builder setStreamArn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clusterId_ = value; + streamArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -7004,15 +10588,15 @@ public Builder setClusterId(java.lang.String value) { * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); + public Builder clearStreamArn() { + streamArn_ = getDefaultInstance().getStreamArn(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -7022,44 +10606,44 @@ public Builder clearClusterId() { * * *
    -       * Optional. The cluster ID containing the topic being ingested from.
    +       * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
    * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for clusterId to set. + * @param value The bytes for streamArn to set. * @return This builder for chaining. */ - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + public Builder setStreamArnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clusterId_ = value; + streamArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object kafkaTopic_ = ""; + private java.lang.Object partitionKey_ = ""; /** * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getPartitionKey() { + java.lang.Object ref = partitionKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + partitionKey_ = s; return s; } else { return (java.lang.String) ref; @@ -7070,19 +10654,19 @@ public java.lang.String getKafkaTopic() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getPartitionKeyBytes() { + java.lang.Object ref = partitionKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + partitionKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -7093,19 +10677,19 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The kafkaTopic to set. + * @param value The partitionKey to set. * @return This builder for chaining. */ - public Builder setKafkaTopic(java.lang.String value) { + public Builder setPartitionKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kafkaTopic_ = value; + partitionKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -7115,15 +10699,15 @@ public Builder setKafkaTopic(java.lang.String value) { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearKafkaTopic() { - kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + public Builder clearPartitionKey() { + partitionKey_ = getDefaultInstance().getPartitionKey(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -7133,117 +10717,109 @@ public Builder clearKafkaTopic() { * * *
    -       * Optional. The name of the Kafka topic being ingested from.
    +       * Optional. The partition key of the message that failed to be ingested.
            * 
    * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for kafkaTopic to set. + * @param value The bytes for partitionKey to set. * @return This builder for chaining. */ - public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + public Builder setPartitionKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kafkaTopic_ = value; + partitionKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - private long partitionId_; + private java.lang.Object sequenceNumber_ = ""; /** * * *
    -       * Optional. The partition ID of the message that failed to be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ - @java.lang.Override - public long getPartitionId() { - return partitionId_; + public java.lang.String getSequenceNumber() { + java.lang.Object ref = sequenceNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sequenceNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
    -       * Optional. The partition ID of the message that failed to be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The partitionId to set. - * @return This builder for chaining. + * @return The bytes for sequenceNumber. */ - public Builder setPartitionId(long value) { - - partitionId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.protobuf.ByteString getSequenceNumberBytes() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sequenceNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
    -       * Optional. The partition ID of the message that failed to be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The sequenceNumber to set. * @return This builder for chaining. */ - public Builder clearPartitionId() { - bitField0_ = (bitField0_ & ~0x00000004); - partitionId_ = 0L; + public Builder setSequenceNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sequenceNumber_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private long offset_; - - /** - * - * - *
    -       * Optional. The offset within the partition of the message that failed to
    -       * be ingested.
    -       * 
    - * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** * * *
    -       * Optional. The offset within the partition of the message that failed to
    -       * be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The offset to set. * @return This builder for chaining. */ - public Builder setOffset(long value) { - - offset_ = value; - bitField0_ |= 0x00000008; + public Builder clearSequenceNumber() { + sequenceNumber_ = getDefaultInstance().getSequenceNumber(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -7252,72 +10828,77 @@ public Builder setOffset(long value) { * * *
    -       * Optional. The offset within the partition of the message that failed to
    -       * be ingested.
    +       * Optional. The sequence number of the message that failed to be ingested.
            * 
    * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The bytes for sequenceNumber to set. * @return This builder for chaining. */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000008); - offset_ = 0L; + public Builder setSequenceNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sequenceNumber_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 4; } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { - if (reasonCase_ == 5) { - return apiViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 4) { + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -7325,26 +10906,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7352,23 +10932,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7376,24 +10956,23 @@ public Builder setApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5 + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -7401,13 +10980,13 @@ public Builder mergeApiViolationReason( } onChanged(); } else { - if (reasonCase_ == 5) { - apiViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 4) { + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7415,27 +10994,26 @@ public Builder mergeApiViolationReason( * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -7444,41 +11022,40 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 4) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -7486,37 +11063,37 @@ public Builder clearApiViolationReason() { * * *
    -       * Optional. The Pub/Sub API limits prevented the desired message from
    -       * being published.
    +       * Optional. The Pub/Sub message failed schema validation.
            * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 4)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 4; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -7531,27 +11108,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(); + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ConfluentCloudFailureReason parsePartialFrom( + public AwsKinesisFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7571,17 +11147,17 @@ public ConfluentCloudFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -7600,6 +11176,7 @@ public enum FailureCase AWS_MSK_FAILURE(4), AZURE_EVENT_HUBS_FAILURE(5), CONFLUENT_CLOUD_FAILURE(6), + AWS_KINESIS_FAILURE(7), FAILURE_NOT_SET(0); private final int value; @@ -7627,6 +11204,8 @@ public static FailureCase forNumber(int value) { return AZURE_EVENT_HUBS_FAILURE; case 6: return CONFLUENT_CLOUD_FAILURE; + case 7: + return AWS_KINESIS_FAILURE; case 0: return FAILURE_NOT_SET; default: @@ -8001,6 +11580,67 @@ public boolean hasConfluentCloudFailure() { .getDefaultInstance(); } + public static final int AWS_KINESIS_FAILURE_FIELD_NUMBER = 7; + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + @java.lang.Override + public boolean hasAwsKinesisFailure() { + return failureCase_ == 7; + } + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getAwsKinesisFailure() { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder() { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8037,6 +11677,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); } + if (failureCase_ == 7) { + output.writeMessage( + 7, (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_); + } getUnknownFields().writeTo(output); } @@ -8072,6 +11716,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); } + if (failureCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8104,6 +11753,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getConfluentCloudFailure().equals(other.getConfluentCloudFailure())) return false; break; + case 7: + if (!getAwsKinesisFailure().equals(other.getAwsKinesisFailure())) return false; + break; case 0: default: } @@ -8139,6 +11791,10 @@ public int hashCode() { hash = (37 * hash) + CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER; hash = (53 * hash) + getConfluentCloudFailure().hashCode(); break; + case 7: + hash = (37 * hash) + AWS_KINESIS_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getAwsKinesisFailure().hashCode(); + break; case 0: default: } @@ -8297,6 +11953,9 @@ public Builder clear() { if (confluentCloudFailureBuilder_ != null) { confluentCloudFailureBuilder_.clear(); } + if (awsKinesisFailureBuilder_ != null) { + awsKinesisFailureBuilder_.clear(); + } failureCase_ = 0; failure_ = null; return this; @@ -8359,6 +12018,9 @@ private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent resul if (failureCase_ == 6 && confluentCloudFailureBuilder_ != null) { result.failure_ = confluentCloudFailureBuilder_.build(); } + if (failureCase_ == 7 && awsKinesisFailureBuilder_ != null) { + result.failure_ = awsKinesisFailureBuilder_.build(); + } } @java.lang.Override @@ -8437,6 +12099,11 @@ public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { mergeConfluentCloudFailure(other.getConfluentCloudFailure()); break; } + case AWS_KINESIS_FAILURE: + { + mergeAwsKinesisFailure(other.getAwsKinesisFailure()); + break; + } case FAILURE_NOT_SET: { break; @@ -8507,6 +12174,13 @@ public Builder mergeFrom( failureCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getAwsKinesisFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9753,6 +13427,255 @@ public Builder clearConfluentCloudFailure() { return confluentCloudFailureBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder> + awsKinesisFailureBuilder_; + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + @java.lang.Override + public boolean hasAwsKinesisFailure() { + return failureCase_ == 7; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + getAwsKinesisFailure() { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } else { + if (failureCase_ == 7) { + return awsKinesisFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason value) { + if (awsKinesisFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + awsKinesisFailureBuilder_.setMessage(value); + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder + builderForValue) { + if (awsKinesisFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisFailureBuilder_.setMessage(builderForValue.build()); + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason value) { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); + } else { + if (failureCase_ == 7) { + awsKinesisFailureBuilder_.mergeFrom(value); + } else { + awsKinesisFailureBuilder_.setMessage(value); + } + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesisFailure() { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 7) { + failureCase_ = 0; + failure_ = null; + } + awsKinesisFailureBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder + getAwsKinesisFailureBuilder() { + return getAwsKinesisFailureFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder() { + if ((failureCase_ == 7) && (awsKinesisFailureBuilder_ != null)) { + return awsKinesisFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. Failure when ingesting from AWS Kinesis.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder> + getAwsKinesisFailureFieldBuilder() { + if (awsKinesisFailureBuilder_ == null) { + if (!(failureCase_ == 7)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + awsKinesisFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_, + getParentForChildren(), + isClean()); + failure_ = null; + } + failureCase_ = 7; + onChanged(); + return awsKinesisFailureBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index 9fc268820..762da6810 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -254,5 +254,49 @@ public interface IngestionFailureEventOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder getConfluentCloudFailureOrBuilder(); + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + boolean hasAwsKinesisFailure(); + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getAwsKinesisFailure(); + + /** + * + * + *
    +   * Optional. Failure when ingesting from AWS Kinesis.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.FailureCase getFailureCase(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index ff57a28b7..8d94f89b2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -186,7 +186,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Override @@ -899,7 +899,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Override @@ -919,7 +919,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @param value The enabled to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 8970aabb5..aa3c6fd14 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -81,7 +81,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 22c1a66bb..deae19db6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,6 +108,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -486,7 +494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DEBUG\020\002\022\010\n" + "\004INFO\020\003\022\013\n" + "\007WARNING\020\004\022\t\n" - + "\005ERROR\020\005\"\211\014\n" + + "\005ERROR\020\005\"\203\022\n" + "\025IngestionFailureEvent\022\022\n" + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\002\022a\n" @@ -497,49 +505,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubsub.v1.IngestionFailureEv" + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" + "\027confluent_cloud_failure\030\006 \001(\0132C.google" - + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\032\024\n" + + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" + + "\023aws_kinesis_failure\030\007 \001(\0132?.google.pubsub.v1.Inge" + + "stionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + "\022ApiViolationReason\032\023\n" - + "\021AvroFailureReason\032\256\002\n" + + "\021AvroFailureReason\032\027\n" + + "\025SchemaViolationReason\032\225\003\n" + "\023CloudStorageFailure\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" - + "\023avro_failure_reason\030\005 \001" - + "(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v1.In" - + "gestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\344\001\n" + + "\023avro_failure_reason\030\005" + + " \001(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub" + + ".v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\007" + + " \001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\313\002\n" + "\023AwsMskFailureReason\022\030\n" + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\350\001\n" + + "\024api_violation_reason\030\005 \001(\0132:" + + ".google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.In" + + "gestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\317\002\n" + "\033AzureEventHubsFailureReason\022\026\n" + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\353\001\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1.Inge" + + "stionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.g" + + "oogle.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\322\002\n" + "\033ConfluentCloudFailureReason\022\027\n\n" + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001" - + "(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001(\0132:." + + "google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Ing" + + "estionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\335\001\n" + + "\027AwsKinesisFailureReason\022\027\n\n" + + "stream_arn\030\001 \001(\tB\003\340A\001\022\032\n\r" + + "partition_key\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017sequence_number\030\003 \001(\tB\003\340A\001\022e\n" + + "\027schema_violation_reason\030\004 \001(" + + "\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + "\006reasonB\t\n" + "\007failure\">\n\r" + "JavaScriptUDF\022\032\n\r" + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"\216\001\n" + "\020MessageTransform\022>\n" - + "\016javascript_udf\030\002 \001(\0132" - + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + "\016javascript_udf\030\002 \001(" + + "\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + "\ttransform\"\216\006\n" @@ -566,12 +592,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projects/{project}/to" - + "pics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/" + + "topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" + "attributes\030\002" - + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n" + + "\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" @@ -603,7 +630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033pubsub.googleapis.com/Topic\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\201\001\n" - + "\036ListTopicSubscriptionsResponse\022A\n\r" + + "\036ListTopicSubscriptionsResponse\022A\n" + + "\r" + "subscriptions\030\001 \003(\tB*\340A\001\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n" @@ -666,8 +694,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis.com/" - + "Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapis.co" + + "m/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -680,8 +708,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002 \003(\0132,.go" - + "ogle.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "attributes\030\002 \003(\0132,." + + "google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + "oidc_token\030\003" + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + "\016pubsub_wrapper\030\004" @@ -721,10 +749,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004 \001(\0132/" - + ".google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005 \001(\0132/.go" - + "ogle.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004 \001(\013" + + "2/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/." + + "google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" @@ -746,8 +774,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "output_format\"|\n" + "\017ReceivedMessage\022\023\n" + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" - + "\007message\030\002" - + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\007message\030\002 \001(" + + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + "\026GetSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -780,8 +808,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n" + "\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n" + "\014PullResponse\022A\n" - + "\021received_messages\030\001 \003" - + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + + "\021received_messages\030\001" + + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + "\030ModifyAckDeadlineRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" @@ -804,12 +832,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(" - + "\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.goog" - + "le.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v" - + "1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005 " + + "\001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.go" + + "ogle.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub" + + ".v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -827,8 +855,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\01323." - + "google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003 \003(\0132" + + "3.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" @@ -871,111 +899,116 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\"\016\n" + "\014SeekResponse2\270\013\n" + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsub." - + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032\027.googl" - + "e.pubsub.v1.Topic\"C\332A\021topic,update_mask\202" - + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" - + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.PublishR" - + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequ" - + "est\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323" - + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" - + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.ListTopicsR" - + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopicSubscr" - + "iptionsRequest\0320.google.pubsub.v1.ListTo" - + "picSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/", - "\022-/v1/{topic=projects/*/topics/*}/subscr" - + "iptions\022\252\001\n\022ListTopicSnapshots\022+.google." - + "pubsub.v1.ListTopicSnapshotsRequest\032,.go" - + "ogle.pubsub.v1.ListTopicSnapshotsRespons" - + "e\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*" - + "/topics/*}/snapshots\022|\n\013DeleteTopic\022$.go" - + "ogle.pubsub.v1.DeleteTopicRequest\032\026.goog" - + "le.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{" - + "topic=projects/*/topics/*}\022\255\001\n\022DetachSub" - + "scription\022+.google.pubsub.v1.DetachSubsc" - + "riptionRequest\032,.google.pubsub.v1.Detach" - + "SubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subsc" - + "ription=projects/*/subscriptions/*}:deta" - + "ch\032p\312A\025pubsub.googleapis.com\322AUhttps://w" - + "ww.googleapis.com/auth/cloud-platform,ht" - + "tps://www.googleapis.com/auth/pubsub2\322\025\n" - + "\nSubscriber\022\264\001\n\022CreateSubscription\022\036.goo" - + "gle.pubsub.v1.Subscription\032\036.google.pubs" - + "ub.v1.Subscription\"^\332A+name,topic,push_c" - + "onfig,ack_deadline_seconds\202\323\344\223\002*\032%/v1/{n" - + "ame=projects/*/subscriptions/*}:\001*\022\241\001\n\017G" - + "etSubscription\022(.google.pubsub.v1.GetSub" - + "scriptionRequest\032\036.google.pubsub.v1.Subs" - + "cription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{su" - + "bscription=projects/*/subscriptions/*}\022\273" - + "\001\n\022UpdateSubscription\022+.google.pubsub.v1" - + ".UpdateSubscriptionRequest\032\036.google.pubs" - + "ub.v1.Subscription\"X\332A\030subscription,upda" - + "te_mask\202\323\344\223\002722/v1/{subscription.name=pr" - + "ojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSub" - + "scriptions\022*.google.pubsub.v1.ListSubscr" - + "iptionsRequest\032+.google.pubsub.v1.ListSu" - + "bscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022&/" - + "v1/{project=projects/*}/subscriptions\022\237\001" - + "\n\022DeleteSubscription\022+.google.pubsub.v1." - + "DeleteSubscriptionRequest\032\026.google.proto" - + "buf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{s" - + "ubscription=projects/*/subscriptions/*}\022" - + "\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v1" - + ".ModifyAckDeadlineRequest\032\026.google.proto" - + "buf.Empty\"v\332A)subscription,ack_ids,ack_d" - + "eadline_seconds\202\323\344\223\002D\"?/v1/{subscription" - + "=projects/*/subscriptions/*}:modifyAckDe" - + "adline:\001*\022\250\001\n\013Acknowledge\022$.google.pubsu" - + "b.v1.AcknowledgeRequest\032\026.google.protobu" - + "f.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google.p" - + "ubsub.v1.PullRequest\032\036.google.pubsub.v1." - + "PullResponse\"\210\001\332A,subscription,return_im" - + "mediately,max_messages\332A\031subscription,ma" - + "x_messages\202\323\344\223\0027\"2/v1/{subscription=proj" - + "ects/*/subscriptions/*}:pull:\001*\022f\n\rStrea" - + "mingPull\022&.google.pubsub.v1.StreamingPul" - + "lRequest\032\'.google.pubsub.v1.StreamingPul" - + "lResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).g" - + "oogle.pubsub.v1.ModifyPushConfigRequest\032" - + "\026.google.protobuf.Empty\"d\332A\030subscription" - + ",push_config\202\323\344\223\002C\">/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:modifyPushConf" - + "ig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1" - + ".GetSnapshotRequest\032\032.google.pubsub.v1.S" - + "napshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapsho" - + "t=projects/*/snapshots/*}\022\226\001\n\rListSnapsh" - + "ots\022&.google.pubsub.v1.ListSnapshotsRequ" - + "est\032\'.google.pubsub.v1.ListSnapshotsResp" - + "onse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=pro" - + "jects/*}/snapshots\022\227\001\n\016CreateSnapshot\022\'." - + "google.pubsub.v1.CreateSnapshotRequest\032\032" - + ".google.pubsub.v1.Snapshot\"@\332A\021name,subs" - + "cription\202\323\344\223\002&\032!/v1/{name=projects/*/sna" - + "pshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google" - + ".pubsub.v1.UpdateSnapshotRequest\032\032.googl" - + "e.pubsub.v1.Snapshot\"L\332A\024snapshot,update" - + "_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects" - + "/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'." - + "google.pubsub.v1.DeleteSnapshotRequest\032\026" - + ".google.protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002" - + "\'*%/v1/{snapshot=projects/*/snapshots/*}" - + "\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequest" - + "\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027" - + "\"2/v1/{subscription=projects/*/subscript" - + "ions/*}:seek:\001*\032p\312A\025pubsub.googleapis.co" - + "m\322AUhttps://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/au" - + "th/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pubs" - + "ubProtoP\001Z5cloud.google.com/go/pubsub/v2" - + "/apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud." - + "PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goo" - + "gle::Cloud::PubSub::V1b\006proto3" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsu", + "b.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=pro" + + "jects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.g" + + "oogle.pubsub.v1.UpdateTopicRequest\032\027.goo" + + "gle.pubsub.v1.Topic\"C\332A\021topic,update_mas" + + "k\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" + + "cs/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1." + + "PublishRequest\032!.google.pubsub.v1.Publis" + + "hResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/" + + "{topic=projects/*/topics/*}:publish:\001*\022w" + + "\n\010GetTopic\022!.google.pubsub.v1.GetTopicRe" + + "quest\032\027.google.pubsub.v1.Topic\"/\332A\005topic" + + "\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022" + + "\212\001\n\nListTopics\022#.google.pubsub.v1.ListTo" + + "picsRequest\032$.google.pubsub.v1.ListTopic" + + "sResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{projec" + + "t=projects/*}/topics\022\272\001\n\026ListTopicSubscr" + + "iptions\022/.google.pubsub.v1.ListTopicSubs" + + "criptionsRequest\0320.google.pubsub.v1.List" + + "TopicSubscriptionsResponse\"=\332A\005topic\202\323\344\223" + + "\002/\022-/v1/{topic=projects/*/topics/*}/subs" + + "criptions\022\252\001\n\022ListTopicSnapshots\022+.googl" + + "e.pubsub.v1.ListTopicSnapshotsRequest\032,." + + "google.pubsub.v1.ListTopicSnapshotsRespo" + + "nse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects" + + "/*/topics/*}/snapshots\022|\n\013DeleteTopic\022$." + + "google.pubsub.v1.DeleteTopicRequest\032\026.go" + + "ogle.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1" + + "/{topic=projects/*/topics/*}\022\255\001\n\022DetachS" + + "ubscription\022+.google.pubsub.v1.DetachSub" + + "scriptionRequest\032,.google.pubsub.v1.Deta" + + "chSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{sub" + + "scription=projects/*/subscriptions/*}:de" + + "tach\032p\312A\025pubsub.googleapis.com\322AUhttps:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/pubsub2\322" + + "\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.g" + + "oogle.pubsub.v1.Subscription\032\036.google.pu" + + "bsub.v1.Subscription\"^\332A+name,topic,push" + + "_config,ack_deadline_seconds\202\323\344\223\002*\032%/v1/" + + "{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetS" + + "ubscriptionRequest\032\036.google.pubsub.v1.Su" + + "bscription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{" + + "subscription=projects/*/subscriptions/*}" + + "\022\273\001\n\022UpdateSubscription\022+.google.pubsub." + + "v1.UpdateSubscriptionRequest\032\036.google.pu" + + "bsub.v1.Subscription\"X\332A\030subscription,up" + + "date_mask\202\323\344\223\002722/v1/{subscription.name=" + + "projects/*/subscriptions/*}:\001*\022\246\001\n\021ListS" + + "ubscriptions\022*.google.pubsub.v1.ListSubs" + + "criptionsRequest\032+.google.pubsub.v1.List" + + "SubscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022" + + "&/v1/{project=projects/*}/subscriptions\022" + + "\237\001\n\022DeleteSubscription\022+.google.pubsub.v" + + "1.DeleteSubscriptionRequest\032\026.google.pro" + + "tobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub." + + "v1.ModifyAckDeadlineRequest\032\026.google.pro" + + "tobuf.Empty\"v\332A)subscription,ack_ids,ack" + + "_deadline_seconds\202\323\344\223\002D\"?/v1/{subscripti" + + "on=projects/*/subscriptions/*}:modifyAck" + + "Deadline:\001*\022\250\001\n\013Acknowledge\022$.google.pub" + + "sub.v1.AcknowledgeRequest\032\026.google.proto" + + "buf.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>" + + "\"9/v1/{subscription=projects/*/subscript" + + "ions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google" + + ".pubsub.v1.PullRequest\032\036.google.pubsub.v" + + "1.PullResponse\"\210\001\332A,subscription,return_" + + "immediately,max_messages\332A\031subscription," + + "max_messages\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:pull:\001*\022f\n\rStr" + + "eamingPull\022&.google.pubsub.v1.StreamingP" + + "ullRequest\032\'.google.pubsub.v1.StreamingP" + + "ullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022)" + + ".google.pubsub.v1.ModifyPushConfigReques" + + "t\032\026.google.protobuf.Empty\"d\332A\030subscripti" + + "on,push_config\202\323\344\223\002C\">/v1/{subscription=" + + "projects/*/subscriptions/*}:modifyPushCo" + + "nfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub." + + "v1.GetSnapshotRequest\032\032.google.pubsub.v1" + + ".Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snaps" + + "hot=projects/*/snapshots/*}\022\226\001\n\rListSnap" + + "shots\022&.google.pubsub.v1.ListSnapshotsRe" + + "quest\032\'.google.pubsub.v1.ListSnapshotsRe" + + "sponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=p" + + "rojects/*}/snapshots\022\227\001\n\016CreateSnapshot\022" + + "\'.google.pubsub.v1.CreateSnapshotRequest" + + "\032\032.google.pubsub.v1.Snapshot\"@\332A\021name,su" + + "bscription\202\323\344\223\002&\032!/v1/{name=projects/*/s" + + "napshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.goog" + + "le.pubsub.v1.UpdateSnapshotRequest\032\032.goo" + + "gle.pubsub.v1.Snapshot\"L\332A\024snapshot,upda" + + "te_mask\202\323\344\223\002/2*/v1/{snapshot.name=projec" + + "ts/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022" + + "\'.google.pubsub.v1.DeleteSnapshotRequest" + + "\032\026.google.protobuf.Empty\"8\332A\010snapshot\202\323\344" + + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/" + + "*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReque" + + "st\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223" + + "\0027\"2/v1/{subscription=projects/*/subscri" + + "ptions/*}:seek:\001*\032p\312A\025pubsub.googleapis." + + "com\322AUhttps://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pu" + + "bsubProtoP\001Z5cloud.google.com/go/pubsub/" + + "v2/apiv1/pubsubpb;pubsubpb\252\002\026Google.Clou" + + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" + + "oogle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1136,6 +1169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AwsMskFailure", "AzureEventHubsFailure", "ConfluentCloudFailure", + "AwsKinesisFailure", "Failure", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor = @@ -1150,8 +1184,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor, new java.lang.String[] {}); - internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor = internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor, @@ -1161,31 +1201,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ObjectGeneration", "AvroFailureReason", "ApiViolationReason", + "SchemaViolationReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor, new java.lang.String[] { - "ClusterArn", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "ClusterArn", + "KafkaTopic", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor, new java.lang.String[] { - "Namespace", "EventHub", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "Namespace", + "EventHub", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(6); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor, new java.lang.String[] { - "ClusterId", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "ClusterId", + "KafkaTopic", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(7); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor, + new java.lang.String[] { + "StreamArn", "PartitionKey", "SequenceNumber", "SchemaViolationReason", "Reason", }); internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 7db45411e..cdc16574f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index bee10d2e9..8b2bd98a7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index ada2ba66b..fa6ea9d51 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -28,7 +28,7 @@ * Retry delay will be exponential based on provided minimum and maximum * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. * - * RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded * events for a given message. * * Retry Policy is implemented on a best effort basis. At times, the delay @@ -378,7 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Retry delay will be exponential based on provided minimum and maximum * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. * - * RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded * events for a given message. * * Retry Policy is implemented on a best effort basis. At times, the delay diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 017b0d912..f40cc4e62 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -24,7 +24,7 @@ * *
      * Request for the `StreamingPull` streaming RPC method. This request is used to
    - * establish the initial stream as well as to stream acknowledgements and ack
    + * establish the initial stream as well as to stream acknowledgments and ack
      * deadline modifications from the client to the server.
      * 
    * @@ -143,12 +143,11 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -163,12 +162,11 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -183,12 +181,11 @@ public int getAckIdsCount() { * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -204,12 +201,11 @@ public java.lang.String getAckIds(int index) { * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -318,7 +314,7 @@ public int getModifyDeadlineSeconds(int index) { * * *
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -338,7 +334,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -358,7 +354,7 @@ public int getModifyDeadlineAckIdsCount() {
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -379,7 +375,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -796,7 +792,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * 
        * Request for the `StreamingPull` streaming RPC method. This request is used to
    -   * establish the initial stream as well as to stream acknowledgements and ack
    +   * establish the initial stream as well as to stream acknowledgments and ack
        * deadline modifications from the client to the server.
        * 
    * @@ -1257,12 +1253,11 @@ private void ensureAckIdsIsMutable() { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1278,12 +1273,11 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1298,12 +1292,11 @@ public int getAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1319,12 +1312,11 @@ public java.lang.String getAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1340,12 +1332,11 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1369,12 +1360,11 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1397,12 +1387,11 @@ public Builder addAckIds(java.lang.String value) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1422,12 +1411,11 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1446,12 +1434,11 @@ public Builder clearAckIds() { * * *
    -     * Optional. List of acknowledgement IDs for acknowledging previously received
    +     * Optional. List of acknowledgment IDs for acknowledging previously received
          * messages (received on this stream or a different stream). If an ack ID has
          * expired, the corresponding message may be redelivered later. Acknowledging
    -     * a message more than once will not result in an error. If the
    -     * acknowledgement ID is malformed, the stream will be aborted with status
    -     * `INVALID_ARGUMENT`.
    +     * a message more than once will not result in an error. If the acknowledgment
    +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1700,7 +1687,7 @@ private void ensureModifyDeadlineAckIdsIsMutable() { * * *
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1721,7 +1708,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1741,7 +1728,7 @@ public int getModifyDeadlineAckIdsCount() {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1762,7 +1749,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1783,7 +1770,7 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1812,7 +1799,7 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1840,7 +1827,7 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1865,7 +1852,7 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    @@ -1889,7 +1876,7 @@ public Builder clearModifyDeadlineAckIds() {
          *
          *
          * 
    -     * Optional. List of acknowledgement IDs whose deadline will be modified based
    +     * Optional. List of acknowledgment IDs whose deadline will be modified based
          * on the corresponding element in `modify_deadline_seconds`. This field can
          * be used to indicate that more time is needed to process a message by the
          * subscriber, or to make the message available for redelivery if the
    diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    index 675fc7532..0af7d5da6 100644
    --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    @@ -64,12 +64,11 @@ public interface StreamingPullRequestOrBuilder
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -82,12 +81,11 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -100,12 +98,11 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -119,12 +116,11 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Optional. List of acknowledgement IDs for acknowledging previously received
    +   * Optional. List of acknowledgment IDs for acknowledging previously received
        * messages (received on this stream or a different stream). If an ack ID has
        * expired, the corresponding message may be redelivered later. Acknowledging
    -   * a message more than once will not result in an error. If the
    -   * acknowledgement ID is malformed, the stream will be aborted with status
    -   * `INVALID_ARGUMENT`.
    +   * a message more than once will not result in an error. If the acknowledgment
    +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -211,7 +207,7 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -229,7 +225,7 @@ public interface StreamingPullRequestOrBuilder
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -247,7 +243,7 @@ public interface StreamingPullRequestOrBuilder
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    @@ -266,7 +262,7 @@ public interface StreamingPullRequestOrBuilder
        *
        *
        * 
    -   * Optional. List of acknowledgement IDs whose deadline will be modified based
    +   * Optional. List of acknowledgment IDs whose deadline will be modified based
        * on the corresponding element in `modify_deadline_seconds`. This field can
        * be used to indicate that more time is needed to process a message by the
        * subscriber, or to make the message available for redelivery if the
    diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    index 229d1456f..2d7aac604 100644
    --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    @@ -74,7 +74,7 @@ public interface AcknowledgeConfirmationOrBuilder
          *
          *
          * 
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -87,7 +87,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -100,7 +100,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -114,7 +114,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -128,8 +128,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -142,8 +142,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -156,8 +156,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -171,8 +171,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -186,7 +186,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -199,7 +199,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -212,7 +212,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -226,7 +226,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -240,7 +240,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -255,7 +255,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -270,7 +270,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -286,7 +286,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -303,7 +303,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -   * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    +   * Acknowledgment IDs sent in one or more previous requests to acknowledge a
        * previously received message.
        * 
    * @@ -358,7 +358,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -373,7 +373,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -388,7 +388,7 @@ public int getAckIdsCount() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -404,7 +404,7 @@ public java.lang.String getAckIds(int index) { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -426,8 +426,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -442,8 +442,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -458,8 +458,8 @@ public int getInvalidAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -475,8 +475,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -498,7 +498,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -513,7 +513,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -528,7 +528,7 @@ public int getUnorderedAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -544,7 +544,7 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgment IDs that were out of order.
          * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -566,7 +566,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -583,7 +583,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -600,7 +600,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -618,7 +618,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -856,7 +856,7 @@ protected Builder newBuilderForType( * * *
    -     * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    +     * Acknowledgment IDs sent in one or more previous requests to acknowledge a
          * previously received message.
          * 
    * @@ -1133,7 +1133,7 @@ private void ensureAckIdsIsMutable() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1149,7 +1149,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1164,7 +1164,7 @@ public int getAckIdsCount() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1180,7 +1180,7 @@ public java.lang.String getAckIds(int index) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1196,7 +1196,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1220,7 +1220,7 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1243,7 +1243,7 @@ public Builder addAckIds(java.lang.String value) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1263,7 +1263,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1282,7 +1282,7 @@ public Builder clearAckIds() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1316,8 +1316,8 @@ private void ensureInvalidAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1333,8 +1333,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1349,8 +1349,8 @@ public int getInvalidAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1366,8 +1366,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1383,8 +1383,8 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1408,8 +1408,8 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1432,8 +1432,8 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1453,8 +1453,8 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1473,8 +1473,8 @@ public Builder clearInvalidAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1508,7 +1508,7 @@ private void ensureUnorderedAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1525,7 +1525,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1541,7 +1541,7 @@ public int getUnorderedAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1558,7 +1558,7 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1575,7 +1575,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1600,7 +1600,7 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1624,7 +1624,7 @@ public Builder addUnorderedAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1645,7 +1645,7 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1665,7 +1665,7 @@ public Builder clearUnorderedAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgment IDs that were out of order.
            * 
    * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1701,7 +1701,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1720,7 +1720,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1738,7 +1738,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1757,7 +1757,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1776,7 +1776,7 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1803,7 +1803,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1829,7 +1829,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1852,7 +1852,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1874,7 +1874,7 @@ public Builder clearTemporaryFailedAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -1973,7 +1973,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1986,7 +1986,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1999,7 +1999,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2013,7 +2013,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2027,8 +2027,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2041,8 +2041,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2055,8 +2055,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2070,8 +2070,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2085,7 +2085,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2100,7 +2100,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2115,7 +2115,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2131,7 +2131,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2148,7 +2148,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -   * Acknowledgement IDs sent in one or more previous requests to modify the
    +   * Acknowledgment IDs sent in one or more previous requests to modify the
        * deadline for a specific message.
        * 
    * @@ -2205,7 +2205,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2220,7 +2220,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2235,7 +2235,7 @@ public int getAckIdsCount() { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2251,7 +2251,7 @@ public java.lang.String getAckIds(int index) { * * *
    -     * Optional. Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgment IDs.
          * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2273,8 +2273,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2289,8 +2289,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2305,8 +2305,8 @@ public int getInvalidAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2322,8 +2322,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that were malformed or whose
    -     * acknowledgement deadline has expired.
    +     * Optional. List of acknowledgment IDs that were malformed or whose
    +     * acknowledgment deadline has expired.
          * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2345,7 +2345,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2362,7 +2362,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2379,7 +2379,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2397,7 +2397,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -     * Optional. List of acknowledgement IDs that failed processing with
    +     * Optional. List of acknowledgment IDs that failed processing with
          * temporary issues.
          * 
    * @@ -2625,7 +2625,7 @@ protected Builder newBuilderForType( * * *
    -     * Acknowledgement IDs sent in one or more previous requests to modify the
    +     * Acknowledgment IDs sent in one or more previous requests to modify the
          * deadline for a specific message.
          * 
    * @@ -2884,7 +2884,7 @@ private void ensureAckIdsIsMutable() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2900,7 +2900,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2915,7 +2915,7 @@ public int getAckIdsCount() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2931,7 +2931,7 @@ public java.lang.String getAckIds(int index) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2947,7 +2947,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2971,7 +2971,7 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2994,7 +2994,7 @@ public Builder addAckIds(java.lang.String value) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3014,7 +3014,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3033,7 +3033,7 @@ public Builder clearAckIds() { * * *
    -       * Optional. Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgment IDs.
            * 
    * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3067,8 +3067,8 @@ private void ensureInvalidAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3084,8 +3084,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3100,8 +3100,8 @@ public int getInvalidAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3117,8 +3117,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3134,8 +3134,8 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3159,8 +3159,8 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3183,8 +3183,8 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3204,8 +3204,8 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3224,8 +3224,8 @@ public Builder clearInvalidAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that were malformed or whose
    -       * acknowledgement deadline has expired.
    +       * Optional. List of acknowledgment IDs that were malformed or whose
    +       * acknowledgment deadline has expired.
            * 
    * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3260,7 +3260,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3279,7 +3279,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3297,7 +3297,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3316,7 +3316,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3335,7 +3335,7 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3362,7 +3362,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3388,7 +3388,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3411,7 +3411,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * @@ -3433,7 +3433,7 @@ public Builder clearTemporaryFailedAckIds() { * * *
    -       * Optional. List of acknowledgement IDs that failed processing with
    +       * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
    * diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index fb8d9a716..ea54863d8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1960,8 +1960,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -1984,8 +1984,8 @@ public boolean hasRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -2010,8 +2010,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -2060,7 +2060,7 @@ public boolean getDetached() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -5631,8 +5631,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5654,8 +5654,8 @@ public boolean hasRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5683,8 +5683,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5714,8 +5714,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5742,8 +5742,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5778,8 +5778,8 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5806,8 +5806,8 @@ public Builder clearRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5829,8 +5829,8 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5856,8 +5856,8 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -5960,7 +5960,7 @@ public Builder clearDetached() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -5988,7 +5988,7 @@ public boolean getEnableExactlyOnceDelivery() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -6020,7 +6020,7 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 6723327ce..da905d00c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -586,8 +586,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -607,8 +607,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -628,8 +628,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
    * * @@ -664,7 +664,7 @@ java.lang.String getLabelsOrDefault( * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 516b7faef..2792133a4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -549,6 +549,10 @@ message IngestionFailureEvent { // occurs, one or more Avro objects won't be ingested. message AvroFailureReason {} + // Set when a Pub/Sub message fails to get published due to a schema + // validation violation. + message SchemaViolationReason {} + // Failure when ingesting from a Cloud Storage source. message CloudStorageFailure { // Optional. Name of the Cloud Storage bucket used for ingestion. @@ -572,6 +576,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 7 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -596,6 +604,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -620,6 +632,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -644,6 +660,29 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Failure when ingesting from an AWS Kinesis source. + message AwsKinesisFailureReason { + // Optional. The stream ARN of the Kinesis stream being ingested from. + string stream_arn = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition key of the message that failed to be ingested. + string partition_key = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sequence number of the message that failed to be ingested. + string sequence_number = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 4 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -670,6 +709,10 @@ message IngestionFailureEvent { // Optional. Failure when ingesting from Confluent Cloud. ConfluentCloudFailureReason confluent_cloud_failure = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from AWS Kinesis. + AwsKinesisFailureReason aws_kinesis_failure = 7 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -1128,7 +1171,7 @@ service Subscriber { } // Establishes a stream with the server, which sends messages down to the - // client. The client streams acknowledgements and ack deadline modifications + // client. The client streams acknowledgments and ack deadline modifications // back to the server. The server will close the stream and return the status // on any error. The server may close the stream with status `UNAVAILABLE` to // reassign server-side resources, in which case, the client should @@ -1394,8 +1437,8 @@ message Subscription { // // If not set, the default retry policy is applied. This generally implies // that messages will be retried as soon as possible for healthy subscribers. - // RetryPolicy will be triggered on NACKs or acknowledgement deadline - // exceeded events for a given message. + // RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + // events for a given message. RetryPolicy retry_policy = 14 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates whether the subscription is detached from its topic. @@ -1410,7 +1453,7 @@ message Subscription { // subscription: // // * The message sent to a subscriber is guaranteed not to be resent - // before the message's acknowledgement deadline expires. + // before the message's acknowledgment deadline expires. // * An acknowledged message will not be resent to a subscriber. // // Note that subscribers may still receive multiple copies of a message @@ -1449,7 +1492,7 @@ message Subscription { // Retry delay will be exponential based on provided minimum and maximum // backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. // -// RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded +// RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded // events for a given message. // // Retry Policy is implemented on a best effort basis. At times, the delay @@ -1489,7 +1532,7 @@ message DeadLetterPolicy { // value must be between 5 and 100. // // The number of delivery attempts is defined as 1 + (the sum of number of - // NACKs and number of times the acknowledgement deadline has been exceeded + // NACKs and number of times the acknowledgment deadline has been exceeded // for the message). // // A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -1751,7 +1794,7 @@ message CloudStorageConfig { // Optional. The maximum duration that can elapse before a new Cloud Storage // file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not - // exceed the subscription's acknowledgement deadline. + // exceed the subscription's acknowledgment deadline. google.protobuf.Duration max_duration = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -1973,7 +2016,7 @@ message AcknowledgeRequest { } // Request for the `StreamingPull` streaming RPC method. This request is used to -// establish the initial stream as well as to stream acknowledgements and ack +// establish the initial stream as well as to stream acknowledgments and ack // deadline modifications from the client to the server. message StreamingPullRequest { // Required. The subscription for which to initialize the new stream. This @@ -1987,12 +2030,11 @@ message StreamingPullRequest { } ]; - // Optional. List of acknowledgement IDs for acknowledging previously received + // Optional. List of acknowledgment IDs for acknowledging previously received // messages (received on this stream or a different stream). If an ack ID has // expired, the corresponding message may be redelivered later. Acknowledging - // a message more than once will not result in an error. If the - // acknowledgement ID is malformed, the stream will be aborted with status - // `INVALID_ARGUMENT`. + // a message more than once will not result in an error. If the acknowledgment + // ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`. repeated string ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The list of new ack deadlines for the IDs listed in @@ -2009,7 +2051,7 @@ message StreamingPullRequest { repeated int32 modify_deadline_seconds = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs whose deadline will be modified based + // Optional. List of acknowledgment IDs whose deadline will be modified based // on the corresponding element in `modify_deadline_seconds`. This field can // be used to indicate that more time is needed to process a message by the // subscriber, or to make the message available for redelivery if the @@ -2058,39 +2100,39 @@ message StreamingPullRequest { // Response for the `StreamingPull` method. This response is used to stream // messages from the server to the client. message StreamingPullResponse { - // Acknowledgement IDs sent in one or more previous requests to acknowledge a + // Acknowledgment IDs sent in one or more previous requests to acknowledge a // previously received message. message AcknowledgeConfirmation { - // Optional. Successfully processed acknowledgement IDs. + // Optional. Successfully processed acknowledgment IDs. repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were malformed or whose - // acknowledgement deadline has expired. + // Optional. List of acknowledgment IDs that were malformed or whose + // acknowledgment deadline has expired. repeated string invalid_ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were out of order. + // Optional. List of acknowledgment IDs that were out of order. repeated string unordered_ack_ids = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that failed processing with + // Optional. List of acknowledgment IDs that failed processing with // temporary issues. repeated string temporary_failed_ack_ids = 4 [(google.api.field_behavior) = OPTIONAL]; } - // Acknowledgement IDs sent in one or more previous requests to modify the + // Acknowledgment IDs sent in one or more previous requests to modify the // deadline for a specific message. message ModifyAckDeadlineConfirmation { - // Optional. Successfully processed acknowledgement IDs. + // Optional. Successfully processed acknowledgment IDs. repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were malformed or whose - // acknowledgement deadline has expired. + // Optional. List of acknowledgment IDs that were malformed or whose + // acknowledgment deadline has expired. repeated string invalid_ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that failed processing with + // Optional. List of acknowledgment IDs that failed processing with // temporary issues. repeated string temporary_failed_ack_ids = 3 [(google.api.field_behavior) = OPTIONAL]; From 17c142b20efb79f9c71fc6306cb3ee4e15c5e06f Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 22 May 2025 14:37:57 -0400 Subject: [PATCH 06/14] docs(sample): Update the subscribe with error listener and subscribe with exactly-once samples (#2437) * docs(sample): Update SubscribeWithErrorListener sample to not rebuild the subscriber * docs(sample): Add locational endpoint for exactly-once subscriber sample * docs(sample): Add comment explaining reasoning for locational endpoint --- .../java/pubsub/SubscribeWithErrorListenerExample.java | 8 ++------ ...scribeWithExactlyOnceConsumerWithResponseExample.java | 9 ++++++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java b/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java index a03c867a8..1e17afe68 100644 --- a/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java +++ b/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java @@ -62,15 +62,11 @@ public static void subscribeWithErrorListenerExample(String projectId, String su .setExecutorProvider(executorProvider) .build(); - // Listen for unrecoverable failures. Rebuild a subscriber and restart subscribing - // when the current subscriber encounters permanent errors. + // Listen for unrecoverable failures. subscriber.addListener( new Subscriber.Listener() { public void failed(Subscriber.State from, Throwable failure) { - System.out.println(failure.getStackTrace()); - if (!executorProvider.getExecutor().isShutdown()) { - subscribeWithErrorListenerExample(projectId, subscriptionId); - } + System.out.println("Unrecoverable subscriber failure:" + failure.getStackTrace()); } }, MoreExecutors.directExecutor()); diff --git a/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java b/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java index 8c85364c0..cf5ed3248 100644 --- a/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java +++ b/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java @@ -95,7 +95,14 @@ public static void subscribeWithExactlyOnceConsumerWithResponseExample( Subscriber subscriber = null; try { - subscriber = Subscriber.newBuilder(subscriptionName, receiverWithResponse).build(); + // Pub/Sub's exactly once delivery guarantee only applies when subscribers connect to the + // service in the same region. + // For list of locational endpoints for Pub/Sub, see + // https://cloud.google.com/pubsub/docs/reference/service_apis_overview#list_of_locational_endpoints + subscriber = + Subscriber.newBuilder(subscriptionName, receiverWithResponse) + .setEndpoint("us-west1-pubsub.googleapis.com:443") + .build(); // Start the subscriber. subscriber.startAsync().awaitRunning(); System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); From e43a89bf37615c7a671e38bcdc4683f5138de849 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 27 May 2025 10:52:13 -0400 Subject: [PATCH 07/14] chore: Update generation configuration at Tue May 27 02:33:50 UTC 2025 (#2439) * chore: Update generation configuration at Fri May 23 02:33:50 UTC 2025 * chore: Update generation configuration at Sat May 24 02:32:02 UTC 2025 * chore: generate libraries at Sat May 24 02:32:35 UTC 2025 * chore: Update generation configuration at Tue May 27 02:33:50 UTC 2025 --- README.md | 2 +- generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fe7b35eee..a7c519706 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.60.0') +implementation platform('com.google.cloud:libraries-bom:26.61.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/generation_config.yaml b/generation_config.yaml index 4e87f268b..3b45141a7 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: 488c8cc0d41aca4b4f33748ab6166129edcfd836 -libraries_bom_version: 26.60.0 +googleapis_commitish: 9bed6f077867e387960082891ec0e1b8bb254a47 +libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From a651e63261f22aece147b318db304177db52bae3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 May 2025 17:35:52 +0200 Subject: [PATCH 08/14] chore(deps): update dependency com.google.cloud:libraries-bom to v26.61.0 (#2438) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 414e4c703..5a6844896 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.60.0 + 26.61.0 pom import From a59135c6859d0aa5c247a6a1f60872c959123cc7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 2 Jun 2025 21:37:01 +0200 Subject: [PATCH 09/14] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 (#2444) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- google-cloud-pubsub-bom/pom.xml | 2 +- pom.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 704e61807..8d8e12cb1 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.48.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.49.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index d72ed3f0e..5cc939cf9 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index f2e296b84..fd0015918 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 68512fbff..424494b02 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 1edcb15cb..cd49eff83 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.48.0 + 3.49.0 Google Cloud pubsub BOM diff --git a/pom.xml b/pom.xml index 92ec4902e..4f1cd065b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.48.0 + 3.49.0 From 12d4cfb7d67dbb163b3a545ea2ebae450e88283d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 3 Jun 2025 20:09:28 +0200 Subject: [PATCH 10/14] deps: update googleapis/sdk-platform-java action to v2.59.0 (#2445) --- .github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 336ac2c8c..c01f3faec 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.58.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From e8b13d435f926c93033a82db68dc6eeac5ae3a7d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:10:04 -0400 Subject: [PATCH 11/14] chore(main): release 1.139.5-SNAPSHOT (#2433) * chore(main): release 1.139.5-SNAPSHOT * chore: generate libraries at Mon Jun 2 19:45:44 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- README.md | 2 +- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 5cc939cf9..d72ed3f0e 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index fd0015918..f2e296b84 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 424494b02..68512fbff 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/README.md b/README.md index a7c519706..b023a93a6 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.60.0 + 26.61.0 pom import diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index cd49eff83..072091078 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.4 + 1.139.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index dd5fe6a55..680e89219 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index c44258fb1..287e0afb6 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4f1cd065b..0700ea85c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.4 + 1.139.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 0586560ae..86de777c6 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ca7eae922..4a254d46b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 891e99e9b..a05e9f228 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.4:1.139.4 -grpc-google-cloud-pubsub-v1:1.121.4:1.121.4 -proto-google-cloud-pubsub-v1:1.121.4:1.121.4 +google-cloud-pubsub:1.139.4:1.139.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT From 1c838b6f9c8d5ce99ea3730ef2a0df5ad533c7be Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:10:54 -0400 Subject: [PATCH 12/14] chore: Update generation configuration at Tue Jun 3 02:34:37 UTC 2025 (#2441) * chore: Update generation configuration at Wed May 28 02:34:10 UTC 2025 * chore: generate libraries at Wed May 28 02:34:40 UTC 2025 * chore: Update generation configuration at Thu May 29 02:34:15 UTC 2025 * chore: Update generation configuration at Sat May 31 02:32:59 UTC 2025 * chore: Update generation configuration at Sun Jun 1 02:46:12 UTC 2025 * chore: Update generation configuration at Tue Jun 3 02:34:37 UTC 2025 * chore: generate libraries at Tue Jun 3 02:35:10 UTC 2025 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 3b45141a7..3c12b8705 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: 9bed6f077867e387960082891ec0e1b8bb254a47 +googleapis_commitish: 5e49af896d45b0a0aa06de04354db58c05c79aca libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From 6434be16560fdc8797b7c930b06df38c0972c96c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 3 Jun 2025 20:30:26 +0200 Subject: [PATCH 13/14] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 (#2446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:sdk-platform-java-config](https://redirect.github.com/googleapis/java-shared-config) | `3.48.0` -> `3.49.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:sdk-platform-java-config/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:sdk-platform-java-config/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:sdk-platform-java-config/3.48.0/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:sdk-platform-java-config/3.48.0/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-pubsub). --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index d72ed3f0e..5cc939cf9 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index f2e296b84..fd0015918 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 68512fbff..424494b02 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { From bb3d66b8da666c08b84fd551302c775eff7ac077 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:02:24 +0000 Subject: [PATCH 14/14] chore(main): release 1.140.0 (#2447) :robot: I have created a release *beep* *boop* --- ## [1.140.0](https://togithub.com/googleapis/java-pubsub/compare/v1.139.4...v1.140.0) (2025-06-03) ### Features * Add SchemaViolationReason to IngestionFailureEvent ([21cc376](https://togithub.com/googleapis/java-pubsub/commit/21cc3764aaa6fc05eb4a5078a72dae30694fba91)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 ([#2435](https://togithub.com/googleapis/java-pubsub/issues/2435)) ([b37c557](https://togithub.com/googleapis/java-pubsub/commit/b37c5573e1d0d7eada4ce4ec6a052521ea11cff1)) * Update dependency com.google.cloud:google-cloud-storage to v2.52.3 ([#2436](https://togithub.com/googleapis/java-pubsub/issues/2436)) ([4f309d1](https://togithub.com/googleapis/java-pubsub/commit/4f309d151d4bd584a33a0bb8882d0614a1b9d533)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2444](https://togithub.com/googleapis/java-pubsub/issues/2444)) ([a59135c](https://togithub.com/googleapis/java-pubsub/commit/a59135c6859d0aa5c247a6a1f60872c959123cc7)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2446](https://togithub.com/googleapis/java-pubsub/issues/2446)) ([6434be1](https://togithub.com/googleapis/java-pubsub/commit/6434be16560fdc8797b7c930b06df38c0972c96c)) * Update dependency com.google.protobuf:protobuf-java-util to v4.31.0 ([#2430](https://togithub.com/googleapis/java-pubsub/issues/2430)) ([232fac1](https://togithub.com/googleapis/java-pubsub/commit/232fac1c47e0d3680dcc8d56b69d65ed0d379dde)) * Update googleapis/sdk-platform-java action to v2.59.0 ([#2445](https://togithub.com/googleapis/java-pubsub/issues/2445)) ([12d4cfb](https://togithub.com/googleapis/java-pubsub/commit/12d4cfb7d67dbb163b3a545ea2ebae450e88283d)) ### Documentation * **sample:** Update the subscribe with error listener and subscribe with exactly-once samples ([#2437](https://togithub.com/googleapis/java-pubsub/issues/2437)) ([17c142b](https://togithub.com/googleapis/java-pubsub/commit/17c142b20efb79f9c71fc6306cb3ee4e15c5e06f)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- .kokoro/presubmit/graalvm-native-a.cfg | 2 +- .kokoro/presubmit/graalvm-native-b.cfg | 2 +- .kokoro/presubmit/graalvm-native-c.cfg | 2 +- CHANGELOG.md | 22 ++++++++++++++++++++++ README.md | 6 +++--- google-cloud-pubsub-bom/pom.xml | 8 ++++---- google-cloud-pubsub/pom.xml | 4 ++-- grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 12 files changed, 46 insertions(+), 24 deletions(-) diff --git a/.kokoro/presubmit/graalvm-native-a.cfg b/.kokoro/presubmit/graalvm-native-a.cfg index 5cc939cf9..d72ed3f0e 100644 --- a/.kokoro/presubmit/graalvm-native-a.cfg +++ b/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b.cfg b/.kokoro/presubmit/graalvm-native-b.cfg index fd0015918..f2e296b84 100644 --- a/.kokoro/presubmit/graalvm-native-b.cfg +++ b/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-c.cfg b/.kokoro/presubmit/graalvm-native-c.cfg index 424494b02..68512fbff 100644 --- a/.kokoro/presubmit/graalvm-native-c.cfg +++ b/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/CHANGELOG.md b/CHANGELOG.md index 6657c1065..519bd1396 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.140.0](https://github.com/googleapis/java-pubsub/compare/v1.139.4...v1.140.0) (2025-06-03) + + +### Features + +* Add SchemaViolationReason to IngestionFailureEvent ([21cc376](https://github.com/googleapis/java-pubsub/commit/21cc3764aaa6fc05eb4a5078a72dae30694fba91)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 ([#2435](https://github.com/googleapis/java-pubsub/issues/2435)) ([b37c557](https://github.com/googleapis/java-pubsub/commit/b37c5573e1d0d7eada4ce4ec6a052521ea11cff1)) +* Update dependency com.google.cloud:google-cloud-storage to v2.52.3 ([#2436](https://github.com/googleapis/java-pubsub/issues/2436)) ([4f309d1](https://github.com/googleapis/java-pubsub/commit/4f309d151d4bd584a33a0bb8882d0614a1b9d533)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2444](https://github.com/googleapis/java-pubsub/issues/2444)) ([a59135c](https://github.com/googleapis/java-pubsub/commit/a59135c6859d0aa5c247a6a1f60872c959123cc7)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2446](https://github.com/googleapis/java-pubsub/issues/2446)) ([6434be1](https://github.com/googleapis/java-pubsub/commit/6434be16560fdc8797b7c930b06df38c0972c96c)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.31.0 ([#2430](https://github.com/googleapis/java-pubsub/issues/2430)) ([232fac1](https://github.com/googleapis/java-pubsub/commit/232fac1c47e0d3680dcc8d56b69d65ed0d379dde)) +* Update googleapis/sdk-platform-java action to v2.59.0 ([#2445](https://github.com/googleapis/java-pubsub/issues/2445)) ([12d4cfb](https://github.com/googleapis/java-pubsub/commit/12d4cfb7d67dbb163b3a545ea2ebae450e88283d)) + + +### Documentation + +* **sample:** Update the subscribe with error listener and subscribe with exactly-once samples ([#2437](https://github.com/googleapis/java-pubsub/issues/2437)) ([17c142b](https://github.com/googleapis/java-pubsub/commit/17c142b20efb79f9c71fc6306cb3ee4e15c5e06f)) + ## [1.139.4](https://github.com/googleapis/java-pubsub/compare/v1.139.3...v1.139.4) (2025-05-15) diff --git a/README.md b/README.md index b023a93a6..93784c260 100644 --- a/README.md +++ b/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.140.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-pubsub-bom/pom.xml b/google-cloud-pubsub-bom/pom.xml index 072091078..526ebcb86 100644 --- a/google-cloud-pubsub-bom/pom.xml +++ b/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.5-SNAPSHOT + 1.140.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 diff --git a/google-cloud-pubsub/pom.xml b/google-cloud-pubsub/pom.xml index 680e89219..d3b6571fa 100644 --- a/google-cloud-pubsub/pom.xml +++ b/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 google-cloud-pubsub diff --git a/grpc-google-cloud-pubsub-v1/pom.xml b/grpc-google-cloud-pubsub-v1/pom.xml index 287e0afb6..4ccc3ff56 100644 --- a/grpc-google-cloud-pubsub-v1/pom.xml +++ b/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/pom.xml b/pom.xml index 0700ea85c..df2468788 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.5-SNAPSHOT + 1.140.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/proto-google-cloud-pubsub-v1/pom.xml b/proto-google-cloud-pubsub-v1/pom.xml index 86de777c6..954dc1f81 100644 --- a/proto-google-cloud-pubsub-v1/pom.xml +++ b/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4a254d46b..2daaae281 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/versions.txt b/versions.txt index a05e9f228..bd172824c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.4:1.139.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT +google-cloud-pubsub:1.140.0:1.140.0 +grpc-google-cloud-pubsub-v1:1.122.0:1.122.0 +proto-google-cloud-pubsub-v1:1.122.0:1.122.0