From 260e61cdc048021c6ce62f90b46fc69432cae857 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 1 Feb 2024 06:55:14 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 8 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 0 .../pubsub/v1/SchemaServiceSettings.java | 1 - .../pubsub/v1/SubscriptionAdminClient.java | 772 ++++- .../pubsub/v1/SubscriptionAdminSettings.java | 1 - .../cloud/pubsub/v1/TopicAdminClient.java | 206 ++ .../cloud/pubsub/v1/TopicAdminSettings.java | 1 - .../cloud/pubsub/v1/gapic_metadata.json | 0 .../google/cloud/pubsub/v1/package-info.java | 0 .../v1/stub/GrpcPublisherCallableFactory.java | 0 .../pubsub/v1/stub/GrpcPublisherStub.java | 1 - .../GrpcSchemaServiceCallableFactory.java | 0 .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 1 - .../stub/GrpcSubscriberCallableFactory.java | 0 .../pubsub/v1/stub/GrpcSubscriberStub.java | 1 - .../HttpJsonPublisherCallableFactory.java | 0 .../pubsub/v1/stub/HttpJsonPublisherStub.java | 0 .../HttpJsonSchemaServiceCallableFactory.java | 0 .../v1/stub/HttpJsonSchemaServiceStub.java | 0 .../HttpJsonSubscriberCallableFactory.java | 0 .../v1/stub/HttpJsonSubscriberStub.java | 0 .../cloud/pubsub/v1/stub/PublisherStub.java | 0 .../pubsub/v1/stub/PublisherStubSettings.java | 0 .../pubsub/v1/stub/SchemaServiceStub.java | 0 .../v1/stub/SchemaServiceStubSettings.java | 0 .../cloud/pubsub/v1/stub/SubscriberStub.java | 0 .../v1/stub/SubscriberStubSettings.java | 3 +- .../reflect-config.json | 0 .../google/cloud/pubsub/v1/MockIAMPolicy.java | 0 .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 0 .../google/cloud/pubsub/v1/MockPublisher.java | 0 .../cloud/pubsub/v1/MockPublisherImpl.java | 0 .../cloud/pubsub/v1/MockSchemaService.java | 0 .../pubsub/v1/MockSchemaServiceImpl.java | 0 .../cloud/pubsub/v1/MockSubscriber.java | 0 .../cloud/pubsub/v1/MockSubscriberImpl.java | 0 .../v1/SchemaServiceClientHttpJsonTest.java | 0 .../pubsub/v1/SchemaServiceClientTest.java | 0 .../SubscriptionAdminClientHttpJsonTest.java | 0 .../v1/SubscriptionAdminClientTest.java | 0 .../v1/TopicAdminClientHttpJsonTest.java | 0 .../cloud/pubsub/v1/TopicAdminClientTest.java | 0 .../com/google/pubsub/v1/PublisherGrpc.java | 902 +++-- .../google/pubsub/v1/SchemaServiceGrpc.java | 1377 ++++++++ .../com/google/pubsub/v1/SubscriberGrpc.java | 1465 +++++--- .../google/pubsub/v1/SchemaServiceGrpc.java | 1097 ------ .../v1/DeleteSchemaRequestOrBuilder.java | 32 - .../v1/DeleteSnapshotRequestOrBuilder.java | 32 - .../DeleteSubscriptionRequestOrBuilder.java | 32 - .../v1/DeleteTopicRequestOrBuilder.java | 32 - .../DetachSubscriptionRequestOrBuilder.java | 32 - .../DetachSubscriptionResponseOrBuilder.java | 10 - .../v1/GetSnapshotRequestOrBuilder.java | 32 - .../v1/GetSubscriptionRequestOrBuilder.java | 32 - .../pubsub/v1/GetTopicRequestOrBuilder.java | 32 - .../IngestionDataSourceSettingsOrBuilder.java | 39 - .../v1/ListSnapshotsResponseOrBuilder.java | 78 - .../pubsub/v1/PublishRequestOrBuilder.java | 76 - .../com/google/pubsub/v1/PubsubProto.java | 1114 ------ .../com/google/pubsub/v1/SchemaProto.java | 329 -- .../pubsub/v1/SeekResponseOrBuilder.java | 10 - .../v1/StreamingPullResponseOrBuilder.java | 141 - .../v1/ValidateMessageResponseOrBuilder.java | 10 - .../v1/ValidateSchemaResponseOrBuilder.java | 10 - .../google/pubsub/v1/AcknowledgeRequest.java | 445 ++- .../v1/AcknowledgeRequestOrBuilder.java | 53 +- .../com/google/pubsub/v1/BigQueryConfig.java | 604 ++-- .../pubsub/v1/BigQueryConfigOrBuilder.java | 53 +- .../google/pubsub/v1/CloudStorageConfig.java | 1596 +++++---- .../v1/CloudStorageConfigOrBuilder.java | 119 +- .../google/pubsub/v1/CommitSchemaRequest.java | 419 ++- .../v1/CommitSchemaRequestOrBuilder.java | 43 +- .../google/pubsub/v1/CreateSchemaRequest.java | 491 +-- .../v1/CreateSchemaRequestOrBuilder.java | 52 +- .../pubsub/v1/CreateSnapshotRequest.java | 680 ++-- .../v1/CreateSnapshotRequestOrBuilder.java | 82 +- .../google/pubsub/v1/DeadLetterPolicy.java | 339 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 30 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 337 +- .../v1/DeleteSchemaRequestOrBuilder.java | 57 + .../v1/DeleteSchemaRevisionRequest.java | 481 +-- .../DeleteSchemaRevisionRequestOrBuilder.java | 62 +- .../pubsub/v1/DeleteSnapshotRequest.java | 340 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 57 + .../pubsub/v1/DeleteSubscriptionRequest.java | 340 +- .../DeleteSubscriptionRequestOrBuilder.java | 57 + .../google/pubsub/v1/DeleteTopicRequest.java | 337 +- .../v1/DeleteTopicRequestOrBuilder.java | 57 + .../pubsub/v1/DetachSubscriptionRequest.java | 340 +- .../DetachSubscriptionRequestOrBuilder.java | 57 + .../pubsub/v1/DetachSubscriptionResponse.java | 241 +- .../DetachSubscriptionResponseOrBuilder.java | 25 + .../java/com/google/pubsub/v1/Encoding.java | 82 +- .../google/pubsub/v1/ExpirationPolicy.java | 320 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 26 +- .../google/pubsub/v1/GetSchemaRequest.java | 380 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 41 +- .../google/pubsub/v1/GetSnapshotRequest.java | 337 +- .../v1/GetSnapshotRequestOrBuilder.java | 57 + .../pubsub/v1/GetSubscriptionRequest.java | 340 +- .../v1/GetSubscriptionRequestOrBuilder.java | 57 + .../com/google/pubsub/v1/GetTopicRequest.java | 333 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 57 + .../v1/IngestionDataSourceSettings.java | 1213 ++++--- .../IngestionDataSourceSettingsOrBuilder.java | 69 + .../pubsub/v1/ListSchemaRevisionsRequest.java | 490 ++- .../ListSchemaRevisionsRequestOrBuilder.java | 53 +- .../v1/ListSchemaRevisionsResponse.java | 487 +-- .../ListSchemaRevisionsResponseOrBuilder.java | 46 +- .../google/pubsub/v1/ListSchemasRequest.java | 484 ++- .../v1/ListSchemasRequestOrBuilder.java | 53 +- .../google/pubsub/v1/ListSchemasResponse.java | 474 +-- .../v1/ListSchemasResponseOrBuilder.java | 46 +- .../pubsub/v1/ListSnapshotsRequest.java | 443 ++- .../v1/ListSnapshotsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListSnapshotsResponse.java | 566 +-- .../v1/ListSnapshotsResponseOrBuilder.java | 116 + .../pubsub/v1/ListSubscriptionsRequest.java | 443 ++- .../v1/ListSubscriptionsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListSubscriptionsResponse.java | 556 +-- .../ListSubscriptionsResponseOrBuilder.java | 65 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 443 ++- .../ListTopicSnapshotsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 423 ++- .../ListTopicSnapshotsResponseOrBuilder.java | 45 +- .../v1/ListTopicSubscriptionsRequest.java | 450 ++- ...istTopicSubscriptionsRequestOrBuilder.java | 47 +- .../v1/ListTopicSubscriptionsResponse.java | 482 ++- ...stTopicSubscriptionsResponseOrBuilder.java | 61 +- .../google/pubsub/v1/ListTopicsRequest.java | 436 ++- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 47 +- .../google/pubsub/v1/ListTopicsResponse.java | 543 +-- .../v1/ListTopicsResponseOrBuilder.java | 61 +- .../pubsub/v1/MessageStoragePolicy.java | 441 ++- .../v1/MessageStoragePolicyOrBuilder.java | 55 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 479 ++- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 56 +- .../pubsub/v1/ModifyPushConfigRequest.java | 464 ++- .../v1/ModifyPushConfigRequestOrBuilder.java | 52 +- .../com/google/pubsub/v1/ProjectName.java | 0 .../com/google/pubsub/v1/PublishRequest.java | 582 ++-- .../pubsub/v1/PublishRequestOrBuilder.java | 118 + .../com/google/pubsub/v1/PublishResponse.java | 341 +- .../pubsub/v1/PublishResponseOrBuilder.java | 36 +- .../com/google/pubsub/v1/PubsubMessage.java | 769 +++-- .../pubsub/v1/PubsubMessageOrBuilder.java | 92 +- .../com/google/pubsub/v1/PubsubProto.java | 1236 +++++++ .../com/google/pubsub/v1/PullRequest.java | 435 ++- .../pubsub/v1/PullRequestOrBuilder.java | 51 +- .../com/google/pubsub/v1/PullResponse.java | 478 ++- .../pubsub/v1/PullResponseOrBuilder.java | 56 +- .../java/com/google/pubsub/v1/PushConfig.java | 1941 ++++++----- .../google/pubsub/v1/PushConfigOrBuilder.java | 132 +- .../com/google/pubsub/v1/ReceivedMessage.java | 460 ++- .../pubsub/v1/ReceivedMessageOrBuilder.java | 47 +- .../com/google/pubsub/v1/RetryPolicy.java | 515 ++- .../pubsub/v1/RetryPolicyOrBuilder.java | 52 +- .../pubsub/v1/RollbackSchemaRequest.java | 412 ++- .../v1/RollbackSchemaRequestOrBuilder.java | 44 +- .../java/com/google/pubsub/v1/Schema.java | 718 ++-- .../java/com/google/pubsub/v1/SchemaName.java | 0 .../com/google/pubsub/v1/SchemaOrBuilder.java | 79 +- .../com/google/pubsub/v1/SchemaProto.java | 353 ++ .../com/google/pubsub/v1/SchemaSettings.java | 536 +-- .../pubsub/v1/SchemaSettingsOrBuilder.java | 59 +- .../java/com/google/pubsub/v1/SchemaView.java | 82 +- .../com/google/pubsub/v1/SeekRequest.java | 591 ++-- .../pubsub/v1/SeekRequestOrBuilder.java | 67 +- .../com/google/pubsub/v1/SeekResponse.java | 231 +- .../pubsub/v1/SeekResponseOrBuilder.java | 25 + .../java/com/google/pubsub/v1/Snapshot.java | 756 ++-- .../com/google/pubsub/v1/SnapshotName.java | 0 .../google/pubsub/v1/SnapshotOrBuilder.java | 91 +- .../pubsub/v1/StreamingPullRequest.java | 894 +++-- .../v1/StreamingPullRequestOrBuilder.java | 119 +- .../pubsub/v1/StreamingPullResponse.java | 3043 +++++++++++------ .../v1/StreamingPullResponseOrBuilder.java | 221 ++ .../com/google/pubsub/v1/Subscription.java | 2191 ++++++++---- .../google/pubsub/v1/SubscriptionName.java | 0 .../pubsub/v1/SubscriptionOrBuilder.java | 269 +- .../main/java/com/google/pubsub/v1/Topic.java | 1371 +++++--- .../java/com/google/pubsub/v1/TopicName.java | 0 .../com/google/pubsub/v1/TopicOrBuilder.java | 164 +- .../pubsub/v1/UpdateSnapshotRequest.java | 477 ++- .../v1/UpdateSnapshotRequestOrBuilder.java | 43 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 513 ++- .../UpdateSubscriptionRequestOrBuilder.java | 55 +- .../google/pubsub/v1/UpdateTopicRequest.java | 446 ++- .../v1/UpdateTopicRequestOrBuilder.java | 43 +- .../pubsub/v1/ValidateMessageRequest.java | 646 ++-- .../v1/ValidateMessageRequestOrBuilder.java | 64 +- .../pubsub/v1/ValidateMessageResponse.java | 238 +- .../v1/ValidateMessageResponseOrBuilder.java | 25 + .../pubsub/v1/ValidateSchemaRequest.java | 422 ++- .../v1/ValidateSchemaRequestOrBuilder.java | 43 +- .../pubsub/v1/ValidateSchemaResponse.java | 238 +- .../v1/ValidateSchemaResponseOrBuilder.java | 25 + .../main/proto/google/pubsub/v1/pubsub.proto | 0 .../main/proto/google/pubsub/v1/schema.proto | 0 199 files changed, 31981 insertions(+), 19017 deletions(-) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java (81%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java (91%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java (100%) rename {owl-bot-staging/v1/grpc-google-cloud-pubsub-v1 => grpc-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublisherGrpc.java (51%) create mode 100644 grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java rename {owl-bot-staging/v1/grpc-google-cloud-pubsub-v1 => grpc-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java (57%) delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/BigQueryConfig.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java (63%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java (63%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Encoding.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java (63%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetTopicRequest.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java (70%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java (65%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ProjectName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublishRequest.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublishResponse.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PubsubMessage.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java (78%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullResponse.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PushConfig.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ReceivedMessage.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/RetryPolicy.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Schema.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaSettings.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaView.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SeekRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SeekResponse.java (61%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Snapshot.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SnapshotName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java (86%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java (65%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Subscription.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SubscriptionName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Topic.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/TopicName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java (62%) create mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/proto/google/pubsub/v1/pubsub.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/proto/google/pubsub/v1/schema.proto (100%) diff --git a/README.md b/README.md index 75d1565f7..f08c999d4 100644 --- a/README.md +++ b/README.md @@ -52,20 +52,20 @@ 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.30.0') +implementation platform('com.google.cloud:libraries-bom:26.31.0') 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.126.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.2" ``` @@ -409,7 +409,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.126.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.2 [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/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 06e321094..67d08bb63 100644 --- a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings; diff --git a/owl-bot-staging/v1/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 similarity index 81% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index dbee623f3..7eca1a773 100644 --- a/owl-bot-staging/v1/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 @@ -48,6 +48,9 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.ModifyPushConfigRequest; import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ProjectSnapshotName; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.PullRequest; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.PushConfig; @@ -887,6 +890,216 @@ public final Subscription createSubscription(Subscription request) { return createSubscriptionCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a subscription to a given topic. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. If the subscription already exists, returns `ALREADY_EXISTS`. If the + * corresponding topic doesn't exist, returns `NOT_FOUND`. + * + *

If the name is not provided in the request, the server will assign a random name for this + * subscription on the same project as the topic, conforming to the [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   int ackDeadlineSeconds = 0;
+   *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
+   * }
+   * 
+ * + * @param name Required. The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a + * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores + * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 + * and 255 characters in length, and it must not start with `"goog"`. + * @param topic Required. The name of the topic from which this subscription is receiving + * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be + * `_deleted-topic_` if the topic has been deleted. + * @param pushConfig If push delivery is used with this subscription, this field is used to + * configure it. An empty `pushConfig` signifies that the subscriber will pull and ack + * messages using API methods. + * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits + * for the subscriber to acknowledge receipt before resending the message. In the interval + * after the message is delivered and before it is acknowledged, it is considered to be + * <i>outstanding</i>. During that time period, the message will not be + * redelivered (on a best-effort basis). + *

For pull subscriptions, this value is used as the initial value for the ack deadline. To + * override this value for a given message, call `ModifyAckDeadline` with the corresponding + * `ack_id` if using non-streaming pull or send the `ack_id` in a + * `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline + * you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds + * (10 minutes). If this parameter is 0, a default value of 10 seconds is used. + *

For push delivery, this value is also used to set the request timeout for the call to + * the push endpoint. + *

If the subscriber never acknowledges the message, the Pub/Sub system will eventually + * redeliver the message. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} + * instead. + */ + @Deprecated + public final Subscription createSubscription( + ProjectSubscriptionName name, + ProjectTopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic == null ? null : topic.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already + * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * `NOT_FOUND`. + * + *

If the name is not provided in the request, the server will assign a random name for this + * subscription on the same project as the topic, conforming to the [resource name format] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   int ackDeadlineSeconds = 2135351438;
+   *   Subscription response =
+   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
+   * }
+   * }
+ * + * @param name Required. The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a + * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores + * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 + * and 255 characters in length, and it must not start with `"goog"`. + * @param topic Required. The name of the topic from which this subscription is receiving + * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be + * `_deleted-topic_` if the topic has been deleted. + * @param pushConfig If push delivery is used with this subscription, this field is used to + * configure it. An empty `pushConfig` signifies that the subscriber will pull and ack + * messages using API methods. + * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits + * for the subscriber to acknowledge receipt before resending the message. In the interval + * after the message is delivered and before it is acknowledged, it is considered to be + * <i>outstanding</i>. During that time period, the message will not be + * redelivered (on a best-effort basis). + *

For pull subscriptions, this value is used as the initial value for the ack deadline. To + * override this value for a given message, call `ModifyAckDeadline` with the corresponding + * `ack_id` if using non-streaming pull or send the `ack_id` in a + * `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline + * you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds + * (10 minutes). If this parameter is 0, a default value of 10 seconds is used. + *

For push delivery, this value is also used to set the request timeout for the call to + * the push endpoint. + *

If the subscriber never acknowledges the message, the Pub/Sub system will eventually + * redeliver the message. + * @deprecated Use {@link #createSubscription(SubscriptionName, String, PushConfig, int)} instead. + */ + @Deprecated + public final Subscription createSubscription( + ProjectSubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already + * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * `NOT_FOUND`. + * + *

If the name is not provided in the request, the server will assign a random name for this + * subscription on the same project as the topic, conforming to the [resource name format] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   int ackDeadlineSeconds = 2135351438;
+   *   Subscription response =
+   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
+   * }
+   * }
+ * + * @param name Required. The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a + * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores + * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 + * and 255 characters in length, and it must not start with `"goog"`. + * @param topic Required. The name of the topic from which this subscription is receiving + * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be + * `_deleted-topic_` if the topic has been deleted. + * @param pushConfig If push delivery is used with this subscription, this field is used to + * configure it. An empty `pushConfig` signifies that the subscriber will pull and ack + * messages using API methods. + * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits + * for the subscriber to acknowledge receipt before resending the message. In the interval + * after the message is delivered and before it is acknowledged, it is considered to be + * <i>outstanding</i>. During that time period, the message will not be + * redelivered (on a best-effort basis). + *

For pull subscriptions, this value is used as the initial value for the ack deadline. To + * override this value for a given message, call `ModifyAckDeadline` with the corresponding + * `ack_id` if using non-streaming pull or send the `ack_id` in a + * `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline + * you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds + * (10 minutes). If this parameter is 0, a default value of 10 seconds is used. + *

For push delivery, this value is also used to set the request timeout for the call to + * the push endpoint. + *

If the subscriber never acknowledges the message, the Pub/Sub system will eventually + * redeliver the message. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} + * instead. + */ + @Deprecated + public final Subscription createSubscription( + ProjectSubscriptionName name, + TopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic == null ? null : topic.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] @@ -1026,6 +1239,33 @@ public final Subscription getSubscription(GetSubscriptionRequest request) { return getSubscriptionCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a subscription. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
+   * }
+   * }
+ * + * @param subscription Required. The name of the subscription to get. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getSubscription(SubscriptionName)} instead. + */ + @Deprecated + public final Subscription getSubscription(ProjectSubscriptionName subscription) { + GetSubscriptionRequest request = + GetSubscriptionRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return getSubscription(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration details of a subscription. @@ -1410,6 +1650,36 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) { deleteSubscriptionCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an existing subscription. All messages retained in the subscription are immediately + * dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is + * deleted, a new one may be created with the same name, but the new one has no association with + * the old subscription or its topic unless the same topic is specified. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   subscriptionAdminClient.deleteSubscription(subscription);
+   * }
+   * }
+ * + * @param subscription Required. The subscription to delete. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #deleteSubscription(SubscriptionName)} instead. + */ + @Deprecated + public final void deleteSubscription(ProjectSubscriptionName subscription) { + DeleteSubscriptionRequest request = + DeleteSubscriptionRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + deleteSubscription(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an existing subscription. All messages retained in the subscription are immediately @@ -1566,6 +1836,49 @@ public final void modifyAckDeadline(ModifyAckDeadlineRequest request) { modifyAckDeadlineCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies the ack deadline for a specific message. This method is useful to indicate that more + * time is needed to process a message by the subscriber, or to make the message available for + * redelivery if the processing was interrupted. Note that this does not modify the + * subscription-level `ackDeadlineSeconds` used for subsequent messages. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List ackIds = new ArrayList<>();
+   *   int ackDeadlineSeconds = 2135351438;
+   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
+   * }
+   * }
+ * + * @param subscription Required. The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds Required. List of acknowledgment IDs. + * @param ackDeadlineSeconds Required. The new ack deadline with respect to the time this request + * was sent to the Pub/Sub system. For example, if the value is 10, the new ack deadline will + * expire 10 seconds after the `ModifyAckDeadline` call was made. Specifying zero might + * immediately make the message available for delivery to another subscriber client. This + * typically results in an increase in the rate of message redeliveries (that is, duplicates). + * The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify is + * 600 seconds (10 minutes). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #modifyAckDeadline(SubscriptionName, List, int)} instead. + */ + @Deprecated + final void modifyAckDeadline( + ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { + ModifyAckDeadlineRequest request = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + modifyAckDeadline(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Modifies the ack deadline for a specific message. This method is useful to indicate that more @@ -1705,6 +2018,41 @@ public final void acknowledge(AcknowledgeRequest request) { acknowledgeCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The + * Pub/Sub system can remove the relevant messages from the subscription. + * + *

Acknowledging a message whose ack deadline has expired may succeed, but such a message may + * be redelivered later. Acknowledging a message more than once will not result in an error. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List ackIds = new ArrayList<>();
+   *   subscriptionAdminClient.acknowledge(subscription, ackIds);
+   * }
+   * }
+ * + * @param subscription Required. The subscription whose message is being acknowledged. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds Required. The acknowledgment ID for the messages being acknowledged that was + * returned by the Pub/Sub system in the `Pull` response. Must not be empty. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #acknowledge(SubscriptionName, List)} instead. + */ + @Deprecated + public final void acknowledge(ProjectSubscriptionName subscription, List ackIds) { + AcknowledgeRequest request = + AcknowledgeRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .build(); + acknowledge(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The @@ -1915,8 +2263,82 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final PullResponse pull(PullRequest request) { - return pullCallable().call(request); + public final PullResponse pull(PullRequest request) { + return pullCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   int maxMessages = 496131527;
+   *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
+   * }
+   * }
+ * + * @param subscription Required. The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param maxMessages Required. The maximum number of messages to return for this request. Must be + * a positive integer. The Pub/Sub system may return fewer than the number specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #pull(SubscriptionName, int)} instead. + */ + @Deprecated + public final PullResponse pull(ProjectSubscriptionName subscription, int maxMessages) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setMaxMessages(maxMessages) + .build(); + return pull(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   boolean returnImmediately = true;
+   *   int maxMessages = 496131527;
+   *   PullResponse response =
+   *       subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);
+   * }
+   * }
+ * + * @param subscription Required. The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param returnImmediately Optional. If this field set to true, the system will respond + * immediately even if it there are no messages available to return in the `Pull` response. + * Otherwise, the system may wait (for a bounded amount of time) until at least one message is + * available, rather than returning no messages. Warning: setting this field to `true` is + * discouraged because it adversely impacts the performance of `Pull` operations. We recommend + * that users do not set this field. + * @param maxMessages Required. The maximum number of messages to return for this request. Must be + * a positive integer. The Pub/Sub system may return fewer than the number specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #pull(SubscriptionName, boolean, int)} instead. + */ + @Deprecated + final PullResponse pull( + ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setReturnImmediately(returnImmediately) + .setMaxMessages(maxMessages) + .build(); + return pull(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -2107,6 +2529,44 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) { modifyPushConfigCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies the `PushConfig` for a specified subscription. + * + *

This may be used to change a push subscription to a pull one (signified by an empty + * `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push + * subscription. Messages will accumulate for delivery continuously through the call regardless of + * changes to the `PushConfig`. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
+   * }
+   * }
+ * + * @param subscription Required. The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param pushConfig Required. The push configuration for future deliveries. + *

An empty `pushConfig` indicates that the Pub/Sub system should stop pushing messages + * from the given subscription and allow messages to be pulled and acknowledged - effectively + * pausing the subscription if `Pull` or `StreamingPull` is not called. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #modifyPushConfig(SubscriptionName, PushConfig)} instead. + */ + @Deprecated + public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) { + ModifyPushConfigRequest request = + ModifyPushConfigRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setPushConfig(pushConfig) + .build(); + modifyPushConfig(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Modifies the `PushConfig` for a specified subscription. @@ -2235,6 +2695,36 @@ public final Snapshot getSnapshot(GetSnapshotRequest request) { return getSnapshotCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> operations, which + * allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment + * state of messages in an existing subscription to the state captured by a snapshot. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
+   * }
+   * }
+ * + * @param snapshot Required. The name of the snapshot to get. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #getSnapshot(SnapshotName)} instead. + */ + @Deprecated + public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + return getSnapshot(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration details of a snapshot. Snapshots are used in @@ -2696,6 +3186,157 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { return createSnapshotCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to + * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * messages in an existing subscription to the state captured by a snapshot. If the snapshot + * already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns + * `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would + * expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the + * `Snapshot.expire_time` field. If the name is not provided in the request, the server will + * assign a random name for this snapshot on the same project as the subscription, conforming to + * the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
+   * }
+   * }
+ * + * @param name Required. User-provided name for this snapshot. If the name is not provided in the + * request, the server will assign a random name for this snapshot on the same project as the + * subscription. Note that for REST API requests, you must specify a name. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription Required. The subscription whose backlog the snapshot retains. + * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the + * subscription. More precisely, this is defined as the messages in the subscription's backlog + * that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as + * well as: (b) Any messages published to the subscription's topic following the successful + * completion of the CreateSnapshot request. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(SnapshotName, SubscriptionName)} instead. + */ + @Deprecated + public final Snapshot createSnapshot( + ProjectSnapshotName name, ProjectSubscriptionName subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to + * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * messages in an existing subscription to the state captured by a snapshot. If the snapshot + * already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns + * `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would + * expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the + * `Snapshot.expire_time` field. If the name is not provided in the request, the server will + * assign a random name for this snapshot on the same project as the subscription, conforming to + * the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
+   * }
+   * }
+ * + * @param name Required. User-provided name for this snapshot. If the name is not provided in the + * request, the server will assign a random name for this snapshot on the same project as the + * subscription. Note that for REST API requests, you must specify a name. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription Required. The subscription whose backlog the snapshot retains. + * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the + * subscription. More precisely, this is defined as the messages in the subscription's backlog + * that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as + * well as: (b) Any messages published to the subscription's topic following the successful + * completion of the CreateSnapshot request. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(String, SubscriptionName)} instead. + */ + @Deprecated + public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name) + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to + * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * messages in an existing subscription to the state captured by a snapshot. If the snapshot + * already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns + * `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would + * expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the + * `Snapshot.expire_time` field. If the name is not provided in the request, the server will + * assign a random name for this snapshot on the same project as the subscription, conforming to + * the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
+   * }
+   * }
+ * + * @param name Required. User-provided name for this snapshot. If the name is not provided in the + * request, the server will assign a random name for this snapshot on the same project as the + * subscription. Note that for REST API requests, you must specify a name. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription Required. The subscription whose backlog the snapshot retains. + * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the + * subscription. More precisely, this is defined as the messages in the subscription's backlog + * that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as + * well as: (b) Any messages published to the subscription's topic following the successful + * completion of the CreateSnapshot request. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(SnapshotName, String)} instead. + */ + @Deprecated + public final Snapshot createSnapshot(ProjectSnapshotName name, String subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSubscription(subscription) + .build(); + return createSnapshot(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a snapshot from the requested subscription. Snapshots are used in @@ -2938,6 +3579,39 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { deleteSnapshotCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes an existing snapshot. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage + * message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in + * an existing subscription to the state captured by a snapshot. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. + * + *

Sample code: + * + *

{@code
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   subscriptionAdminClient.deleteSnapshot(snapshot);
+   * }
+   * }
+ * + * @param snapshot Required. The name of the snapshot to delete. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #deleteSnapshot(SnapshotName)} instead. + */ + @Deprecated + public final void deleteSnapshot(ProjectSnapshotName snapshot) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + deleteSnapshot(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Removes an existing snapshot. Snapshots are used in [Seek] @@ -3069,6 +3743,37 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { return setIamPolicyCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the + * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud + * Platform services (such as Projects) might reject them. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. + */ + @Deprecated + public final Policy setIamPolicy(String resource, Policy policy) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on the specified resource. Replacesany existing policy. @@ -3130,6 +3835,31 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { return getIamPolicyCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. + */ + @Deprecated + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a resource. Returns an empty policyif the resource exists @@ -3193,6 +3923,44 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq return testIamPermissionsCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See the + * operation documentation for the appropriate value for this field. + * @param permissions The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. + */ + @Deprecated + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If theresource does not exist, diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 19d7cddb1..7f50be718 100644 --- a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -30,7 +30,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java similarity index 91% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index bc71b9edc..a80ed29ec 100644 --- a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -45,6 +45,7 @@ import com.google.pubsub.v1.ListTopicsRequest; import com.google.pubsub.v1.ListTopicsResponse; import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; @@ -462,6 +463,35 @@ public final Topic createTopic(String name) { return createTopic(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates the given topic with the given name. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Topic response = topicAdminClient.createTopic(name);
+   * }
+   * 
+ * + * @param name Required. The name of the topic. It must have the format + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only + * letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), + * tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in + * length, and it must not start with `"goog"`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createTopic(TopicName)} instead. + */ + @Deprecated + public final Topic createTopic(ProjectTopicName name) { + Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); + return createTopic(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] @@ -800,6 +830,31 @@ public final Topic getTopic(String topic) { return getTopic(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration of a topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Topic response = topicAdminClient.getTopic(topic);
+   * }
+   * 
+ * + * @param topic Required. The name of the topic to get. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getTopic(TopicName)} instead. + */ + @Deprecated + public final Topic getTopic(ProjectTopicName topic) { + GetTopicRequest request = + GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); + return getTopic(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration of a topic. @@ -1079,6 +1134,35 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String t return listTopicSubscriptions(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the names of the subscriptions on this topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param topic Required. The name of the topic that subscriptions are attached to. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead. + */ + @Deprecated + public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) { + ListTopicSubscriptionsRequest request = + ListTopicSubscriptionsRequest.newBuilder() + .setTopic(topic == null ? null : topic.toString()) + .build(); + return listTopicSubscriptions(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the attached subscriptions on this topic. @@ -1429,6 +1513,34 @@ public final void deleteTopic(String topic) { deleteTopic(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a + * topic is deleted, a new topic may be created with the same name; this is an entirely new topic + * with none of the old configuration or subscriptions. Existing subscriptions to this topic are + * not deleted, but their `topic` field is set to `_deleted-topic_`. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   topicAdminClient.deleteTopic(topic);
+   * }
+   * 
+ * + * @param topic Required. Name of the topic to delete. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #deleteTopic(TopicName)} instead. + */ + @Deprecated + public final void deleteTopic(ProjectTopicName topic) { + DeleteTopicRequest request = + DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); + deleteTopic(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a @@ -1583,6 +1695,37 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { return setIamPolicyCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the + * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud + * Platform services (such as Projects) might reject them. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. + */ + @Deprecated + public final Policy setIamPolicy(String resource, Policy policy) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on the specified resource. Replacesany existing policy. @@ -1644,6 +1787,31 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { return getIamPolicyCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. + */ + @Deprecated + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a resource. Returns an empty policyif the resource exists @@ -1707,6 +1875,44 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq return testIamPermissionsCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See the + * operation documentation for the appropriate value for this field. + * @param permissions The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. + */ + @Deprecated + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If theresource does not exist, diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index ae7f6fd4a..9dd62bda3 100644 --- a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 6a9446b17..d4c26515d 100644 --- a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -51,7 +51,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 35929c01f..cbaf6a608 100644 --- a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -51,7 +51,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index ba79536cb..b3651167c 100644 --- a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -59,7 +59,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java rename to google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 15c9ec57e..93122a831 100644 --- a/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -429,8 +429,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); + return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20); } /** Returns a builder for the default REST ChannelProvider for this service. */ diff --git a/owl-bot-staging/v1/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 similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json rename to google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java rename to google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java similarity index 51% rename from owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java rename to grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 064ea1df0..18d2202b1 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The service that an application uses to manipulate topics, and to send
  * messages to a topic.
@@ -19,330 +36,423 @@ private PublisherGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.pubsub.v1.Publisher";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateTopicMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic>
+      getCreateTopicMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateTopic",
       requestType = com.google.pubsub.v1.Topic.class,
       responseType = com.google.pubsub.v1.Topic.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateTopicMethod() {
-    io.grpc.MethodDescriptor getCreateTopicMethod;
+  public static io.grpc.MethodDescriptor
+      getCreateTopicMethod() {
+    io.grpc.MethodDescriptor
+        getCreateTopicMethod;
     if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) {
-          PublisherGrpc.getCreateTopicMethod = getCreateTopicMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTopic"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Topic.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Topic.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("CreateTopic"))
-              .build();
+          PublisherGrpc.getCreateTopicMethod =
+              getCreateTopicMethod =
+                  io.grpc.MethodDescriptor
+                      .newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTopic"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Topic.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Topic.getDefaultInstance()))
+                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("CreateTopic"))
+                      .build();
         }
       }
     }
     return getCreateTopicMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateTopicMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
+      getUpdateTopicMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateTopic",
       requestType = com.google.pubsub.v1.UpdateTopicRequest.class,
       responseType = com.google.pubsub.v1.Topic.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateTopicMethod() {
-    io.grpc.MethodDescriptor getUpdateTopicMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
+      getUpdateTopicMethod() {
+    io.grpc.MethodDescriptor
+        getUpdateTopicMethod;
     if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) {
-          PublisherGrpc.getUpdateTopicMethod = getUpdateTopicMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTopic"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Topic.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("UpdateTopic"))
-              .build();
+          PublisherGrpc.getUpdateTopicMethod =
+              getUpdateTopicMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTopic"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Topic.getDefaultInstance()))
+                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("UpdateTopic"))
+                      .build();
         }
       }
     }
     return getUpdateTopicMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getPublishMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
+      getPublishMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Publish",
       requestType = com.google.pubsub.v1.PublishRequest.class,
       responseType = com.google.pubsub.v1.PublishResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPublishMethod() {
-    io.grpc.MethodDescriptor getPublishMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
+      getPublishMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
+        getPublishMethod;
     if ((getPublishMethod = PublisherGrpc.getPublishMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getPublishMethod = PublisherGrpc.getPublishMethod) == null) {
-          PublisherGrpc.getPublishMethod = getPublishMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.PublishRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.PublishResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("Publish"))
-              .build();
+          PublisherGrpc.getPublishMethod =
+              getPublishMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.PublishRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.PublishResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("Publish"))
+                      .build();
         }
       }
     }
     return getPublishMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetTopicMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
+      getGetTopicMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetTopic",
       requestType = com.google.pubsub.v1.GetTopicRequest.class,
       responseType = com.google.pubsub.v1.Topic.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetTopicMethod() {
-    io.grpc.MethodDescriptor getGetTopicMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
+      getGetTopicMethod() {
+    io.grpc.MethodDescriptor
+        getGetTopicMethod;
     if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) {
-          PublisherGrpc.getGetTopicMethod = getGetTopicMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopic"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.GetTopicRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Topic.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("GetTopic"))
-              .build();
+          PublisherGrpc.getGetTopicMethod =
+              getGetTopicMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopic"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.GetTopicRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Topic.getDefaultInstance()))
+                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("GetTopic"))
+                      .build();
         }
       }
     }
     return getGetTopicMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListTopicsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
+      getListTopicsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListTopics",
       requestType = com.google.pubsub.v1.ListTopicsRequest.class,
       responseType = com.google.pubsub.v1.ListTopicsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListTopicsMethod() {
-    io.grpc.MethodDescriptor getListTopicsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
+      getListTopicsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
+        getListTopicsMethod;
     if ((getListTopicsMethod = PublisherGrpc.getListTopicsMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getListTopicsMethod = PublisherGrpc.getListTopicsMethod) == null) {
-          PublisherGrpc.getListTopicsMethod = getListTopicsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopics"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopics"))
-              .build();
+          PublisherGrpc.getListTopicsMethod =
+              getListTopicsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopics"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopics"))
+                      .build();
         }
       }
     }
     return getListTopicsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListTopicSubscriptionsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
+          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
+      getListTopicSubscriptionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions",
       requestType = com.google.pubsub.v1.ListTopicSubscriptionsRequest.class,
       responseType = com.google.pubsub.v1.ListTopicSubscriptionsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() {
-    io.grpc.MethodDescriptor getListTopicSubscriptionsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
+          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
+      getListTopicSubscriptionsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.ListTopicSubscriptionsRequest,
+            com.google.pubsub.v1.ListTopicSubscriptionsResponse>
+        getListTopicSubscriptionsMethod;
     if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod) == null) {
       synchronized (PublisherGrpc.class) {
-        if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod) == null) {
-          PublisherGrpc.getListTopicSubscriptionsMethod = getListTopicSubscriptionsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopicSubscriptions"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopicSubscriptions"))
-              .build();
+        if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod)
+            == null) {
+          PublisherGrpc.getListTopicSubscriptionsMethod =
+              getListTopicSubscriptionsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ListTopicSubscriptions"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListTopicSubscriptionsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListTopicSubscriptionsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new PublisherMethodDescriptorSupplier("ListTopicSubscriptions"))
+                      .build();
         }
       }
     }
     return getListTopicSubscriptionsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListTopicSnapshotsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListTopicSnapshotsRequest,
+          com.google.pubsub.v1.ListTopicSnapshotsResponse>
+      getListTopicSnapshotsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListTopicSnapshots",
       requestType = com.google.pubsub.v1.ListTopicSnapshotsRequest.class,
       responseType = com.google.pubsub.v1.ListTopicSnapshotsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListTopicSnapshotsMethod() {
-    io.grpc.MethodDescriptor getListTopicSnapshotsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListTopicSnapshotsRequest,
+          com.google.pubsub.v1.ListTopicSnapshotsResponse>
+      getListTopicSnapshotsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.ListTopicSnapshotsRequest,
+            com.google.pubsub.v1.ListTopicSnapshotsResponse>
+        getListTopicSnapshotsMethod;
     if ((getListTopicSnapshotsMethod = PublisherGrpc.getListTopicSnapshotsMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getListTopicSnapshotsMethod = PublisherGrpc.getListTopicSnapshotsMethod) == null) {
-          PublisherGrpc.getListTopicSnapshotsMethod = getListTopicSnapshotsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopicSnapshots"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopicSnapshots"))
-              .build();
+          PublisherGrpc.getListTopicSnapshotsMethod =
+              getListTopicSnapshotsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopicSnapshots"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new PublisherMethodDescriptorSupplier("ListTopicSnapshots"))
+                      .build();
         }
       }
     }
     return getListTopicSnapshotsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteTopicMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
+      getDeleteTopicMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteTopic",
       requestType = com.google.pubsub.v1.DeleteTopicRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteTopicMethod() {
-    io.grpc.MethodDescriptor getDeleteTopicMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
+      getDeleteTopicMethod() {
+    io.grpc.MethodDescriptor
+        getDeleteTopicMethod;
     if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) {
-          PublisherGrpc.getDeleteTopicMethod = getDeleteTopicMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTopic"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DeleteTopic"))
-              .build();
+          PublisherGrpc.getDeleteTopicMethod =
+              getDeleteTopicMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTopic"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DeleteTopic"))
+                      .build();
         }
       }
     }
     return getDeleteTopicMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDetachSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.DetachSubscriptionRequest,
+          com.google.pubsub.v1.DetachSubscriptionResponse>
+      getDetachSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DetachSubscription",
       requestType = com.google.pubsub.v1.DetachSubscriptionRequest.class,
       responseType = com.google.pubsub.v1.DetachSubscriptionResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDetachSubscriptionMethod() {
-    io.grpc.MethodDescriptor getDetachSubscriptionMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.DetachSubscriptionRequest,
+          com.google.pubsub.v1.DetachSubscriptionResponse>
+      getDetachSubscriptionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.DetachSubscriptionRequest,
+            com.google.pubsub.v1.DetachSubscriptionResponse>
+        getDetachSubscriptionMethod;
     if ((getDetachSubscriptionMethod = PublisherGrpc.getDetachSubscriptionMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getDetachSubscriptionMethod = PublisherGrpc.getDetachSubscriptionMethod) == null) {
-          PublisherGrpc.getDetachSubscriptionMethod = getDetachSubscriptionMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachSubscription"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.DetachSubscriptionRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DetachSubscription"))
-              .build();
+          PublisherGrpc.getDetachSubscriptionMethod =
+              getDetachSubscriptionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachSubscription"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.DetachSubscriptionRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new PublisherMethodDescriptorSupplier("DetachSubscription"))
+                      .build();
         }
       }
     }
     return getDetachSubscriptionMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static PublisherStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherStub(channel, callOptions);
+          }
+        };
     return PublisherStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PublisherBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static PublisherBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherBlockingStub(channel, callOptions);
+          }
+        };
     return PublisherBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static PublisherFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static PublisherFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherFutureStub(channel, callOptions);
+          }
+        };
     return PublisherFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
@@ -351,69 +461,93 @@ public PublisherFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
      * 
*/ - default void createTopic(com.google.pubsub.v1.Topic request, + default void createTopic( + com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTopicMethod(), responseObserver); } /** + * + * *
      * Updates an existing topic by updating the fields specified in the update
      * mask. Note that certain properties of a topic are not modifiable.
      * 
*/ - default void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, + default void updateTopic( + com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTopicMethod(), responseObserver); } /** + * + * *
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
      * does not exist.
      * 
*/ - default void publish(com.google.pubsub.v1.PublishRequest request, + default void publish( + com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishMethod(), responseObserver); } /** + * + * *
      * Gets the configuration of a topic.
      * 
*/ - default void getTopic(com.google.pubsub.v1.GetTopicRequest request, + default void getTopic( + com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); } /** + * + * *
      * Lists matching topics.
      * 
*/ - default void listTopics(com.google.pubsub.v1.ListTopicsRequest request, + default void listTopics( + com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); } /** + * + * *
      * Lists the names of the attached subscriptions on this topic.
      * 
*/ - default void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver); + default void listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTopicSubscriptionsMethod(), responseObserver); } /** + * + * *
      * Lists the names of the snapshots on this topic. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -422,12 +556,17 @@ default void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsR
      * state captured by a snapshot.
      * 
*/ - default void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSnapshotsMethod(), responseObserver); + default void listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTopicSnapshotsMethod(), responseObserver); } /** + * + * *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
      * does not exist. After a topic is deleted, a new topic may be created with
@@ -436,12 +575,16 @@ default void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest r
      * not deleted, but their `topic` field is set to `_deleted-topic_`.
      * 
*/ - default void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request, + default void deleteTopic( + com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTopicMethod(), responseObserver); } /** + * + * *
      * Detaches a subscription from this topic. All messages retained in the
      * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
@@ -449,117 +592,146 @@ default void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request,
      * subscription, pushes to the endpoint will stop.
      * 
*/ - default void detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachSubscriptionMethod(), responseObserver); + default void detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetachSubscriptionMethod(), responseObserver); } } /** * Base class for the server implementation of the service Publisher. + * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public static abstract class PublisherImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class PublisherImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return PublisherGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Publisher. + * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public static final class PublisherStub - extends io.grpc.stub.AbstractAsyncStub { - private PublisherStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherStub extends io.grpc.stub.AbstractAsyncStub { + private PublisherStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherStub(channel, callOptions); } /** + * + * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
      * 
*/ - public void createTopic(com.google.pubsub.v1.Topic request, + public void createTopic( + com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates an existing topic by updating the fields specified in the update
      * mask. Note that certain properties of a topic are not modifiable.
      * 
*/ - public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, + public void updateTopic( + com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
      * does not exist.
      * 
*/ - public void publish(com.google.pubsub.v1.PublishRequest request, + public void publish( + com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPublishMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Gets the configuration of a topic.
      * 
*/ - public void getTopic(com.google.pubsub.v1.GetTopicRequest request, + public void getTopic( + com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Lists matching topics.
      * 
*/ - public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, + public void listTopics( + com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Lists the names of the attached subscriptions on this topic.
      * 
*/ - public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the names of the snapshots on this topic. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -568,13 +740,19 @@ public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRe
      * state captured by a snapshot.
      * 
*/ - public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
      * does not exist. After a topic is deleted, a new topic may be created with
@@ -583,13 +761,18 @@ public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest re
      * not deleted, but their `topic` field is set to `_deleted-topic_`.
      * 
*/ - public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request, + public void deleteTopic( + com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Detaches a subscription from this topic. All messages retained in the
      * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
@@ -597,15 +780,20 @@ public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request,
      * subscription, pushes to the endpoint will stop.
      * 
*/ - public void detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Publisher. + * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
@@ -613,8 +801,7 @@ public void detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest re
    */
   public static final class PublisherBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private PublisherBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -625,6 +812,8 @@ protected PublisherBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
@@ -636,6 +825,8 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request
     }
 
     /**
+     *
+     *
      * 
      * Updates an existing topic by updating the fields specified in the update
      * mask. Note that certain properties of a topic are not modifiable.
@@ -647,17 +838,22 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe
     }
 
     /**
+     *
+     *
      * 
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
      * does not exist.
      * 
*/ - public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.PublishRequest request) { + public com.google.pubsub.v1.PublishResponse publish( + com.google.pubsub.v1.PublishRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPublishMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the configuration of a topic.
      * 
@@ -668,26 +864,34 @@ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest } /** + * + * *
      * Lists matching topics.
      * 
*/ - public com.google.pubsub.v1.ListTopicsResponse listTopics(com.google.pubsub.v1.ListTopicsRequest request) { + public com.google.pubsub.v1.ListTopicsResponse listTopics( + com.google.pubsub.v1.ListTopicsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTopicsMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the names of the attached subscriptions on this topic.
      * 
*/ - public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the names of the snapshots on this topic. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -696,12 +900,15 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription
      * state captured by a snapshot.
      * 
*/ - public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) { + public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTopicSnapshotsMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
      * does not exist. After a topic is deleted, a new topic may be created with
@@ -716,6 +923,8 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq
     }
 
     /**
+     *
+     *
      * 
      * Detaches a subscription from this topic. All messages retained in the
      * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
@@ -723,7 +932,8 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq
      * subscription, pushes to the endpoint will stop.
      * 
*/ - public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request) { + public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDetachSubscriptionMethod(), getCallOptions(), request); } @@ -731,6 +941,7 @@ public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription(com.go /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Publisher. + * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
@@ -738,54 +949,60 @@ public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription(com.go
    */
   public static final class PublisherFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private PublisherFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private PublisherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected PublisherFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new PublisherFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createTopic( - com.google.pubsub.v1.Topic request) { + public com.google.common.util.concurrent.ListenableFuture + createTopic(com.google.pubsub.v1.Topic request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); } /** + * + * *
      * Updates an existing topic by updating the fields specified in the update
      * mask. Note that certain properties of a topic are not modifiable.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture updateTopic( - com.google.pubsub.v1.UpdateTopicRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); } /** + * + * *
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
      * does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture publish( - com.google.pubsub.v1.PublishRequest request) { + public com.google.common.util.concurrent.ListenableFuture + publish(com.google.pubsub.v1.PublishRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPublishMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the configuration of a topic.
      * 
@@ -797,28 +1014,36 @@ public com.google.common.util.concurrent.ListenableFuture * Lists matching topics. *
*/ - public com.google.common.util.concurrent.ListenableFuture listTopics( - com.google.pubsub.v1.ListTopicsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListTopicsResponse> + listTopics(com.google.pubsub.v1.ListTopicsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); } /** + * + * *
      * Lists the names of the attached subscriptions on this topic.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions( - com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListTopicSubscriptionsResponse> + listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); } /** + * + * *
      * Lists the names of the snapshots on this topic. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -827,13 +1052,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listTopicSnapshots(
-        com.google.pubsub.v1.ListTopicSnapshotsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.pubsub.v1.ListTopicSnapshotsResponse>
+        listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
      * does not exist. After a topic is deleted, a new topic may be created with
@@ -842,13 +1070,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteTopic(
-        com.google.pubsub.v1.DeleteTopicRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Detaches a subscription from this topic. All messages retained in the
      * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
@@ -856,8 +1086,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture detachSubscription(
-        com.google.pubsub.v1.DetachSubscriptionRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.pubsub.v1.DetachSubscriptionResponse>
+        detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), request);
     }
@@ -873,11 +1104,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final AsyncService serviceImpl;
     private final int methodId;
 
@@ -891,40 +1122,53 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_TOPIC:
-          serviceImpl.createTopic((com.google.pubsub.v1.Topic) request,
+          serviceImpl.createTopic(
+              (com.google.pubsub.v1.Topic) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_TOPIC:
-          serviceImpl.updateTopic((com.google.pubsub.v1.UpdateTopicRequest) request,
+          serviceImpl.updateTopic(
+              (com.google.pubsub.v1.UpdateTopicRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_PUBLISH:
-          serviceImpl.publish((com.google.pubsub.v1.PublishRequest) request,
+          serviceImpl.publish(
+              (com.google.pubsub.v1.PublishRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_GET_TOPIC:
-          serviceImpl.getTopic((com.google.pubsub.v1.GetTopicRequest) request,
+          serviceImpl.getTopic(
+              (com.google.pubsub.v1.GetTopicRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_TOPICS:
-          serviceImpl.listTopics((com.google.pubsub.v1.ListTopicsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listTopics(
+              (com.google.pubsub.v1.ListTopicsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_LIST_TOPIC_SUBSCRIPTIONS:
-          serviceImpl.listTopicSubscriptions((com.google.pubsub.v1.ListTopicSubscriptionsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listTopicSubscriptions(
+              (com.google.pubsub.v1.ListTopicSubscriptionsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_LIST_TOPIC_SNAPSHOTS:
-          serviceImpl.listTopicSnapshots((com.google.pubsub.v1.ListTopicSnapshotsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listTopicSnapshots(
+              (com.google.pubsub.v1.ListTopicSnapshotsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_TOPIC:
-          serviceImpl.deleteTopic((com.google.pubsub.v1.DeleteTopicRequest) request,
+          serviceImpl.deleteTopic(
+              (com.google.pubsub.v1.DeleteTopicRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DETACH_SUBSCRIPTION:
-          serviceImpl.detachSubscription((com.google.pubsub.v1.DetachSubscriptionRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.detachSubscription(
+              (com.google.pubsub.v1.DetachSubscriptionRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -945,73 +1189,67 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-          getCreateTopicMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.Topic,
-              com.google.pubsub.v1.Topic>(
-                service, METHODID_CREATE_TOPIC)))
+            getCreateTopicMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers(
+                    service, METHODID_CREATE_TOPIC)))
         .addMethod(
-          getUpdateTopicMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.UpdateTopicRequest,
-              com.google.pubsub.v1.Topic>(
-                service, METHODID_UPDATE_TOPIC)))
+            getUpdateTopicMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>(
+                    service, METHODID_UPDATE_TOPIC)))
         .addMethod(
-          getPublishMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.PublishRequest,
-              com.google.pubsub.v1.PublishResponse>(
-                service, METHODID_PUBLISH)))
+            getPublishMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>(
+                    service, METHODID_PUBLISH)))
         .addMethod(
-          getGetTopicMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.GetTopicRequest,
-              com.google.pubsub.v1.Topic>(
-                service, METHODID_GET_TOPIC)))
+            getGetTopicMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>(
+                    service, METHODID_GET_TOPIC)))
         .addMethod(
-          getListTopicsMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.ListTopicsRequest,
-              com.google.pubsub.v1.ListTopicsResponse>(
-                service, METHODID_LIST_TOPICS)))
+            getListTopicsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.ListTopicsRequest,
+                    com.google.pubsub.v1.ListTopicsResponse>(service, METHODID_LIST_TOPICS)))
         .addMethod(
-          getListTopicSubscriptionsMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.ListTopicSubscriptionsRequest,
-              com.google.pubsub.v1.ListTopicSubscriptionsResponse>(
-                service, METHODID_LIST_TOPIC_SUBSCRIPTIONS)))
+            getListTopicSubscriptionsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.ListTopicSubscriptionsRequest,
+                    com.google.pubsub.v1.ListTopicSubscriptionsResponse>(
+                    service, METHODID_LIST_TOPIC_SUBSCRIPTIONS)))
         .addMethod(
-          getListTopicSnapshotsMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.ListTopicSnapshotsRequest,
-              com.google.pubsub.v1.ListTopicSnapshotsResponse>(
-                service, METHODID_LIST_TOPIC_SNAPSHOTS)))
+            getListTopicSnapshotsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.ListTopicSnapshotsRequest,
+                    com.google.pubsub.v1.ListTopicSnapshotsResponse>(
+                    service, METHODID_LIST_TOPIC_SNAPSHOTS)))
         .addMethod(
-          getDeleteTopicMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.DeleteTopicRequest,
-              com.google.protobuf.Empty>(
-                service, METHODID_DELETE_TOPIC)))
+            getDeleteTopicMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>(
+                    service, METHODID_DELETE_TOPIC)))
         .addMethod(
-          getDetachSubscriptionMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.DetachSubscriptionRequest,
-              com.google.pubsub.v1.DetachSubscriptionResponse>(
-                service, METHODID_DETACH_SUBSCRIPTION)))
+            getDetachSubscriptionMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.DetachSubscriptionRequest,
+                    com.google.pubsub.v1.DetachSubscriptionResponse>(
+                    service, METHODID_DETACH_SUBSCRIPTION)))
         .build();
   }
 
-  private static abstract class PublisherBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class PublisherBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     PublisherBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -1053,18 +1291,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (PublisherGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new PublisherFileDescriptorSupplier())
-              .addMethod(getCreateTopicMethod())
-              .addMethod(getUpdateTopicMethod())
-              .addMethod(getPublishMethod())
-              .addMethod(getGetTopicMethod())
-              .addMethod(getListTopicsMethod())
-              .addMethod(getListTopicSubscriptionsMethod())
-              .addMethod(getListTopicSnapshotsMethod())
-              .addMethod(getDeleteTopicMethod())
-              .addMethod(getDetachSubscriptionMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new PublisherFileDescriptorSupplier())
+                      .addMethod(getCreateTopicMethod())
+                      .addMethod(getUpdateTopicMethod())
+                      .addMethod(getPublishMethod())
+                      .addMethod(getGetTopicMethod())
+                      .addMethod(getListTopicsMethod())
+                      .addMethod(getListTopicSubscriptionsMethod())
+                      .addMethod(getListTopicSnapshotsMethod())
+                      .addMethod(getDeleteTopicMethod())
+                      .addMethod(getDetachSubscriptionMethod())
+                      .build();
         }
       }
     }
diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
new file mode 100644
index 000000000..ab612d2c5
--- /dev/null
+++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
@@ -0,0 +1,1377 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.pubsub.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ * 
+ * Service for doing schema-related operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/pubsub/v1/schema.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SchemaServiceGrpc { + + private SchemaServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.pubsub.v1.SchemaService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema> + getCreateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSchema", + requestType = com.google.pubsub.v1.CreateSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema> + getCreateSchemaMethod() { + io.grpc.MethodDescriptor + getCreateSchemaMethod; + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + SchemaServiceGrpc.getCreateSchemaMethod = + getCreateSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("CreateSchema")) + .build(); + } + } + } + return getCreateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema> + getGetSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSchema", + requestType = com.google.pubsub.v1.GetSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema> + getGetSchemaMethod() { + io.grpc.MethodDescriptor + getGetSchemaMethod; + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + SchemaServiceGrpc.getGetSchemaMethod = + getGetSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) + .build(); + } + } + } + return getGetSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> + getListSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchemas", + requestType = com.google.pubsub.v1.ListSchemasRequest.class, + responseType = com.google.pubsub.v1.ListSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> + getListSchemasMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> + getListSchemasMethod; + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + SchemaServiceGrpc.getListSchemasMethod = + getListSchemasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemasResponse.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) + .build(); + } + } + } + return getListSchemasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemaRevisionsRequest, + com.google.pubsub.v1.ListSchemaRevisionsResponse> + getListSchemaRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchemaRevisions", + requestType = com.google.pubsub.v1.ListSchemaRevisionsRequest.class, + responseType = com.google.pubsub.v1.ListSchemaRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemaRevisionsRequest, + com.google.pubsub.v1.ListSchemaRevisionsResponse> + getListSchemaRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemaRevisionsRequest, + com.google.pubsub.v1.ListSchemaRevisionsResponse> + getListSchemaRevisionsMethod; + if ((getListSchemaRevisionsMethod = SchemaServiceGrpc.getListSchemaRevisionsMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getListSchemaRevisionsMethod = SchemaServiceGrpc.getListSchemaRevisionsMethod) + == null) { + SchemaServiceGrpc.getListSchemaRevisionsMethod = + getListSchemaRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSchemaRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemaRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemaRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("ListSchemaRevisions")) + .build(); + } + } + } + return getListSchemaRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.CommitSchemaRequest, com.google.pubsub.v1.Schema> + getCommitSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitSchema", + requestType = com.google.pubsub.v1.CommitSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.CommitSchemaRequest, com.google.pubsub.v1.Schema> + getCommitSchemaMethod() { + io.grpc.MethodDescriptor + getCommitSchemaMethod; + if ((getCommitSchemaMethod = SchemaServiceGrpc.getCommitSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getCommitSchemaMethod = SchemaServiceGrpc.getCommitSchemaMethod) == null) { + SchemaServiceGrpc.getCommitSchemaMethod = + getCommitSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.CommitSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("CommitSchema")) + .build(); + } + } + } + return getCommitSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema> + getRollbackSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RollbackSchema", + requestType = com.google.pubsub.v1.RollbackSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema> + getRollbackSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema> + getRollbackSchemaMethod; + if ((getRollbackSchemaMethod = SchemaServiceGrpc.getRollbackSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getRollbackSchemaMethod = SchemaServiceGrpc.getRollbackSchemaMethod) == null) { + SchemaServiceGrpc.getRollbackSchemaMethod = + getRollbackSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RollbackSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.RollbackSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("RollbackSchema")) + .build(); + } + } + } + return getRollbackSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRevisionRequest, com.google.pubsub.v1.Schema> + getDeleteSchemaRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchemaRevision", + requestType = com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRevisionRequest, com.google.pubsub.v1.Schema> + getDeleteSchemaRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRevisionRequest, com.google.pubsub.v1.Schema> + getDeleteSchemaRevisionMethod; + if ((getDeleteSchemaRevisionMethod = SchemaServiceGrpc.getDeleteSchemaRevisionMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getDeleteSchemaRevisionMethod = SchemaServiceGrpc.getDeleteSchemaRevisionMethod) + == null) { + SchemaServiceGrpc.getDeleteSchemaRevisionMethod = + getDeleteSchemaRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSchemaRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DeleteSchemaRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("DeleteSchemaRevision")) + .build(); + } + } + } + return getDeleteSchemaRevisionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> + getDeleteSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", + requestType = com.google.pubsub.v1.DeleteSchemaRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> + getDeleteSchemaMethod() { + io.grpc.MethodDescriptor + getDeleteSchemaMethod; + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + SchemaServiceGrpc.getDeleteSchemaMethod = + getDeleteSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) + .build(); + } + } + } + return getDeleteSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> + getValidateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateSchema", + requestType = com.google.pubsub.v1.ValidateSchemaRequest.class, + responseType = com.google.pubsub.v1.ValidateSchemaResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> + getValidateSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> + getValidateSchemaMethod; + if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { + SchemaServiceGrpc.getValidateSchemaMethod = + getValidateSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("ValidateSchema")) + .build(); + } + } + } + return getValidateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> + getValidateMessageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateMessage", + requestType = com.google.pubsub.v1.ValidateMessageRequest.class, + responseType = com.google.pubsub.v1.ValidateMessageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> + getValidateMessageMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateMessageRequest, + com.google.pubsub.v1.ValidateMessageResponse> + getValidateMessageMethod; + if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { + SchemaServiceGrpc.getValidateMessageMethod = + getValidateMessageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateMessage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("ValidateMessage")) + .build(); + } + } + } + return getValidateMessageMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SchemaServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + }; + return SchemaServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SchemaServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + }; + return SchemaServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SchemaServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + }; + return SchemaServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a schema.
+     * 
+ */ + default void createSchema( + com.google.pubsub.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a schema.
+     * 
+ */ + default void getSchema( + com.google.pubsub.v1.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists schemas in a project.
+     * 
+ */ + default void listSchemas( + com.google.pubsub.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSchemasMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all schema revisions for the named schema.
+     * 
+ */ + default void listSchemaRevisions( + com.google.pubsub.v1.ListSchemaRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSchemaRevisionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Commits a new schema revision to an existing schema.
+     * 
+ */ + default void commitSchema( + com.google.pubsub.v1.CommitSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCommitSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new schema revision that is a copy of the provided revision_id.
+     * 
+ */ + default void rollbackSchema( + com.google.pubsub.v1.RollbackSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRollbackSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a specific schema revision.
+     * 
+ */ + default void deleteSchemaRevision( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSchemaRevisionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a schema.
+     * 
+ */ + default void deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Validates a schema.
+     * 
+ */ + default void validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getValidateSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Validates a message against a schema.
+     * 
+ */ + default void validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getValidateMessageMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SchemaService. + * + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public abstract static class SchemaServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SchemaServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SchemaService. + * + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public static final class SchemaServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a schema.
+     * 
+ */ + public void createSchema( + com.google.pubsub.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a schema.
+     * 
+ */ + public void getSchema( + com.google.pubsub.v1.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists schemas in a project.
+     * 
+ */ + public void listSchemas( + com.google.pubsub.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all schema revisions for the named schema.
+     * 
+ */ + public void listSchemaRevisions( + com.google.pubsub.v1.ListSchemaRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSchemaRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Commits a new schema revision to an existing schema.
+     * 
+ */ + public void commitSchema( + com.google.pubsub.v1.CommitSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCommitSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new schema revision that is a copy of the provided revision_id.
+     * 
+ */ + public void rollbackSchema( + com.google.pubsub.v1.RollbackSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRollbackSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a specific schema revision.
+     * 
+ */ + public void deleteSchemaRevision( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSchemaRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a schema.
+     * 
+ */ + public void deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Validates a schema.
+     * 
+ */ + public void validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Validates a message against a schema.
+     * 
+ */ + public void validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateMessageMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SchemaService. + * + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public static final class SchemaServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a schema.
+     * 
+ */ + public com.google.pubsub.v1.Schema createSchema( + com.google.pubsub.v1.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a schema.
+     * 
+ */ + public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists schemas in a project.
+     * 
+ */ + public com.google.pubsub.v1.ListSchemasResponse listSchemas( + com.google.pubsub.v1.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all schema revisions for the named schema.
+     * 
+ */ + public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions( + com.google.pubsub.v1.ListSchemaRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemaRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Commits a new schema revision to an existing schema.
+     * 
+ */ + public com.google.pubsub.v1.Schema commitSchema( + com.google.pubsub.v1.CommitSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new schema revision that is a copy of the provided revision_id.
+     * 
+ */ + public com.google.pubsub.v1.Schema rollbackSchema( + com.google.pubsub.v1.RollbackSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a specific schema revision.
+     * 
+ */ + public com.google.pubsub.v1.Schema deleteSchemaRevision( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a schema.
+     * 
+ */ + public com.google.protobuf.Empty deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Validates a schema.
+     * 
+ */ + public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Validates a message against a schema.
+     * 
+ */ + public com.google.pubsub.v1.ValidateMessageResponse validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateMessageMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService. + * + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public static final class SchemaServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SchemaServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSchema(com.google.pubsub.v1.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getSchema(com.google.pubsub.v1.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists schemas in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListSchemasResponse> + listSchemas(com.google.pubsub.v1.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all schema revisions for the named schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListSchemaRevisionsResponse> + listSchemaRevisions(com.google.pubsub.v1.ListSchemaRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchemaRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Commits a new schema revision to an existing schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + commitSchema(com.google.pubsub.v1.CommitSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCommitSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new schema revision that is a copy of the provided revision_id.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + rollbackSchema(com.google.pubsub.v1.RollbackSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRollbackSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a specific schema revision.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSchemaRevision(com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSchemaRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Validates a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ValidateSchemaResponse> + validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Validates a message against a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ValidateMessageResponse> + validateMessage(com.google.pubsub.v1.ValidateMessageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCHEMA = 0; + private static final int METHODID_GET_SCHEMA = 1; + private static final int METHODID_LIST_SCHEMAS = 2; + private static final int METHODID_LIST_SCHEMA_REVISIONS = 3; + private static final int METHODID_COMMIT_SCHEMA = 4; + private static final int METHODID_ROLLBACK_SCHEMA = 5; + private static final int METHODID_DELETE_SCHEMA_REVISION = 6; + private static final int METHODID_DELETE_SCHEMA = 7; + private static final int METHODID_VALIDATE_SCHEMA = 8; + private static final int METHODID_VALIDATE_MESSAGE = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCHEMA: + serviceImpl.createSchema( + (com.google.pubsub.v1.CreateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCHEMA: + serviceImpl.getSchema( + (com.google.pubsub.v1.GetSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCHEMAS: + serviceImpl.listSchemas( + (com.google.pubsub.v1.ListSchemasRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SCHEMA_REVISIONS: + serviceImpl.listSchemaRevisions( + (com.google.pubsub.v1.ListSchemaRevisionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_COMMIT_SCHEMA: + serviceImpl.commitSchema( + (com.google.pubsub.v1.CommitSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLLBACK_SCHEMA: + serviceImpl.rollbackSchema( + (com.google.pubsub.v1.RollbackSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCHEMA_REVISION: + serviceImpl.deleteSchemaRevision( + (com.google.pubsub.v1.DeleteSchemaRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCHEMA: + serviceImpl.deleteSchema( + (com.google.pubsub.v1.DeleteSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VALIDATE_SCHEMA: + serviceImpl.validateSchema( + (com.google.pubsub.v1.ValidateSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_VALIDATE_MESSAGE: + serviceImpl.validateMessage( + (com.google.pubsub.v1.ValidateMessageRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema>( + service, METHODID_CREATE_SCHEMA))) + .addMethod( + getGetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>( + service, METHODID_GET_SCHEMA))) + .addMethod( + getListSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSchemasRequest, + com.google.pubsub.v1.ListSchemasResponse>(service, METHODID_LIST_SCHEMAS))) + .addMethod( + getListSchemaRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSchemaRevisionsRequest, + com.google.pubsub.v1.ListSchemaRevisionsResponse>( + service, METHODID_LIST_SCHEMA_REVISIONS))) + .addMethod( + getCommitSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CommitSchemaRequest, com.google.pubsub.v1.Schema>( + service, METHODID_COMMIT_SCHEMA))) + .addMethod( + getRollbackSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema>( + service, METHODID_ROLLBACK_SCHEMA))) + .addMethod( + getDeleteSchemaRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSchemaRevisionRequest, com.google.pubsub.v1.Schema>( + service, METHODID_DELETE_SCHEMA_REVISION))) + .addMethod( + getDeleteSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_SCHEMA))) + .addMethod( + getValidateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateSchemaRequest, + com.google.pubsub.v1.ValidateSchemaResponse>( + service, METHODID_VALIDATE_SCHEMA))) + .addMethod( + getValidateMessageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateMessageRequest, + com.google.pubsub.v1.ValidateMessageResponse>( + service, METHODID_VALIDATE_MESSAGE))) + .build(); + } + + private abstract static class SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SchemaServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.pubsub.v1.SchemaProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SchemaService"); + } + } + + private static final class SchemaServiceFileDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier { + SchemaServiceFileDescriptorSupplier() {} + } + + private static final class SchemaServiceMethodDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SchemaServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SchemaServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) + .addMethod(getCreateSchemaMethod()) + .addMethod(getGetSchemaMethod()) + .addMethod(getListSchemasMethod()) + .addMethod(getListSchemaRevisionsMethod()) + .addMethod(getCommitSchemaMethod()) + .addMethod(getRollbackSchemaMethod()) + .addMethod(getDeleteSchemaRevisionMethod()) + .addMethod(getDeleteSchemaMethod()) + .addMethod(getValidateSchemaMethod()) + .addMethod(getValidateMessageMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/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 similarity index 57% rename from owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java rename to grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 36f456939..3bf65b4e3 100644 --- a/owl-bot-staging/v1/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 @@ -1,8 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The service that an application uses to manipulate subscriptions and to
  * consume messages from a subscription via the `Pull` method or by
@@ -20,547 +37,698 @@ private SubscriberGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.pubsub.v1.Subscriber";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
+      getCreateSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateSubscription",
       requestType = com.google.pubsub.v1.Subscription.class,
       responseType = com.google.pubsub.v1.Subscription.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateSubscriptionMethod() {
-    io.grpc.MethodDescriptor getCreateSubscriptionMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
+      getCreateSubscriptionMethod() {
+    io.grpc.MethodDescriptor
+        getCreateSubscriptionMethod;
     if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) {
-          SubscriberGrpc.getCreateSubscriptionMethod = getCreateSubscriptionMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubscription"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSubscription"))
-              .build();
+          SubscriberGrpc.getCreateSubscriptionMethod =
+              getCreateSubscriptionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubscription"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SubscriberMethodDescriptorSupplier("CreateSubscription"))
+                      .build();
         }
       }
     }
     return getCreateSubscriptionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
+      getGetSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetSubscription",
       requestType = com.google.pubsub.v1.GetSubscriptionRequest.class,
       responseType = com.google.pubsub.v1.Subscription.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetSubscriptionMethod() {
-    io.grpc.MethodDescriptor getGetSubscriptionMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
+      getGetSubscriptionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
+        getGetSubscriptionMethod;
     if ((getGetSubscriptionMethod = SubscriberGrpc.getGetSubscriptionMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getGetSubscriptionMethod = SubscriberGrpc.getGetSubscriptionMethod) == null) {
-          SubscriberGrpc.getGetSubscriptionMethod = getGetSubscriptionMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSubscription"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSubscription"))
-              .build();
+          SubscriberGrpc.getGetSubscriptionMethod =
+              getGetSubscriptionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSubscription"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SubscriberMethodDescriptorSupplier("GetSubscription"))
+                      .build();
         }
       }
     }
     return getGetSubscriptionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
+      getUpdateSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription",
       requestType = com.google.pubsub.v1.UpdateSubscriptionRequest.class,
       responseType = com.google.pubsub.v1.Subscription.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateSubscriptionMethod() {
-    io.grpc.MethodDescriptor getUpdateSubscriptionMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
+      getUpdateSubscriptionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
+        getUpdateSubscriptionMethod;
     if ((getUpdateSubscriptionMethod = SubscriberGrpc.getUpdateSubscriptionMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getUpdateSubscriptionMethod = SubscriberGrpc.getUpdateSubscriptionMethod) == null) {
-          SubscriberGrpc.getUpdateSubscriptionMethod = getUpdateSubscriptionMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSubscription"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSubscription"))
-              .build();
+          SubscriberGrpc.getUpdateSubscriptionMethod =
+              getUpdateSubscriptionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSubscription"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SubscriberMethodDescriptorSupplier("UpdateSubscription"))
+                      .build();
         }
       }
     }
     return getUpdateSubscriptionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListSubscriptionsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListSubscriptionsRequest,
+          com.google.pubsub.v1.ListSubscriptionsResponse>
+      getListSubscriptionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions",
       requestType = com.google.pubsub.v1.ListSubscriptionsRequest.class,
       responseType = com.google.pubsub.v1.ListSubscriptionsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListSubscriptionsMethod() {
-    io.grpc.MethodDescriptor getListSubscriptionsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListSubscriptionsRequest,
+          com.google.pubsub.v1.ListSubscriptionsResponse>
+      getListSubscriptionsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.ListSubscriptionsRequest,
+            com.google.pubsub.v1.ListSubscriptionsResponse>
+        getListSubscriptionsMethod;
     if ((getListSubscriptionsMethod = SubscriberGrpc.getListSubscriptionsMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getListSubscriptionsMethod = SubscriberGrpc.getListSubscriptionsMethod) == null) {
-          SubscriberGrpc.getListSubscriptionsMethod = getListSubscriptionsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubscriptions"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSubscriptions"))
-              .build();
+          SubscriberGrpc.getListSubscriptionsMethod =
+              getListSubscriptionsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubscriptions"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SubscriberMethodDescriptorSupplier("ListSubscriptions"))
+                      .build();
         }
       }
     }
     return getListSubscriptionsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
+      getDeleteSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription",
       requestType = com.google.pubsub.v1.DeleteSubscriptionRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteSubscriptionMethod() {
-    io.grpc.MethodDescriptor getDeleteSubscriptionMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
+      getDeleteSubscriptionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
+        getDeleteSubscriptionMethod;
     if ((getDeleteSubscriptionMethod = SubscriberGrpc.getDeleteSubscriptionMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getDeleteSubscriptionMethod = SubscriberGrpc.getDeleteSubscriptionMethod) == null) {
-          SubscriberGrpc.getDeleteSubscriptionMethod = getDeleteSubscriptionMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSubscription"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSubscription"))
-              .build();
+          SubscriberGrpc.getDeleteSubscriptionMethod =
+              getDeleteSubscriptionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSubscription"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SubscriberMethodDescriptorSupplier("DeleteSubscription"))
+                      .build();
         }
       }
     }
     return getDeleteSubscriptionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getModifyAckDeadlineMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
+      getModifyAckDeadlineMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ModifyAckDeadline",
       requestType = com.google.pubsub.v1.ModifyAckDeadlineRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getModifyAckDeadlineMethod() {
-    io.grpc.MethodDescriptor getModifyAckDeadlineMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
+      getModifyAckDeadlineMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
+        getModifyAckDeadlineMethod;
     if ((getModifyAckDeadlineMethod = SubscriberGrpc.getModifyAckDeadlineMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getModifyAckDeadlineMethod = SubscriberGrpc.getModifyAckDeadlineMethod) == null) {
-          SubscriberGrpc.getModifyAckDeadlineMethod = getModifyAckDeadlineMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyAckDeadline"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ModifyAckDeadline"))
-              .build();
+          SubscriberGrpc.getModifyAckDeadlineMethod =
+              getModifyAckDeadlineMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyAckDeadline"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SubscriberMethodDescriptorSupplier("ModifyAckDeadline"))
+                      .build();
         }
       }
     }
     return getModifyAckDeadlineMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getAcknowledgeMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
+      getAcknowledgeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Acknowledge",
       requestType = com.google.pubsub.v1.AcknowledgeRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getAcknowledgeMethod() {
-    io.grpc.MethodDescriptor getAcknowledgeMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
+      getAcknowledgeMethod() {
+    io.grpc.MethodDescriptor
+        getAcknowledgeMethod;
     if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) {
-          SubscriberGrpc.getAcknowledgeMethod = getAcknowledgeMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Acknowledge"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Acknowledge"))
-              .build();
+          SubscriberGrpc.getAcknowledgeMethod =
+              getAcknowledgeMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Acknowledge"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Acknowledge"))
+                      .build();
         }
       }
     }
     return getAcknowledgeMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getPullMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
+      getPullMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Pull",
       requestType = com.google.pubsub.v1.PullRequest.class,
       responseType = com.google.pubsub.v1.PullResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPullMethod() {
-    io.grpc.MethodDescriptor getPullMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
+      getPullMethod() {
+    io.grpc.MethodDescriptor
+        getPullMethod;
     if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) {
-          SubscriberGrpc.getPullMethod = getPullMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Pull"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.PullRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.PullResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Pull"))
-              .build();
+          SubscriberGrpc.getPullMethod =
+              getPullMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Pull"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.PullRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.PullResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Pull"))
+                      .build();
         }
       }
     }
     return getPullMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getStreamingPullMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
+      getStreamingPullMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "StreamingPull",
       requestType = com.google.pubsub.v1.StreamingPullRequest.class,
       responseType = com.google.pubsub.v1.StreamingPullResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor getStreamingPullMethod() {
-    io.grpc.MethodDescriptor getStreamingPullMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
+      getStreamingPullMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
+        getStreamingPullMethod;
     if ((getStreamingPullMethod = SubscriberGrpc.getStreamingPullMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getStreamingPullMethod = SubscriberGrpc.getStreamingPullMethod) == null) {
-          SubscriberGrpc.getStreamingPullMethod = getStreamingPullMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingPull"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("StreamingPull"))
-              .build();
+          SubscriberGrpc.getStreamingPullMethod =
+              getStreamingPullMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingPull"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("StreamingPull"))
+                      .build();
         }
       }
     }
     return getStreamingPullMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getModifyPushConfigMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
+      getModifyPushConfigMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ModifyPushConfig",
       requestType = com.google.pubsub.v1.ModifyPushConfigRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getModifyPushConfigMethod() {
-    io.grpc.MethodDescriptor getModifyPushConfigMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
+      getModifyPushConfigMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
+        getModifyPushConfigMethod;
     if ((getModifyPushConfigMethod = SubscriberGrpc.getModifyPushConfigMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getModifyPushConfigMethod = SubscriberGrpc.getModifyPushConfigMethod) == null) {
-          SubscriberGrpc.getModifyPushConfigMethod = getModifyPushConfigMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyPushConfig"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ModifyPushConfig"))
-              .build();
+          SubscriberGrpc.getModifyPushConfigMethod =
+              getModifyPushConfigMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyPushConfig"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SubscriberMethodDescriptorSupplier("ModifyPushConfig"))
+                      .build();
         }
       }
     }
     return getModifyPushConfigMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
+      getGetSnapshotMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetSnapshot",
       requestType = com.google.pubsub.v1.GetSnapshotRequest.class,
       responseType = com.google.pubsub.v1.Snapshot.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetSnapshotMethod() {
-    io.grpc.MethodDescriptor getGetSnapshotMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
+      getGetSnapshotMethod() {
+    io.grpc.MethodDescriptor
+        getGetSnapshotMethod;
     if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) {
-          SubscriberGrpc.getGetSnapshotMethod = getGetSnapshotMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSnapshot"))
-              .build();
+          SubscriberGrpc.getGetSnapshotMethod =
+              getGetSnapshotMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSnapshot"))
+                      .build();
         }
       }
     }
     return getGetSnapshotMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getListSnapshotsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
+      getListSnapshotsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListSnapshots",
       requestType = com.google.pubsub.v1.ListSnapshotsRequest.class,
       responseType = com.google.pubsub.v1.ListSnapshotsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListSnapshotsMethod() {
-    io.grpc.MethodDescriptor getListSnapshotsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
+      getListSnapshotsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
+        getListSnapshotsMethod;
     if ((getListSnapshotsMethod = SubscriberGrpc.getListSnapshotsMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getListSnapshotsMethod = SubscriberGrpc.getListSnapshotsMethod) == null) {
-          SubscriberGrpc.getListSnapshotsMethod = getListSnapshotsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSnapshots"))
-              .build();
+          SubscriberGrpc.getListSnapshotsMethod =
+              getListSnapshotsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSnapshots"))
+                      .build();
         }
       }
     }
     return getListSnapshotsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
+      getCreateSnapshotMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot",
       requestType = com.google.pubsub.v1.CreateSnapshotRequest.class,
       responseType = com.google.pubsub.v1.Snapshot.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateSnapshotMethod() {
-    io.grpc.MethodDescriptor getCreateSnapshotMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
+      getCreateSnapshotMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
+        getCreateSnapshotMethod;
     if ((getCreateSnapshotMethod = SubscriberGrpc.getCreateSnapshotMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getCreateSnapshotMethod = SubscriberGrpc.getCreateSnapshotMethod) == null) {
-          SubscriberGrpc.getCreateSnapshotMethod = getCreateSnapshotMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSnapshot"))
-              .build();
+          SubscriberGrpc.getCreateSnapshotMethod =
+              getCreateSnapshotMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSnapshot"))
+                      .build();
         }
       }
     }
     return getCreateSnapshotMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
+      getUpdateSnapshotMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot",
       requestType = com.google.pubsub.v1.UpdateSnapshotRequest.class,
       responseType = com.google.pubsub.v1.Snapshot.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateSnapshotMethod() {
-    io.grpc.MethodDescriptor getUpdateSnapshotMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
+      getUpdateSnapshotMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
+        getUpdateSnapshotMethod;
     if ((getUpdateSnapshotMethod = SubscriberGrpc.getUpdateSnapshotMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getUpdateSnapshotMethod = SubscriberGrpc.getUpdateSnapshotMethod) == null) {
-          SubscriberGrpc.getUpdateSnapshotMethod = getUpdateSnapshotMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSnapshot"))
-              .build();
+          SubscriberGrpc.getUpdateSnapshotMethod =
+              getUpdateSnapshotMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSnapshot"))
+                      .build();
         }
       }
     }
     return getUpdateSnapshotMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
+      getDeleteSnapshotMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot",
       requestType = com.google.pubsub.v1.DeleteSnapshotRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteSnapshotMethod() {
-    io.grpc.MethodDescriptor getDeleteSnapshotMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
+      getDeleteSnapshotMethod() {
+    io.grpc.MethodDescriptor
+        getDeleteSnapshotMethod;
     if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) {
-          SubscriberGrpc.getDeleteSnapshotMethod = getDeleteSnapshotMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSnapshot"))
-              .build();
+          SubscriberGrpc.getDeleteSnapshotMethod =
+              getDeleteSnapshotMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSnapshot"))
+                      .build();
         }
       }
     }
     return getDeleteSnapshotMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getSeekMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
+      getSeekMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Seek",
       requestType = com.google.pubsub.v1.SeekRequest.class,
       responseType = com.google.pubsub.v1.SeekResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getSeekMethod() {
-    io.grpc.MethodDescriptor getSeekMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
+      getSeekMethod() {
+    io.grpc.MethodDescriptor
+        getSeekMethod;
     if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) {
-          SubscriberGrpc.getSeekMethod = getSeekMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Seek"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.SeekRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.pubsub.v1.SeekResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Seek"))
-              .build();
+          SubscriberGrpc.getSeekMethod =
+              getSeekMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Seek"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.SeekRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.pubsub.v1.SeekResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Seek"))
+                      .build();
         }
       }
     }
     return getSeekMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static SubscriberStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SubscriberStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SubscriberStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SubscriberStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SubscriberStub(channel, callOptions);
+          }
+        };
     return SubscriberStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static SubscriberBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static SubscriberBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SubscriberBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SubscriberBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SubscriberBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SubscriberBlockingStub(channel, callOptions);
+          }
+        };
     return SubscriberBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static SubscriberFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static SubscriberFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public SubscriberFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new SubscriberFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public SubscriberFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new SubscriberFutureStub(channel, callOptions);
+          }
+        };
     return SubscriberFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
@@ -570,6 +738,8 @@ public SubscriberFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
@@ -583,44 +753,61 @@ public interface AsyncService {
      * for REST API requests, you must specify a name in the request.
      * 
*/ - default void createSubscription(com.google.pubsub.v1.Subscription request, + default void createSubscription( + com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSubscriptionMethod(), responseObserver); } /** + * + * *
      * Gets the configuration details of a subscription.
      * 
*/ - default void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request, + default void getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSubscriptionMethod(), responseObserver); } /** + * + * *
      * Updates an existing subscription by updating the fields specified in the
      * update mask. Note that certain properties of a subscription, such as its
      * topic, are not modifiable.
      * 
*/ - default void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, + default void updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSubscriptionMethod(), responseObserver); } /** + * + * *
      * Lists matching subscriptions.
      * 
*/ - default void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSubscriptionsMethod(), responseObserver); + default void listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSubscriptionsMethod(), responseObserver); } /** + * + * *
      * Deletes an existing subscription. All messages retained in the subscription
      * are immediately dropped. Calls to `Pull` after deletion will return
@@ -629,12 +816,16 @@ default void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest req
      * subscription or its topic unless the same topic is specified.
      * 
*/ - default void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request, + default void deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSubscriptionMethod(), responseObserver); } /** + * + * *
      * Modifies the ack deadline for a specific message. This method is useful
      * to indicate that more time is needed to process a message by the
@@ -643,12 +834,16 @@ default void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest r
      * subscription-level `ackDeadlineSeconds` used for subsequent messages.
      * 
*/ - default void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request, + default void modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getModifyAckDeadlineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getModifyAckDeadlineMethod(), responseObserver); } /** + * + * *
      * Acknowledges the messages associated with the `ack_ids` in the
      * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
@@ -658,22 +853,29 @@ default void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest req
      * than once will not result in an error.
      * 
*/ - default void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, + default void acknowledge( + com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAcknowledgeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAcknowledgeMethod(), responseObserver); } /** + * + * *
      * Pulls messages from the server.
      * 
*/ - default void pull(com.google.pubsub.v1.PullRequest request, + default void pull( + com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPullMethod(), responseObserver); } /** + * + * *
      * Establishes a stream with the server, which sends messages down to the
      * client. The client streams acknowledgements and ack deadline modifications
@@ -686,10 +888,13 @@ default void pull(com.google.pubsub.v1.PullRequest request,
      */
     default io.grpc.stub.StreamObserver streamingPull(
         io.grpc.stub.StreamObserver responseObserver) {
-      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingPullMethod(), responseObserver);
+      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
+          getStreamingPullMethod(), responseObserver);
     }
 
     /**
+     *
+     *
      * 
      * Modifies the `PushConfig` for a specified subscription.
      * This may be used to change a push subscription to a pull one (signified by
@@ -698,12 +903,16 @@ default io.grpc.stub.StreamObserver s
      * continuously through the call regardless of changes to the `PushConfig`.
      * 
*/ - default void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request, + default void modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getModifyPushConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getModifyPushConfigMethod(), responseObserver); } /** + * + * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -712,12 +921,16 @@ default void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest reque
      * state captured by a snapshot.
      * 
*/ - default void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request, + default void getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSnapshotMethod(), responseObserver); } /** + * + * *
      * Lists the existing snapshots. Snapshots are used in [Seek](
      * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -726,12 +939,16 @@ default void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request,
      * state captured by a snapshot.
      * 
*/ - default void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, + default void listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSnapshotsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSnapshotsMethod(), responseObserver); } /** + * + * *
      * Creates a snapshot from the requested subscription. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -751,12 +968,16 @@ default void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request,
      * REST API requests, you must specify a name in the request.
      * 
*/ - default void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, + default void createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSnapshotMethod(), responseObserver); } /** + * + * *
      * Updates an existing snapshot by updating the fields specified in the update
      * mask. Snapshots are used in
@@ -766,12 +987,16 @@ default void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request,
      * state captured by a snapshot.
      * 
*/ - default void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, + default void updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSnapshotMethod(), responseObserver); } /** + * + * *
      * Removes an existing snapshot. Snapshots are used in [Seek]
      * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -784,12 +1009,16 @@ default void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request,
      * snapshot or its subscription, unless the same subscription is specified.
      * 
*/ - default void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request, + default void deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSnapshotMethod(), responseObserver); } /** + * + * *
      * Seeks an existing subscription to a point in time or to a given snapshot,
      * whichever is provided in the request. Snapshots are used in [Seek]
@@ -800,7 +1029,8 @@ default void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request,
      * snapshot must be on the same topic.
      * 
*/ - default void seek(com.google.pubsub.v1.SeekRequest request, + default void seek( + com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeekMethod(), responseObserver); } @@ -808,42 +1038,43 @@ default void seek(com.google.pubsub.v1.SeekRequest request, /** * Base class for the server implementation of the service Subscriber. + * *
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
    * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ - public static abstract class SubscriberImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class SubscriberImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return SubscriberGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Subscriber. + * *
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
    * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ - public static final class SubscriberStub - extends io.grpc.stub.AbstractAsyncStub { - private SubscriberStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberStub extends io.grpc.stub.AbstractAsyncStub { + private SubscriberStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SubscriberStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SubscriberStub(channel, callOptions); } /** + * + * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
@@ -857,48 +1088,69 @@ protected SubscriberStub build(
      * for REST API requests, you must specify a name in the request.
      * 
*/ - public void createSubscription(com.google.pubsub.v1.Subscription request, + public void createSubscription( + com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the configuration details of a subscription.
      * 
*/ - public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request, + public void getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates an existing subscription by updating the fields specified in the
      * update mask. Note that certain properties of a subscription, such as its
      * topic, are not modifiable.
      * 
*/ - public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, + public void updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists matching subscriptions.
      * 
*/ - public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes an existing subscription. All messages retained in the subscription
      * are immediately dropped. Calls to `Pull` after deletion will return
@@ -907,13 +1159,18 @@ public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest requ
      * subscription or its topic unless the same topic is specified.
      * 
*/ - public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request, + public void deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Modifies the ack deadline for a specific message. This method is useful
      * to indicate that more time is needed to process a message by the
@@ -922,13 +1179,18 @@ public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest re
      * subscription-level `ackDeadlineSeconds` used for subsequent messages.
      * 
*/ - public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request, + public void modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Acknowledges the messages associated with the `ack_ids` in the
      * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
@@ -938,24 +1200,32 @@ public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest requ
      * than once will not result in an error.
      * 
*/ - public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, + public void acknowledge( + com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Pulls messages from the server.
      * 
*/ - public void pull(com.google.pubsub.v1.PullRequest request, + public void pull( + com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPullMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Establishes a stream with the server, which sends messages down to the
      * client. The client streams acknowledgements and ack deadline modifications
@@ -973,6 +1243,8 @@ public io.grpc.stub.StreamObserver st
     }
 
     /**
+     *
+     *
      * 
      * Modifies the `PushConfig` for a specified subscription.
      * This may be used to change a push subscription to a pull one (signified by
@@ -981,13 +1253,18 @@ public io.grpc.stub.StreamObserver st
      * continuously through the call regardless of changes to the `PushConfig`.
      * 
*/ - public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request, + public void modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -996,13 +1273,18 @@ public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest reques
      * state captured by a snapshot.
      * 
*/ - public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request, + public void getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the existing snapshots. Snapshots are used in [Seek](
      * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1011,13 +1293,18 @@ public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request,
      * state captured by a snapshot.
      * 
*/ - public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, + public void listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a snapshot from the requested subscription. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1037,13 +1324,18 @@ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request,
      * REST API requests, you must specify a name in the request.
      * 
*/ - public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, + public void createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates an existing snapshot by updating the fields specified in the update
      * mask. Snapshots are used in
@@ -1053,13 +1345,18 @@ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request,
      * state captured by a snapshot.
      * 
*/ - public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, + public void updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Removes an existing snapshot. Snapshots are used in [Seek]
      * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1072,13 +1369,18 @@ public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request,
      * snapshot or its subscription, unless the same subscription is specified.
      * 
*/ - public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request, + public void deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Seeks an existing subscription to a point in time or to a given snapshot,
      * whichever is provided in the request. Snapshots are used in [Seek]
@@ -1089,7 +1391,8 @@ public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request,
      * snapshot must be on the same topic.
      * 
*/ - public void seek(com.google.pubsub.v1.SeekRequest request, + public void seek( + com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSeekMethod(), getCallOptions()), request, responseObserver); @@ -1098,6 +1401,7 @@ public void seek(com.google.pubsub.v1.SeekRequest request, /** * A stub to allow clients to do synchronous rpc calls to service Subscriber. + * *
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
@@ -1106,8 +1410,7 @@ public void seek(com.google.pubsub.v1.SeekRequest request,
    */
   public static final class SubscriberBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private SubscriberBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SubscriberBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -1118,6 +1421,8 @@ protected SubscriberBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
@@ -1131,44 +1436,56 @@ protected SubscriberBlockingStub build(
      * for REST API requests, you must specify a name in the request.
      * 
*/ - public com.google.pubsub.v1.Subscription createSubscription(com.google.pubsub.v1.Subscription request) { + public com.google.pubsub.v1.Subscription createSubscription( + com.google.pubsub.v1.Subscription request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the configuration details of a subscription.
      * 
*/ - public com.google.pubsub.v1.Subscription getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { + public com.google.pubsub.v1.Subscription getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } /** + * + * *
      * Updates an existing subscription by updating the fields specified in the
      * update mask. Note that certain properties of a subscription, such as its
      * topic, are not modifiable.
      * 
*/ - public com.google.pubsub.v1.Subscription updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { + public com.google.pubsub.v1.Subscription updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); } /** + * + * *
      * Lists matching subscriptions.
      * 
*/ - public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { + public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes an existing subscription. All messages retained in the subscription
      * are immediately dropped. Calls to `Pull` after deletion will return
@@ -1177,12 +1494,15 @@ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(com.goog
      * subscription or its topic unless the same topic is specified.
      * 
*/ - public com.google.protobuf.Empty deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) { + public com.google.protobuf.Empty deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } /** + * + * *
      * Modifies the ack deadline for a specific message. This method is useful
      * to indicate that more time is needed to process a message by the
@@ -1191,12 +1511,15 @@ public com.google.protobuf.Empty deleteSubscription(com.google.pubsub.v1.DeleteS
      * subscription-level `ackDeadlineSeconds` used for subsequent messages.
      * 
*/ - public com.google.protobuf.Empty modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) { + public com.google.protobuf.Empty modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getModifyAckDeadlineMethod(), getCallOptions(), request); } /** + * + * *
      * Acknowledges the messages associated with the `ack_ids` in the
      * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
@@ -1212,6 +1535,8 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq
     }
 
     /**
+     *
+     *
      * 
      * Pulls messages from the server.
      * 
@@ -1222,6 +1547,8 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r } /** + * + * *
      * Modifies the `PushConfig` for a specified subscription.
      * This may be used to change a push subscription to a pull one (signified by
@@ -1230,12 +1557,15 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r
      * continuously through the call regardless of changes to the `PushConfig`.
      * 
*/ - public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) { + public com.google.protobuf.Empty modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getModifyPushConfigMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1244,12 +1574,15 @@ public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPus
      * state captured by a snapshot.
      * 
*/ - public com.google.pubsub.v1.Snapshot getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the existing snapshots. Snapshots are used in [Seek](
      * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1258,12 +1591,15 @@ public com.google.pubsub.v1.Snapshot getSnapshot(com.google.pubsub.v1.GetSnapsho
      * state captured by a snapshot.
      * 
*/ - public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { + public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a snapshot from the requested subscription. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1283,12 +1619,15 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsu
      * REST API requests, you must specify a name in the request.
      * 
*/ - public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } /** + * + * *
      * Updates an existing snapshot by updating the fields specified in the update
      * mask. Snapshots are used in
@@ -1298,12 +1637,15 @@ public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateS
      * state captured by a snapshot.
      * 
*/ - public com.google.pubsub.v1.Snapshot updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } /** + * + * *
      * Removes an existing snapshot. Snapshots are used in [Seek]
      * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1316,12 +1658,15 @@ public com.google.pubsub.v1.Snapshot updateSnapshot(com.google.pubsub.v1.UpdateS
      * snapshot or its subscription, unless the same subscription is specified.
      * 
*/ - public com.google.protobuf.Empty deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) { + public com.google.protobuf.Empty deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } /** + * + * *
      * Seeks an existing subscription to a point in time or to a given snapshot,
      * whichever is provided in the request. Snapshots are used in [Seek]
@@ -1340,6 +1685,7 @@ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest r
 
   /**
    * A stub to allow clients to do ListenableFuture-style rpc calls to service Subscriber.
+   *
    * 
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
@@ -1348,18 +1694,18 @@ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest r
    */
   public static final class SubscriberFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private SubscriberFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SubscriberFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected SubscriberFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new SubscriberFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
@@ -1373,48 +1719,57 @@ protected SubscriberFutureStub build(
      * for REST API requests, you must specify a name in the request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createSubscription( - com.google.pubsub.v1.Subscription request) { + public com.google.common.util.concurrent.ListenableFuture + createSubscription(com.google.pubsub.v1.Subscription request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the configuration details of a subscription.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getSubscription( - com.google.pubsub.v1.GetSubscriptionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); } /** + * + * *
      * Updates an existing subscription by updating the fields specified in the
      * update mask. Note that certain properties of a subscription, such as its
      * topic, are not modifiable.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture updateSubscription( - com.google.pubsub.v1.UpdateSubscriptionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); } /** + * + * *
      * Lists matching subscriptions.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listSubscriptions( - com.google.pubsub.v1.ListSubscriptionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListSubscriptionsResponse> + listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes an existing subscription. All messages retained in the subscription
      * are immediately dropped. Calls to `Pull` after deletion will return
@@ -1423,13 +1778,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteSubscription(
-        com.google.pubsub.v1.DeleteSubscriptionRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Modifies the ack deadline for a specific message. This method is useful
      * to indicate that more time is needed to process a message by the
@@ -1438,13 +1795,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture modifyAckDeadline(
-        com.google.pubsub.v1.ModifyAckDeadlineRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Acknowledges the messages associated with the `ack_ids` in the
      * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
@@ -1454,24 +1813,28 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture acknowledge(
-        com.google.pubsub.v1.AcknowledgeRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Pulls messages from the server.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture pull( - com.google.pubsub.v1.PullRequest request) { + public com.google.common.util.concurrent.ListenableFuture + pull(com.google.pubsub.v1.PullRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPullMethod(), getCallOptions()), request); } /** + * + * *
      * Modifies the `PushConfig` for a specified subscription.
      * This may be used to change a push subscription to a pull one (signified by
@@ -1480,13 +1843,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture modifyPushConfig(
-        com.google.pubsub.v1.ModifyPushConfigRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets the configuration details of a snapshot. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1495,13 +1860,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getSnapshot(
-        com.google.pubsub.v1.GetSnapshotRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists the existing snapshots. Snapshots are used in [Seek](
      * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1510,13 +1877,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listSnapshots(
-        com.google.pubsub.v1.ListSnapshotsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.pubsub.v1.ListSnapshotsResponse>
+        listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Creates a snapshot from the requested subscription. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1536,13 +1906,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createSnapshot(
-        com.google.pubsub.v1.CreateSnapshotRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Updates an existing snapshot by updating the fields specified in the update
      * mask. Snapshots are used in
@@ -1552,13 +1924,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateSnapshot(
-        com.google.pubsub.v1.UpdateSnapshotRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Removes an existing snapshot. Snapshots are used in [Seek]
      * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1571,13 +1945,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteSnapshot(
-        com.google.pubsub.v1.DeleteSnapshotRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Seeks an existing subscription to a point in time or to a given snapshot,
      * whichever is provided in the request. Snapshots are used in [Seek]
@@ -1588,8 +1964,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture seek(
-        com.google.pubsub.v1.SeekRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        seek(com.google.pubsub.v1.SeekRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getSeekMethod(), getCallOptions()), request);
     }
@@ -1612,11 +1988,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final AsyncService serviceImpl;
     private final int methodId;
 
@@ -1630,63 +2006,80 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_SUBSCRIPTION:
-          serviceImpl.createSubscription((com.google.pubsub.v1.Subscription) request,
+          serviceImpl.createSubscription(
+              (com.google.pubsub.v1.Subscription) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_GET_SUBSCRIPTION:
-          serviceImpl.getSubscription((com.google.pubsub.v1.GetSubscriptionRequest) request,
+          serviceImpl.getSubscription(
+              (com.google.pubsub.v1.GetSubscriptionRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_SUBSCRIPTION:
-          serviceImpl.updateSubscription((com.google.pubsub.v1.UpdateSubscriptionRequest) request,
+          serviceImpl.updateSubscription(
+              (com.google.pubsub.v1.UpdateSubscriptionRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_SUBSCRIPTIONS:
-          serviceImpl.listSubscriptions((com.google.pubsub.v1.ListSubscriptionsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listSubscriptions(
+              (com.google.pubsub.v1.ListSubscriptionsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_DELETE_SUBSCRIPTION:
-          serviceImpl.deleteSubscription((com.google.pubsub.v1.DeleteSubscriptionRequest) request,
+          serviceImpl.deleteSubscription(
+              (com.google.pubsub.v1.DeleteSubscriptionRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_MODIFY_ACK_DEADLINE:
-          serviceImpl.modifyAckDeadline((com.google.pubsub.v1.ModifyAckDeadlineRequest) request,
+          serviceImpl.modifyAckDeadline(
+              (com.google.pubsub.v1.ModifyAckDeadlineRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_ACKNOWLEDGE:
-          serviceImpl.acknowledge((com.google.pubsub.v1.AcknowledgeRequest) request,
+          serviceImpl.acknowledge(
+              (com.google.pubsub.v1.AcknowledgeRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_PULL:
-          serviceImpl.pull((com.google.pubsub.v1.PullRequest) request,
+          serviceImpl.pull(
+              (com.google.pubsub.v1.PullRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_MODIFY_PUSH_CONFIG:
-          serviceImpl.modifyPushConfig((com.google.pubsub.v1.ModifyPushConfigRequest) request,
+          serviceImpl.modifyPushConfig(
+              (com.google.pubsub.v1.ModifyPushConfigRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_GET_SNAPSHOT:
-          serviceImpl.getSnapshot((com.google.pubsub.v1.GetSnapshotRequest) request,
+          serviceImpl.getSnapshot(
+              (com.google.pubsub.v1.GetSnapshotRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_SNAPSHOTS:
-          serviceImpl.listSnapshots((com.google.pubsub.v1.ListSnapshotsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listSnapshots(
+              (com.google.pubsub.v1.ListSnapshotsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_CREATE_SNAPSHOT:
-          serviceImpl.createSnapshot((com.google.pubsub.v1.CreateSnapshotRequest) request,
+          serviceImpl.createSnapshot(
+              (com.google.pubsub.v1.CreateSnapshotRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_SNAPSHOT:
-          serviceImpl.updateSnapshot((com.google.pubsub.v1.UpdateSnapshotRequest) request,
+          serviceImpl.updateSnapshot(
+              (com.google.pubsub.v1.UpdateSnapshotRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DELETE_SNAPSHOT:
-          serviceImpl.deleteSnapshot((com.google.pubsub.v1.DeleteSnapshotRequest) request,
+          serviceImpl.deleteSnapshot(
+              (com.google.pubsub.v1.DeleteSnapshotRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_SEEK:
-          serviceImpl.seek((com.google.pubsub.v1.SeekRequest) request,
+          serviceImpl.seek(
+              (com.google.pubsub.v1.SeekRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -1700,8 +2093,10 @@ public io.grpc.stub.StreamObserver invoke(
         io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_STREAMING_PULL:
-          return (io.grpc.stub.StreamObserver) serviceImpl.streamingPull(
-              (io.grpc.stub.StreamObserver) responseObserver);
+          return (io.grpc.stub.StreamObserver)
+              serviceImpl.streamingPull(
+                  (io.grpc.stub.StreamObserver)
+                      responseObserver);
         default:
           throw new AssertionError();
       }
@@ -1711,122 +2106,108 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-          getCreateSubscriptionMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.Subscription,
-              com.google.pubsub.v1.Subscription>(
-                service, METHODID_CREATE_SUBSCRIPTION)))
+            getCreateSubscriptionMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>(
+                    service, METHODID_CREATE_SUBSCRIPTION)))
         .addMethod(
-          getGetSubscriptionMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.GetSubscriptionRequest,
-              com.google.pubsub.v1.Subscription>(
-                service, METHODID_GET_SUBSCRIPTION)))
+            getGetSubscriptionMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>(
+                    service, METHODID_GET_SUBSCRIPTION)))
         .addMethod(
-          getUpdateSubscriptionMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.UpdateSubscriptionRequest,
-              com.google.pubsub.v1.Subscription>(
-                service, METHODID_UPDATE_SUBSCRIPTION)))
+            getUpdateSubscriptionMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.UpdateSubscriptionRequest,
+                    com.google.pubsub.v1.Subscription>(service, METHODID_UPDATE_SUBSCRIPTION)))
         .addMethod(
-          getListSubscriptionsMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.ListSubscriptionsRequest,
-              com.google.pubsub.v1.ListSubscriptionsResponse>(
-                service, METHODID_LIST_SUBSCRIPTIONS)))
+            getListSubscriptionsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.ListSubscriptionsRequest,
+                    com.google.pubsub.v1.ListSubscriptionsResponse>(
+                    service, METHODID_LIST_SUBSCRIPTIONS)))
         .addMethod(
-          getDeleteSubscriptionMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.DeleteSubscriptionRequest,
-              com.google.protobuf.Empty>(
-                service, METHODID_DELETE_SUBSCRIPTION)))
+            getDeleteSubscriptionMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>(
+                    service, METHODID_DELETE_SUBSCRIPTION)))
         .addMethod(
-          getModifyAckDeadlineMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.ModifyAckDeadlineRequest,
-              com.google.protobuf.Empty>(
-                service, METHODID_MODIFY_ACK_DEADLINE)))
+            getModifyAckDeadlineMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>(
+                    service, METHODID_MODIFY_ACK_DEADLINE)))
         .addMethod(
-          getAcknowledgeMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.AcknowledgeRequest,
-              com.google.protobuf.Empty>(
-                service, METHODID_ACKNOWLEDGE)))
+            getAcknowledgeMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>(
+                    service, METHODID_ACKNOWLEDGE)))
         .addMethod(
-          getPullMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.PullRequest,
-              com.google.pubsub.v1.PullResponse>(
-                service, METHODID_PULL)))
+            getPullMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>(
+                    service, METHODID_PULL)))
         .addMethod(
-          getStreamingPullMethod(),
-          io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.StreamingPullRequest,
-              com.google.pubsub.v1.StreamingPullResponse>(
-                service, METHODID_STREAMING_PULL)))
+            getStreamingPullMethod(),
+            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.StreamingPullRequest,
+                    com.google.pubsub.v1.StreamingPullResponse>(service, METHODID_STREAMING_PULL)))
         .addMethod(
-          getModifyPushConfigMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.ModifyPushConfigRequest,
-              com.google.protobuf.Empty>(
-                service, METHODID_MODIFY_PUSH_CONFIG)))
+            getModifyPushConfigMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>(
+                    service, METHODID_MODIFY_PUSH_CONFIG)))
         .addMethod(
-          getGetSnapshotMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.GetSnapshotRequest,
-              com.google.pubsub.v1.Snapshot>(
-                service, METHODID_GET_SNAPSHOT)))
+            getGetSnapshotMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>(
+                    service, METHODID_GET_SNAPSHOT)))
         .addMethod(
-          getListSnapshotsMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.ListSnapshotsRequest,
-              com.google.pubsub.v1.ListSnapshotsResponse>(
-                service, METHODID_LIST_SNAPSHOTS)))
+            getListSnapshotsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.ListSnapshotsRequest,
+                    com.google.pubsub.v1.ListSnapshotsResponse>(service, METHODID_LIST_SNAPSHOTS)))
         .addMethod(
-          getCreateSnapshotMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.CreateSnapshotRequest,
-              com.google.pubsub.v1.Snapshot>(
-                service, METHODID_CREATE_SNAPSHOT)))
+            getCreateSnapshotMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>(
+                    service, METHODID_CREATE_SNAPSHOT)))
         .addMethod(
-          getUpdateSnapshotMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.UpdateSnapshotRequest,
-              com.google.pubsub.v1.Snapshot>(
-                service, METHODID_UPDATE_SNAPSHOT)))
+            getUpdateSnapshotMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>(
+                    service, METHODID_UPDATE_SNAPSHOT)))
         .addMethod(
-          getDeleteSnapshotMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.DeleteSnapshotRequest,
-              com.google.protobuf.Empty>(
-                service, METHODID_DELETE_SNAPSHOT)))
+            getDeleteSnapshotMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>(
+                    service, METHODID_DELETE_SNAPSHOT)))
         .addMethod(
-          getSeekMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.pubsub.v1.SeekRequest,
-              com.google.pubsub.v1.SeekResponse>(
-                service, METHODID_SEEK)))
+            getSeekMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>(
+                    service, METHODID_SEEK)))
         .build();
   }
 
-  private static abstract class SubscriberBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class SubscriberBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     SubscriberBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -1868,25 +2249,27 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (SubscriberGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new SubscriberFileDescriptorSupplier())
-              .addMethod(getCreateSubscriptionMethod())
-              .addMethod(getGetSubscriptionMethod())
-              .addMethod(getUpdateSubscriptionMethod())
-              .addMethod(getListSubscriptionsMethod())
-              .addMethod(getDeleteSubscriptionMethod())
-              .addMethod(getModifyAckDeadlineMethod())
-              .addMethod(getAcknowledgeMethod())
-              .addMethod(getPullMethod())
-              .addMethod(getStreamingPullMethod())
-              .addMethod(getModifyPushConfigMethod())
-              .addMethod(getGetSnapshotMethod())
-              .addMethod(getListSnapshotsMethod())
-              .addMethod(getCreateSnapshotMethod())
-              .addMethod(getUpdateSnapshotMethod())
-              .addMethod(getDeleteSnapshotMethod())
-              .addMethod(getSeekMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new SubscriberFileDescriptorSupplier())
+                      .addMethod(getCreateSubscriptionMethod())
+                      .addMethod(getGetSubscriptionMethod())
+                      .addMethod(getUpdateSubscriptionMethod())
+                      .addMethod(getListSubscriptionsMethod())
+                      .addMethod(getDeleteSubscriptionMethod())
+                      .addMethod(getModifyAckDeadlineMethod())
+                      .addMethod(getAcknowledgeMethod())
+                      .addMethod(getPullMethod())
+                      .addMethod(getStreamingPullMethod())
+                      .addMethod(getModifyPushConfigMethod())
+                      .addMethod(getGetSnapshotMethod())
+                      .addMethod(getListSnapshotsMethod())
+                      .addMethod(getCreateSnapshotMethod())
+                      .addMethod(getUpdateSnapshotMethod())
+                      .addMethod(getDeleteSnapshotMethod())
+                      .addMethod(getSeekMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
deleted file mode 100644
index 331f67936..000000000
--- a/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
+++ /dev/null
@@ -1,1097 +0,0 @@
-package com.google.pubsub.v1;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- * 
- * Service for doing schema-related operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/pubsub/v1/schema.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SchemaServiceGrpc { - - private SchemaServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.pubsub.v1.SchemaService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSchema", - requestType = com.google.pubsub.v1.CreateSchemaRequest.class, - responseType = com.google.pubsub.v1.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSchemaMethod() { - io.grpc.MethodDescriptor getCreateSchemaMethod; - if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { - SchemaServiceGrpc.getCreateSchemaMethod = getCreateSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.Schema.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("CreateSchema")) - .build(); - } - } - } - return getCreateSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSchema", - requestType = com.google.pubsub.v1.GetSchemaRequest.class, - responseType = com.google.pubsub.v1.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSchemaMethod() { - io.grpc.MethodDescriptor getGetSchemaMethod; - if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { - SchemaServiceGrpc.getGetSchemaMethod = getGetSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.Schema.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) - .build(); - } - } - } - return getGetSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSchemasMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSchemas", - requestType = com.google.pubsub.v1.ListSchemasRequest.class, - responseType = com.google.pubsub.v1.ListSchemasResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSchemasMethod() { - io.grpc.MethodDescriptor getListSchemasMethod; - if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { - SchemaServiceGrpc.getListSchemasMethod = getListSchemasMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ListSchemasResponse.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) - .build(); - } - } - } - return getListSchemasMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSchemaRevisionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSchemaRevisions", - requestType = com.google.pubsub.v1.ListSchemaRevisionsRequest.class, - responseType = com.google.pubsub.v1.ListSchemaRevisionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSchemaRevisionsMethod() { - io.grpc.MethodDescriptor getListSchemaRevisionsMethod; - if ((getListSchemaRevisionsMethod = SchemaServiceGrpc.getListSchemaRevisionsMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getListSchemaRevisionsMethod = SchemaServiceGrpc.getListSchemaRevisionsMethod) == null) { - SchemaServiceGrpc.getListSchemaRevisionsMethod = getListSchemaRevisionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemaRevisions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ListSchemaRevisionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ListSchemaRevisionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemaRevisions")) - .build(); - } - } - } - return getListSchemaRevisionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCommitSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CommitSchema", - requestType = com.google.pubsub.v1.CommitSchemaRequest.class, - responseType = com.google.pubsub.v1.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCommitSchemaMethod() { - io.grpc.MethodDescriptor getCommitSchemaMethod; - if ((getCommitSchemaMethod = SchemaServiceGrpc.getCommitSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getCommitSchemaMethod = SchemaServiceGrpc.getCommitSchemaMethod) == null) { - SchemaServiceGrpc.getCommitSchemaMethod = getCommitSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.CommitSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.Schema.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("CommitSchema")) - .build(); - } - } - } - return getCommitSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getRollbackSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RollbackSchema", - requestType = com.google.pubsub.v1.RollbackSchemaRequest.class, - responseType = com.google.pubsub.v1.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRollbackSchemaMethod() { - io.grpc.MethodDescriptor getRollbackSchemaMethod; - if ((getRollbackSchemaMethod = SchemaServiceGrpc.getRollbackSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getRollbackSchemaMethod = SchemaServiceGrpc.getRollbackSchemaMethod) == null) { - SchemaServiceGrpc.getRollbackSchemaMethod = getRollbackSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RollbackSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.RollbackSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.Schema.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("RollbackSchema")) - .build(); - } - } - } - return getRollbackSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSchemaRevisionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSchemaRevision", - requestType = com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, - responseType = com.google.pubsub.v1.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSchemaRevisionMethod() { - io.grpc.MethodDescriptor getDeleteSchemaRevisionMethod; - if ((getDeleteSchemaRevisionMethod = SchemaServiceGrpc.getDeleteSchemaRevisionMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getDeleteSchemaRevisionMethod = SchemaServiceGrpc.getDeleteSchemaRevisionMethod) == null) { - SchemaServiceGrpc.getDeleteSchemaRevisionMethod = getDeleteSchemaRevisionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchemaRevision")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.DeleteSchemaRevisionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.Schema.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("DeleteSchemaRevision")) - .build(); - } - } - } - return getDeleteSchemaRevisionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", - requestType = com.google.pubsub.v1.DeleteSchemaRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSchemaMethod() { - io.grpc.MethodDescriptor getDeleteSchemaMethod; - if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { - SchemaServiceGrpc.getDeleteSchemaMethod = getDeleteSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) - .build(); - } - } - } - return getDeleteSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidateSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateSchema", - requestType = com.google.pubsub.v1.ValidateSchemaRequest.class, - responseType = com.google.pubsub.v1.ValidateSchemaResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidateSchemaMethod() { - io.grpc.MethodDescriptor getValidateSchemaMethod; - if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { - SchemaServiceGrpc.getValidateSchemaMethod = getValidateSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ValidateSchema")) - .build(); - } - } - } - return getValidateSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidateMessageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateMessage", - requestType = com.google.pubsub.v1.ValidateMessageRequest.class, - responseType = com.google.pubsub.v1.ValidateMessageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidateMessageMethod() { - io.grpc.MethodDescriptor getValidateMessageMethod; - if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { - SchemaServiceGrpc.getValidateMessageMethod = getValidateMessageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateMessage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ValidateMessage")) - .build(); - } - } - } - return getValidateMessageMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SchemaServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceStub(channel, callOptions); - } - }; - return SchemaServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SchemaServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceBlockingStub(channel, callOptions); - } - }; - return SchemaServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SchemaServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceFutureStub(channel, callOptions); - } - }; - return SchemaServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service for doing schema-related operations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Creates a schema.
-     * 
- */ - default void createSchema(com.google.pubsub.v1.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); - } - - /** - *
-     * Gets a schema.
-     * 
- */ - default void getSchema(com.google.pubsub.v1.GetSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); - } - - /** - *
-     * Lists schemas in a project.
-     * 
- */ - default void listSchemas(com.google.pubsub.v1.ListSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); - } - - /** - *
-     * Lists all schema revisions for the named schema.
-     * 
- */ - default void listSchemaRevisions(com.google.pubsub.v1.ListSchemaRevisionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchemaRevisionsMethod(), responseObserver); - } - - /** - *
-     * Commits a new schema revision to an existing schema.
-     * 
- */ - default void commitSchema(com.google.pubsub.v1.CommitSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitSchemaMethod(), responseObserver); - } - - /** - *
-     * Creates a new schema revision that is a copy of the provided revision_id.
-     * 
- */ - default void rollbackSchema(com.google.pubsub.v1.RollbackSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRollbackSchemaMethod(), responseObserver); - } - - /** - *
-     * Deletes a specific schema revision.
-     * 
- */ - default void deleteSchemaRevision(com.google.pubsub.v1.DeleteSchemaRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSchemaRevisionMethod(), responseObserver); - } - - /** - *
-     * Deletes a schema.
-     * 
- */ - default void deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); - } - - /** - *
-     * Validates a schema.
-     * 
- */ - default void validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateSchemaMethod(), responseObserver); - } - - /** - *
-     * Validates a message against a schema.
-     * 
- */ - default void validateMessage(com.google.pubsub.v1.ValidateMessageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateMessageMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service SchemaService. - *
-   * Service for doing schema-related operations.
-   * 
- */ - public static abstract class SchemaServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return SchemaServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service SchemaService. - *
-   * Service for doing schema-related operations.
-   * 
- */ - public static final class SchemaServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SchemaServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a schema.
-     * 
- */ - public void createSchema(com.google.pubsub.v1.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a schema.
-     * 
- */ - public void getSchema(com.google.pubsub.v1.GetSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists schemas in a project.
-     * 
- */ - public void listSchemas(com.google.pubsub.v1.ListSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSchemasMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all schema revisions for the named schema.
-     * 
- */ - public void listSchemaRevisions(com.google.pubsub.v1.ListSchemaRevisionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSchemaRevisionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Commits a new schema revision to an existing schema.
-     * 
- */ - public void commitSchema(com.google.pubsub.v1.CommitSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCommitSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new schema revision that is a copy of the provided revision_id.
-     * 
- */ - public void rollbackSchema(com.google.pubsub.v1.RollbackSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRollbackSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a specific schema revision.
-     * 
- */ - public void deleteSchemaRevision(com.google.pubsub.v1.DeleteSchemaRevisionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSchemaRevisionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a schema.
-     * 
- */ - public void deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Validates a schema.
-     * 
- */ - public void validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Validates a message against a schema.
-     * 
- */ - public void validateMessage(com.google.pubsub.v1.ValidateMessageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service SchemaService. - *
-   * Service for doing schema-related operations.
-   * 
- */ - public static final class SchemaServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SchemaServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a schema.
-     * 
- */ - public com.google.pubsub.v1.Schema createSchema(com.google.pubsub.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a schema.
-     * 
- */ - public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists schemas in a project.
-     * 
- */ - public com.google.pubsub.v1.ListSchemasResponse listSchemas(com.google.pubsub.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSchemasMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all schema revisions for the named schema.
-     * 
- */ - public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions(com.google.pubsub.v1.ListSchemaRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSchemaRevisionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Commits a new schema revision to an existing schema.
-     * 
- */ - public com.google.pubsub.v1.Schema commitSchema(com.google.pubsub.v1.CommitSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCommitSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new schema revision that is a copy of the provided revision_id.
-     * 
- */ - public com.google.pubsub.v1.Schema rollbackSchema(com.google.pubsub.v1.RollbackSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRollbackSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a specific schema revision.
-     * 
- */ - public com.google.pubsub.v1.Schema deleteSchemaRevision(com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSchemaRevisionMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a schema.
-     * 
- */ - public com.google.protobuf.Empty deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Validates a schema.
-     * 
- */ - public com.google.pubsub.v1.ValidateSchemaResponse validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Validates a message against a schema.
-     * 
- */ - public com.google.pubsub.v1.ValidateMessageResponse validateMessage(com.google.pubsub.v1.ValidateMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateMessageMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService. - *
-   * Service for doing schema-related operations.
-   * 
- */ - public static final class SchemaServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SchemaServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSchema( - com.google.pubsub.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSchema( - com.google.pubsub.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists schemas in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSchemas( - com.google.pubsub.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all schema revisions for the named schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSchemaRevisions( - com.google.pubsub.v1.ListSchemaRevisionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSchemaRevisionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Commits a new schema revision to an existing schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture commitSchema( - com.google.pubsub.v1.CommitSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCommitSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new schema revision that is a copy of the provided revision_id.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture rollbackSchema( - com.google.pubsub.v1.RollbackSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRollbackSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a specific schema revision.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSchemaRevision( - com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSchemaRevisionMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSchema( - com.google.pubsub.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Validates a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validateSchema( - com.google.pubsub.v1.ValidateSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Validates a message against a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validateMessage( - com.google.pubsub.v1.ValidateMessageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCHEMA = 0; - private static final int METHODID_GET_SCHEMA = 1; - private static final int METHODID_LIST_SCHEMAS = 2; - private static final int METHODID_LIST_SCHEMA_REVISIONS = 3; - private static final int METHODID_COMMIT_SCHEMA = 4; - private static final int METHODID_ROLLBACK_SCHEMA = 5; - private static final int METHODID_DELETE_SCHEMA_REVISION = 6; - private static final int METHODID_DELETE_SCHEMA = 7; - private static final int METHODID_VALIDATE_SCHEMA = 8; - private static final int METHODID_VALIDATE_MESSAGE = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCHEMA: - serviceImpl.createSchema((com.google.pubsub.v1.CreateSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCHEMA: - serviceImpl.getSchema((com.google.pubsub.v1.GetSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCHEMAS: - serviceImpl.listSchemas((com.google.pubsub.v1.ListSchemasRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCHEMA_REVISIONS: - serviceImpl.listSchemaRevisions((com.google.pubsub.v1.ListSchemaRevisionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMMIT_SCHEMA: - serviceImpl.commitSchema((com.google.pubsub.v1.CommitSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ROLLBACK_SCHEMA: - serviceImpl.rollbackSchema((com.google.pubsub.v1.RollbackSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCHEMA_REVISION: - serviceImpl.deleteSchemaRevision((com.google.pubsub.v1.DeleteSchemaRevisionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCHEMA: - serviceImpl.deleteSchema((com.google.pubsub.v1.DeleteSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATE_SCHEMA: - serviceImpl.validateSchema((com.google.pubsub.v1.ValidateSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATE_MESSAGE: - serviceImpl.validateMessage((com.google.pubsub.v1.ValidateMessageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CreateSchemaRequest, - com.google.pubsub.v1.Schema>( - service, METHODID_CREATE_SCHEMA))) - .addMethod( - getGetSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSchemaRequest, - com.google.pubsub.v1.Schema>( - service, METHODID_GET_SCHEMA))) - .addMethod( - getListSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSchemasRequest, - com.google.pubsub.v1.ListSchemasResponse>( - service, METHODID_LIST_SCHEMAS))) - .addMethod( - getListSchemaRevisionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSchemaRevisionsRequest, - com.google.pubsub.v1.ListSchemaRevisionsResponse>( - service, METHODID_LIST_SCHEMA_REVISIONS))) - .addMethod( - getCommitSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CommitSchemaRequest, - com.google.pubsub.v1.Schema>( - service, METHODID_COMMIT_SCHEMA))) - .addMethod( - getRollbackSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.RollbackSchemaRequest, - com.google.pubsub.v1.Schema>( - service, METHODID_ROLLBACK_SCHEMA))) - .addMethod( - getDeleteSchemaRevisionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSchemaRevisionRequest, - com.google.pubsub.v1.Schema>( - service, METHODID_DELETE_SCHEMA_REVISION))) - .addMethod( - getDeleteSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSchemaRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SCHEMA))) - .addMethod( - getValidateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateSchemaRequest, - com.google.pubsub.v1.ValidateSchemaResponse>( - service, METHODID_VALIDATE_SCHEMA))) - .addMethod( - getValidateMessageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateMessageRequest, - com.google.pubsub.v1.ValidateMessageResponse>( - service, METHODID_VALIDATE_MESSAGE))) - .build(); - } - - private static abstract class SchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SchemaServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.pubsub.v1.SchemaProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SchemaService"); - } - } - - private static final class SchemaServiceFileDescriptorSupplier - extends SchemaServiceBaseDescriptorSupplier { - SchemaServiceFileDescriptorSupplier() {} - } - - private static final class SchemaServiceMethodDescriptorSupplier - extends SchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - SchemaServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SchemaServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) - .addMethod(getCreateSchemaMethod()) - .addMethod(getGetSchemaMethod()) - .addMethod(getListSchemasMethod()) - .addMethod(getListSchemaRevisionsMethod()) - .addMethod(getCommitSchemaMethod()) - .addMethod(getRollbackSchemaMethod()) - .addMethod(getDeleteSchemaRevisionMethod()) - .addMethod(getDeleteSchemaMethod()) - .addMethod(getValidateSchemaMethod()) - .addMethod(getValidateMessageMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java deleted file mode 100644 index 9fae6c56b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface DeleteSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the schema to delete.
-   * Format is `projects/{project}/schemas/{schema}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the schema to delete.
-   * Format is `projects/{project}/schemas/{schema}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java deleted file mode 100644 index bc3a239a5..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface DeleteSnapshotRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the snapshot to delete.
-   * Format is `projects/{project}/snapshots/{snap}`.
-   * 
- * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The snapshot. - */ - java.lang.String getSnapshot(); - /** - *
-   * Required. The name of the snapshot to delete.
-   * Format is `projects/{project}/snapshots/{snap}`.
-   * 
- * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for snapshot. - */ - com.google.protobuf.ByteString - getSnapshotBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java deleted file mode 100644 index d63f293d7..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface DeleteSubscriptionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The subscription to delete.
-   * Format is `projects/{project}/subscriptions/{sub}`.
-   * 
- * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The subscription. - */ - java.lang.String getSubscription(); - /** - *
-   * Required. The subscription to delete.
-   * Format is `projects/{project}/subscriptions/{sub}`.
-   * 
- * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for subscription. - */ - com.google.protobuf.ByteString - getSubscriptionBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java deleted file mode 100644 index 884ab9e7b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface DeleteTopicRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the topic to delete.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The topic. - */ - java.lang.String getTopic(); - /** - *
-   * Required. Name of the topic to delete.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for topic. - */ - com.google.protobuf.ByteString - getTopicBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java deleted file mode 100644 index 4df531e26..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface DetachSubscriptionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The subscription to detach.
-   * Format is `projects/{project}/subscriptions/{subscription}`.
-   * 
- * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The subscription. - */ - java.lang.String getSubscription(); - /** - *
-   * Required. The subscription to detach.
-   * Format is `projects/{project}/subscriptions/{subscription}`.
-   * 
- * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for subscription. - */ - com.google.protobuf.ByteString - getSubscriptionBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java deleted file mode 100644 index 0d9ba0c5e..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface DetachSubscriptionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java deleted file mode 100644 index baf4c916c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface GetSnapshotRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the snapshot to get.
-   * Format is `projects/{project}/snapshots/{snap}`.
-   * 
- * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The snapshot. - */ - java.lang.String getSnapshot(); - /** - *
-   * Required. The name of the snapshot to get.
-   * Format is `projects/{project}/snapshots/{snap}`.
-   * 
- * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for snapshot. - */ - com.google.protobuf.ByteString - getSnapshotBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java deleted file mode 100644 index eb9effcb3..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface GetSubscriptionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the subscription to get.
-   * Format is `projects/{project}/subscriptions/{sub}`.
-   * 
- * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The subscription. - */ - java.lang.String getSubscription(); - /** - *
-   * Required. The name of the subscription to get.
-   * Format is `projects/{project}/subscriptions/{sub}`.
-   * 
- * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for subscription. - */ - com.google.protobuf.ByteString - getSubscriptionBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java deleted file mode 100644 index 7292d6e13..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface GetTopicRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the topic to get.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The topic. - */ - java.lang.String getTopic(); - /** - *
-   * Required. The name of the topic to get.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for topic. - */ - com.google.protobuf.ByteString - getTopicBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java deleted file mode 100644 index 2c64aa82e..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface IngestionDataSourceSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. Amazon Kinesis Data Streams.
-   * 
- * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the awsKinesis field is set. - */ - boolean hasAwsKinesis(); - /** - *
-   * Optional. Amazon Kinesis Data Streams.
-   * 
- * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The awsKinesis. - */ - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis(); - /** - *
-   * Optional. Amazon Kinesis Data Streams.
-   * 
- * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getAwsKinesisOrBuilder(); - - com.google.pubsub.v1.IngestionDataSourceSettings.SourceCase getSourceCase(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java deleted file mode 100644 index 0e8bf9b38..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface ListSnapshotsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. The resulting snapshots.
-   * 
- * - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getSnapshotsList(); - /** - *
-   * Optional. The resulting snapshots.
-   * 
- * - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.pubsub.v1.Snapshot getSnapshots(int index); - /** - *
-   * Optional. The resulting snapshots.
-   * 
- * - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getSnapshotsCount(); - /** - *
-   * Optional. The resulting snapshots.
-   * 
- * - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getSnapshotsOrBuilderList(); - /** - *
-   * Optional. The resulting snapshots.
-   * 
- * - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index); - - /** - *
-   * Optional. If not empty, indicates that there may be more snapshot that
-   * match the request; this value should be passed in a new
-   * `ListSnapshotsRequest`.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * Optional. If not empty, indicates that there may be more snapshot that
-   * match the request; this value should be passed in a new
-   * `ListSnapshotsRequest`.
-   * 
- * - * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java deleted file mode 100644 index e25a82de5..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface PublishRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The messages in the request will be published on this topic.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The topic. - */ - java.lang.String getTopic(); - /** - *
-   * Required. The messages in the request will be published on this topic.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for topic. - */ - com.google.protobuf.ByteString - getTopicBytes(); - - /** - *
-   * Required. The messages to publish.
-   * 
- * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getMessagesList(); - /** - *
-   * Required. The messages to publish.
-   * 
- * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.pubsub.v1.PubsubMessage getMessages(int index); - /** - *
-   * Required. The messages to publish.
-   * 
- * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - int getMessagesCount(); - /** - *
-   * Required. The messages to publish.
-   * 
- * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getMessagesOrBuilderList(); - /** - *
-   * Required. The messages to publish.
-   * 
- * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java deleted file mode 100644 index 894732ae0..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ /dev/null @@ -1,1114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public final class PubsubProto { - private PubsubProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_SchemaSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Topic_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Topic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PubsubMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_GetTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PublishRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PublishResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Subscription_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Subscription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_RetryPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_BigQueryConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ReceivedMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PullRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PullResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Snapshot_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_SeekRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_SeekResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035google/pubsub/v1/pubsub.proto\022\020google." + - "pubsub.v1\032\034google/api/annotations.proto\032" + - "\027google/api/client.proto\032\037google/api/fie" + - "ld_behavior.proto\032\031google/api/resource.p" + - "roto\032\036google/protobuf/duration.proto\032\033go" + - "ogle/protobuf/empty.proto\032 google/protob" + - "uf/field_mask.proto\032\037google/protobuf/tim" + - "estamp.proto\032\035google/pubsub/v1/schema.pr" + - "oto\"c\n\024MessageStoragePolicy\022)\n\033allowed_p" + - "ersistence_regions\030\001 \003(\tB\004\342A\001\001\022 \n\022enforc" + - "e_in_transit\030\002 \001(\010B\004\342A\001\001\"\274\001\n\016SchemaSetti" + - "ngs\0225\n\006schema\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.goo" + - "gleapis.com/Schema\0222\n\010encoding\030\002 \001(\0162\032.g" + - "oogle.pubsub.v1.EncodingB\004\342A\001\001\022\037\n\021first_" + - "revision_id\030\003 \001(\tB\004\342A\001\001\022\036\n\020last_revision" + - "_id\030\004 \001(\tB\004\342A\001\001\"\360\003\n\033IngestionDataSourceS" + - "ettings\022U\n\013aws_kinesis\030\001 \001(\01328.google.pu" + - "bsub.v1.IngestionDataSourceSettings.AwsK" + - "inesisB\004\342A\001\001H\000\032\357\002\n\nAwsKinesis\022S\n\005state\030\001" + - " \001(\0162>.google.pubsub.v1.IngestionDataSou" + - "rceSettings.AwsKinesis.StateB\004\342A\001\003\022\030\n\nst" + - "ream_arn\030\002 \001(\tB\004\342A\001\002\022\032\n\014consumer_arn\030\003 \001" + - "(\tB\004\342A\001\002\022\032\n\014aws_role_arn\030\004 \001(\tB\004\342A\001\002\022!\n\023" + - "gcp_service_account\030\005 \001(\tB\004\342A\001\002\"\226\001\n\005Stat" + - "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031" + - "KINESIS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" + - "ERMISSION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004" + - "\022\026\n\022CONSUMER_NOT_FOUND\020\005B\010\n\006source\"\303\005\n\005T" + - "opic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0229\n\006labels\030\002 \003(\013" + - "2#.google.pubsub.v1.Topic.LabelsEntryB\004\342" + - "A\001\001\022L\n\026message_storage_policy\030\003 \001(\0132&.go" + - "ogle.pubsub.v1.MessageStoragePolicyB\004\342A\001" + - "\001\022\032\n\014kms_key_name\030\005 \001(\tB\004\342A\001\001\022?\n\017schema_" + - "settings\030\006 \001(\0132 .google.pubsub.v1.Schema" + - "SettingsB\004\342A\001\001\022\033\n\rsatisfies_pzs\030\007 \001(\010B\004\342" + - "A\001\001\022C\n\032message_retention_duration\030\010 \001(\0132" + - "\031.google.protobuf.DurationB\004\342A\001\001\0222\n\005stat" + - "e\030\t \001(\0162\035.google.pubsub.v1.Topic.StateB\004" + - "\342A\001\003\022[\n\036ingestion_data_source_settings\030\n" + - " \001(\0132-.google.pubsub.v1.IngestionDataSou" + - "rceSettingsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025\n\021STA" + - "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTIO" + - "N_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.googleap" + - "is.com/Topic\022!projects/{project}/topics/" + - "{topic}\022\017_deleted-topic_\"\203\002\n\rPubsubMessa" + - "ge\022\022\n\004data\030\001 \001(\014B\004\342A\001\001\022I\n\nattributes\030\002 \003" + - "(\0132/.google.pubsub.v1.PubsubMessage.Attr" + - "ibutesEntryB\004\342A\001\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + - "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + - "mestamp\022\032\n\014ordering_key\030\005 \001(\tB\004\342A\001\001\0321\n\017A" + - "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005topic\030\001 \001(\t" + - "B$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"y" + - "\n\022UpdateTopicRequest\022,\n\005topic\030\001 \001(\0132\027.go" + - "ogle.pubsub.v1.TopicB\004\342A\001\002\0225\n\013update_mas" + - "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001" + - "\002\"~\n\016PublishRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002" + - "\372A\035\n\033pubsub.googleapis.com/Topic\0227\n\010mess" + - "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" + - "ageB\004\342A\001\002\",\n\017PublishResponse\022\031\n\013message_" + - "ids\030\001 \003(\tB\004\342A\001\001\"\215\001\n\021ListTopicsRequest\022E\n" + - "\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + - "nager.googleapis.com/Project\022\027\n\tpage_siz" + - "e\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"" + - "b\n\022ListTopicsResponse\022-\n\006topics\030\001 \003(\0132\027." + - "google.pubsub.v1.TopicB\004\342A\001\001\022\035\n\017next_pag" + - "e_token\030\002 \001(\tB\004\342A\001\001\"\207\001\n\035ListTopicSubscri" + - "ptionsRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" + - "ubsub.googleapis.com/Topic\022\027\n\tpage_size\030" + - "\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\203\001" + - "\n\036ListTopicSubscriptionsResponse\022B\n\rsubs" + - "criptions\030\001 \003(\tB+\342A\001\001\372A$\n\"pubsub.googlea" + - "pis.com/Subscription\022\035\n\017next_page_token\030" + - "\002 \001(\tB\004\342A\001\001\"\203\001\n\031ListTopicSnapshotsReques" + - "t\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.google" + - "apis.com/Topic\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + - "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"T\n\032ListTopicSn" + - "apshotsResponse\022\027\n\tsnapshots\030\001 \003(\tB\004\342A\001\001" + - "\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"I\n\022Delet" + - "eTopicRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" + - "ubsub.googleapis.com/Topic\"^\n\031DetachSubs" + - "criptionRequest\022A\n\014subscription\030\001 \001(\tB+\342" + - "A\001\002\372A$\n\"pubsub.googleapis.com/Subscripti" + - "on\"\034\n\032DetachSubscriptionResponse\"\201\t\n\014Sub" + - "scription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\005topic\030\002" + - " \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Top" + - "ic\0227\n\013push_config\030\004 \001(\0132\034.google.pubsub." + - "v1.PushConfigB\004\342A\001\001\022?\n\017bigquery_config\030\022" + - " \001(\0132 .google.pubsub.v1.BigQueryConfigB\004" + - "\342A\001\001\022H\n\024cloud_storage_config\030\026 \001(\0132$.goo" + - "gle.pubsub.v1.CloudStorageConfigB\004\342A\001\001\022\"" + - "\n\024ack_deadline_seconds\030\005 \001(\005B\004\342A\001\001\022#\n\025re" + - "tain_acked_messages\030\007 \001(\010B\004\342A\001\001\022C\n\032messa" + - "ge_retention_duration\030\010 \001(\0132\031.google.pro" + - "tobuf.DurationB\004\342A\001\001\022@\n\006labels\030\t \003(\0132*.g" + - "oogle.pubsub.v1.Subscription.LabelsEntry" + - "B\004\342A\001\001\022%\n\027enable_message_ordering\030\n \001(\010B" + - "\004\342A\001\001\022C\n\021expiration_policy\030\013 \001(\0132\".googl" + - "e.pubsub.v1.ExpirationPolicyB\004\342A\001\001\022\024\n\006fi" + - "lter\030\014 \001(\tB\004\342A\001\001\022D\n\022dead_letter_policy\030\r" + - " \001(\0132\".google.pubsub.v1.DeadLetterPolicy" + - "B\004\342A\001\001\0229\n\014retry_policy\030\016 \001(\0132\035.google.pu" + - "bsub.v1.RetryPolicyB\004\342A\001\001\022\026\n\010detached\030\017 " + - "\001(\010B\004\342A\001\001\022*\n\034enable_exactly_once_deliver" + - "y\030\020 \001(\010B\004\342A\001\001\022I\n topic_message_retention" + - "_duration\030\021 \001(\0132\031.google.protobuf.Durati" + - "onB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google.pubsub." + - "v1.Subscription.StateB\004\342A\001\003\032-\n\013LabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005St" + - "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022" + - "\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleap" + - "is.com/Subscription\022/projects/{project}/" + - "subscriptions/{subscription}\"\201\001\n\013RetryPo" + - "licy\0228\n\017minimum_backoff\030\001 \001(\0132\031.google.p" + - "rotobuf.DurationB\004\342A\001\001\0228\n\017maximum_backof" + - "f\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" + - "\"X\n\020DeadLetterPolicy\022\037\n\021dead_letter_topi" + - "c\030\001 \001(\tB\004\342A\001\001\022#\n\025max_delivery_attempts\030\002" + - " \001(\005B\004\342A\001\001\"@\n\020ExpirationPolicy\022,\n\003ttl\030\001 " + - "\001(\0132\031.google.protobuf.DurationB\004\342A\001\001\"\242\004\n" + - "\nPushConfig\022\033\n\rpush_endpoint\030\001 \001(\tB\004\342A\001\001" + - "\022F\n\nattributes\030\002 \003(\0132,.google.pubsub.v1." + - "PushConfig.AttributesEntryB\004\342A\001\001\022B\n\noidc" + - "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" + - "ig.OidcTokenB\004\342A\001\001H\000\022J\n\016pubsub_wrapper\030\004" + - " \001(\0132*.google.pubsub.v1.PushConfig.Pubsu" + - "bWrapperB\004\342A\001\001H\001\022B\n\nno_wrapper\030\005 \001(\0132&.g" + - "oogle.pubsub.v1.PushConfig.NoWrapperB\004\342A" + - "\001\001H\001\032H\n\tOidcToken\022#\n\025service_account_ema" + - "il\030\001 \001(\tB\004\342A\001\001\022\026\n\010audience\030\002 \001(\tB\004\342A\001\001\032\017" + - "\n\rPubsubWrapper\032)\n\tNoWrapper\022\034\n\016write_me" + - "tadata\030\001 \001(\010B\004\342A\001\001\0321\n\017AttributesEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authent" + - "ication_methodB\t\n\007wrapper\"\360\002\n\016BigQueryCo" + - "nfig\022\023\n\005table\030\001 \001(\tB\004\342A\001\001\022\036\n\020use_topic_s" + - "chema\030\002 \001(\010B\004\342A\001\001\022\034\n\016write_metadata\030\003 \001(" + - "\010B\004\342A\001\001\022!\n\023drop_unknown_fields\030\004 \001(\010B\004\342A" + - "\001\001\022;\n\005state\030\005 \001(\0162&.google.pubsub.v1.Big" + - "QueryConfig.StateB\004\342A\001\003\022\036\n\020use_table_sch" + - "ema\030\006 \001(\010B\004\342A\001\001\"\212\001\n\005State\022\025\n\021STATE_UNSPE" + - "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIE" + - "D\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022" + - "#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\327\004\n" + - "\022CloudStorageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001" + - "\002\022\035\n\017filename_prefix\030\002 \001(\tB\004\342A\001\001\022\035\n\017file" + - "name_suffix\030\003 \001(\tB\004\342A\001\001\022L\n\013text_config\030\004" + - " \001(\0132/.google.pubsub.v1.CloudStorageConf" + - "ig.TextConfigB\004\342A\001\001H\000\022L\n\013avro_config\030\005 \001" + - "(\0132/.google.pubsub.v1.CloudStorageConfig" + - ".AvroConfigB\004\342A\001\001H\000\0225\n\014max_duration\030\006 \001(" + - "\0132\031.google.protobuf.DurationB\004\342A\001\001\022\027\n\tma" + - "x_bytes\030\007 \001(\003B\004\342A\001\001\022?\n\005state\030\t \001(\0162*.goo" + - "gle.pubsub.v1.CloudStorageConfig.StateB\004" + - "\342A\001\003\032\014\n\nTextConfig\032*\n\nAvroConfig\022\034\n\016writ" + - "e_metadata\030\001 \001(\010B\004\342A\001\001\"u\n\005State\022\025\n\021STATE" + - "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION" + - "_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_L" + - "OCATION_RESTRICTION\020\004B\017\n\routput_format\"\177" + - "\n\017ReceivedMessage\022\024\n\006ack_id\030\001 \001(\tB\004\342A\001\001\022" + - "6\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pubs" + - "ubMessageB\004\342A\001\001\022\036\n\020delivery_attempt\030\003 \001(" + - "\005B\004\342A\001\001\"[\n\026GetSubscriptionRequest\022A\n\014sub" + - "scription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googlea" + - "pis.com/Subscription\"\216\001\n\031UpdateSubscript" + - "ionRequest\022:\n\014subscription\030\001 \001(\0132\036.googl" + - "e.pubsub.v1.SubscriptionB\004\342A\001\002\0225\n\013update" + - "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + - "\004\342A\001\002\"\224\001\n\030ListSubscriptionsRequest\022E\n\007pr" + - "oject\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanag" + - "er.googleapis.com/Project\022\027\n\tpage_size\030\002" + - " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"w\n\031" + - "ListSubscriptionsResponse\022;\n\rsubscriptio" + - "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" + - "B\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"^\n" + - "\031DeleteSubscriptionRequest\022A\n\014subscripti" + - "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" + - "/Subscription\"\225\001\n\027ModifyPushConfigReques" + - "t\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub" + - ".googleapis.com/Subscription\0227\n\013push_con" + - "fig\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB" + - "\004\342A\001\002\"\220\001\n\013PullRequest\022A\n\014subscription\030\001 " + - "\001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subs" + - "cription\022\"\n\022return_immediately\030\002 \001(\010B\006\030\001" + - "\342A\001\001\022\032\n\014max_messages\030\003 \001(\005B\004\342A\001\002\"R\n\014Pull" + - "Response\022B\n\021received_messages\030\001 \003(\0132!.go" + - "ogle.pubsub.v1.ReceivedMessageB\004\342A\001\001\"\230\001\n" + - "\030ModifyAckDeadlineRequest\022A\n\014subscriptio" + - "n\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/" + - "Subscription\022\025\n\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024a" + - "ck_deadline_seconds\030\003 \001(\005B\004\342A\001\002\"n\n\022Ackno" + - "wledgeRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001" + - "\002\372A$\n\"pubsub.googleapis.com/Subscription" + - "\022\025\n\007ack_ids\030\002 \003(\tB\004\342A\001\002\"\317\002\n\024StreamingPul" + - "lRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" + - "\"pubsub.googleapis.com/Subscription\022\025\n\007a" + - "ck_ids\030\002 \003(\tB\004\342A\001\001\022%\n\027modify_deadline_se" + - "conds\030\003 \003(\005B\004\342A\001\001\022%\n\027modify_deadline_ack" + - "_ids\030\004 \003(\tB\004\342A\001\001\022)\n\033stream_ack_deadline_" + - "seconds\030\005 \001(\005B\004\342A\001\002\022\027\n\tclient_id\030\006 \001(\tB\004" + - "\342A\001\001\022&\n\030max_outstanding_messages\030\007 \001(\003B\004" + - "\342A\001\001\022#\n\025max_outstanding_bytes\030\010 \001(\003B\004\342A\001" + - "\001\"\253\006\n\025StreamingPullResponse\022B\n\021received_" + - "messages\030\001 \003(\0132!.google.pubsub.v1.Receiv" + - "edMessageB\004\342A\001\001\022g\n\030acknowledge_confirmat" + - "ion\030\005 \001(\0132?.google.pubsub.v1.StreamingPu" + - "llResponse.AcknowledgeConfirmationB\004\342A\001\001" + - "\022u\n modify_ack_deadline_confirmation\030\003 \001" + - "(\0132E.google.pubsub.v1.StreamingPullRespo" + - "nse.ModifyAckDeadlineConfirmationB\004\342A\001\001\022" + - "e\n\027subscription_properties\030\004 \001(\0132>.googl" + - "e.pubsub.v1.StreamingPullResponse.Subscr" + - "iptionPropertiesB\004\342A\001\001\032\230\001\n\027AcknowledgeCo" + - "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" + - "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022\037\n\021unordered_ac" + - "k_ids\030\003 \003(\tB\004\342A\001\001\022&\n\030temporary_failed_ac" + - "k_ids\030\004 \003(\tB\004\342A\001\001\032}\n\035ModifyAckDeadlineCo" + - "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" + - "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022&\n\030temporary_fa" + - "iled_ack_ids\030\003 \003(\tB\004\342A\001\001\032m\n\026Subscription" + - "Properties\022+\n\035exactly_once_delivery_enab" + - "led\030\001 \001(\010B\004\342A\001\001\022&\n\030message_ordering_enab" + - "led\030\002 \001(\010B\004\342A\001\001\"\213\002\n\025CreateSnapshotReques" + - "t\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googlea" + - "pis.com/Snapshot\022A\n\014subscription\030\002 \001(\tB+" + - "\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscript" + - "ion\022I\n\006labels\030\003 \003(\01323.google.pubsub.v1.C" + - "reateSnapshotRequest.LabelsEntryB\004\342A\001\001\032-" + - "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + - "\t:\0028\001\"\202\001\n\025UpdateSnapshotRequest\0222\n\010snaps" + - "hot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\004\342" + - "A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protob" + - "uf.FieldMaskB\004\342A\001\002\"\305\002\n\010Snapshot\022\022\n\004name\030" + - "\001 \001(\tB\004\342A\001\001\0223\n\005topic\030\002 \001(\tB$\342A\001\001\372A\035\n\033pub" + - "sub.googleapis.com/Topic\0225\n\013expire_time\030" + - "\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\022" + - "<\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Snaps" + - "hot.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsu" + - "b.googleapis.com/Snapshot\022\'projects/{pro" + - "ject}/snapshots/{snapshot}\"O\n\022GetSnapsho" + - "tRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pub" + - "sub.googleapis.com/Snapshot\"\220\001\n\024ListSnap" + - "shotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+" + - "cloudresourcemanager.googleapis.com/Proj" + - "ect\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + - "en\030\003 \001(\tB\004\342A\001\001\"k\n\025ListSnapshotsResponse\022" + - "3\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" + - "apshotB\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342" + - "A\001\001\"R\n\025DeleteSnapshotRequest\0229\n\010snapshot" + - "\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com/S" + - "napshot\"\311\001\n\013SeekRequest\022A\n\014subscription\030" + - "\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Su" + - "bscription\0220\n\004time\030\002 \001(\0132\032.google.protob" + - "uf.TimestampB\004\342A\001\001H\000\022;\n\010snapshot\030\003 \001(\tB\'" + - "\342A\001\001\372A \n\036pubsub.googleapis.com/SnapshotH" + - "\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublishe" + - "r\022q\n\013CreateTopic\022\027.google.pubsub.v1.Topi" + - "c\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.UpdateTo" + - "picRequest\032\027.google.pubsub.v1.Topic\"C\332A\021" + - "topic,update_mask\202\323\344\223\002)2$/v1/{topic.name" + - "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" + - "oogle.pubsub.v1.PublishRequest\032!.google." + - "pubsub.v1.PublishResponse\"C\332A\016topic,mess" + - "ages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + - "/*}:publish:\001*\022w\n\010GetTopic\022!.google.pubs" + - "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + - ".Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=proje" + - "cts/*/topics/*}\022\212\001\n\nListTopics\022#.google." + - "pubsub.v1.ListTopicsRequest\032$.google.pub" + - "sub.v1.ListTopicsResponse\"1\332A\007project\202\323\344" + - "\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + - "\026ListTopicSubscriptions\022/.google.pubsub." + - "v1.ListTopicSubscriptionsRequest\0320.googl" + - "e.pubsub.v1.ListTopicSubscriptionsRespon" + - "se\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/" + - "*/topics/*}/subscriptions\022\252\001\n\022ListTopicS" + - "napshots\022+.google.pubsub.v1.ListTopicSna" + - "pshotsRequest\032,.google.pubsub.v1.ListTop" + - "icSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1" + - "/{topic=projects/*/topics/*}/snapshots\022|" + - "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" + - "opicRequest\032\026.google.protobuf.Empty\"/\332A\005" + - "topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topic" + - "s/*}\022\255\001\n\022DetachSubscription\022+.google.pub" + - "sub.v1.DetachSubscriptionRequest\032,.googl" + - "e.pubsub.v1.DetachSubscriptionResponse\"<" + - "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" + - "scriptions/*}:detach\032p\312A\025pubsub.googleap" + - "is.com\322AUhttps://www.googleapis.com/auth" + - "/cloud-platform,https://www.googleapis.c" + - "om/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Create" + - "Subscription\022\036.google.pubsub.v1.Subscrip" + - "tion\032\036.google.pubsub.v1.Subscription\"^\332A" + - "+name,topic,push_config,ack_deadline_sec" + - "onds\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" + - "ptions/*}:\001*\022\241\001\n\017GetSubscription\022(.googl" + - "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" + - "gle.pubsub.v1.Subscription\"D\332A\014subscript" + - "ion\202\323\344\223\002/\022-/v1/{subscription=projects/*/" + - "subscriptions/*}\022\273\001\n\022UpdateSubscription\022" + - "+.google.pubsub.v1.UpdateSubscriptionReq" + - "uest\032\036.google.pubsub.v1.Subscription\"X\332A" + - "\030subscription,update_mask\202\323\344\223\002722/v1/{su" + - "bscription.name=projects/*/subscriptions" + - "/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google.pu" + - "bsub.v1.ListSubscriptionsRequest\032+.googl" + - "e.pubsub.v1.ListSubscriptionsResponse\"8\332" + - "A\007project\202\323\344\223\002(\022&/v1/{project=projects/*" + - "}/subscriptions\022\237\001\n\022DeleteSubscription\022+" + - ".google.pubsub.v1.DeleteSubscriptionRequ" + - "est\032\026.google.protobuf.Empty\"D\332A\014subscrip" + - "tion\202\323\344\223\002/*-/v1/{subscription=projects/*" + - "/subscriptions/*}\022\317\001\n\021ModifyAckDeadline\022" + - "*.google.pubsub.v1.ModifyAckDeadlineRequ" + - "est\032\026.google.protobuf.Empty\"v\332A)subscrip" + - "tion,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"" + - "?/v1/{subscription=projects/*/subscripti" + - "ons/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowle" + - "dge\022$.google.pubsub.v1.AcknowledgeReques" + - "t\032\026.google.protobuf.Empty\"[\332A\024subscripti" + - "on,ack_ids\202\323\344\223\002>\"9/v1/{subscription=proj" + - "ects/*/subscriptions/*}:acknowledge:\001*\022\320" + - "\001\n\004Pull\022\035.google.pubsub.v1.PullRequest\032\036" + - ".google.pubsub.v1.PullResponse\"\210\001\332A,subs" + - "cription,return_immediately,max_messages" + - "\332A\031subscription,max_messages\202\323\344\223\0027\"2/v1/" + - "{subscription=projects/*/subscriptions/*" + - "}:pull:\001*\022f\n\rStreamingPull\022&.google.pubs" + - "ub.v1.StreamingPullRequest\032\'.google.pubs" + - "ub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Mo" + - "difyPushConfig\022).google.pubsub.v1.Modify" + - "PushConfigRequest\032\026.google.protobuf.Empt" + - "y\"d\332A\030subscription,push_config\202\323\344\223\002C\">/v" + - "1/{subscription=projects/*/subscriptions" + - "/*}:modifyPushConfig:\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/{snapshot=projects/*/snapshots" + - "/*}\022\226\001\n\rListSnapshots\022&.google.pubsub.v1" + - ".ListSnapshotsRequest\032\'.google.pubsub.v1" + - ".ListSnapshotsResponse\"4\332A\007project\202\323\344\223\002$" + - "\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + - "\016CreateSnapshot\022\'.google.pubsub.v1.Creat" + - "eSnapshotRequest\032\032.google.pubsub.v1.Snap" + - "shot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{n" + - "ame=projects/*/snapshots/*}:\001*\022\243\001\n\016Updat" + - "eSnapshot\022\'.google.pubsub.v1.UpdateSnaps" + - "hotRequest\032\032.google.pubsub.v1.Snapshot\"L" + - "\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{snap" + - "shot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + - "\016DeleteSnapshot\022\'.google.pubsub.v1.Delet" + - "eSnapshotRequest\032\026.google.protobuf.Empty" + - "\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=proje" + - "cts/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pub" + - "sub.v1.SeekRequest\032\036.google.pubsub.v1.Se" + - "ekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=pr" + - "ojects/*/subscriptions/*}:seek:\001*\032p\312A\025pu" + - "bsub.googleapis.com\322AUhttps://www.google" + - "apis.com/auth/cloud-platform,https://www" + - ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" + - "le.pubsub.v1B\013PubsubProtoP\001Z2cloud.googl" + - "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" + - "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" + - "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.pubsub.v1.SchemaProto.getDescriptor(), - }); - internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor, - new java.lang.String[] { "AllowedPersistenceRegions", "EnforceInTransit", }); - internal_static_google_pubsub_v1_SchemaSettings_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_SchemaSettings_descriptor, - new java.lang.String[] { "Schema", "Encoding", "FirstRevisionId", "LastRevisionId", }); - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, - new java.lang.String[] { "AwsKinesis", "Source", }); - internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor, - new java.lang.String[] { "State", "StreamArn", "ConsumerArn", "AwsRoleArn", "GcpServiceAccount", }); - internal_static_google_pubsub_v1_Topic_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Topic_descriptor, - new java.lang.String[] { "Name", "Labels", "MessageStoragePolicy", "KmsKeyName", "SchemaSettings", "SatisfiesPzs", "MessageRetentionDuration", "State", "IngestionDataSourceSettings", }); - internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PubsubMessage_descriptor, - new java.lang.String[] { "Data", "Attributes", "MessageId", "PublishTime", "OrderingKey", }); - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor = - internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_GetTopicRequest_descriptor, - new java.lang.String[] { "Topic", }); - internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, - new java.lang.String[] { "Topic", "UpdateMask", }); - internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PublishRequest_descriptor, - new java.lang.String[] { "Topic", "Messages", }); - internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PublishResponse_descriptor, - new java.lang.String[] { "MessageIds", }); - internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, - new java.lang.String[] { "Project", "PageSize", "PageToken", }); - internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, - new java.lang.String[] { "Topics", "NextPageToken", }); - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, - new java.lang.String[] { "Topic", "PageSize", "PageToken", }); - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, - new java.lang.String[] { "Subscriptions", "NextPageToken", }); - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, - new java.lang.String[] { "Topic", "PageSize", "PageToken", }); - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, - new java.lang.String[] { "Snapshots", "NextPageToken", }); - internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, - new java.lang.String[] { "Topic", }); - internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, - new java.lang.String[] { "Subscription", }); - internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Subscription_descriptor, - new java.lang.String[] { "Name", "Topic", "PushConfig", "BigqueryConfig", "CloudStorageConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", "Labels", "EnableMessageOrdering", "ExpirationPolicy", "Filter", "DeadLetterPolicy", "RetryPolicy", "Detached", "EnableExactlyOnceDelivery", "TopicMessageRetentionDuration", "State", }); - internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_RetryPolicy_descriptor, - new java.lang.String[] { "MinimumBackoff", "MaximumBackoff", }); - internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, - new java.lang.String[] { "DeadLetterTopic", "MaxDeliveryAttempts", }); - internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, - new java.lang.String[] { "Ttl", }); - internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_descriptor, - new java.lang.String[] { "PushEndpoint", "Attributes", "OidcToken", "PubsubWrapper", "NoWrapper", "AuthenticationMethod", "Wrapper", }); - internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor, - new java.lang.String[] { "ServiceAccountEmail", "Audience", }); - internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); - internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor, - new java.lang.String[] { }); - internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(2); - internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor, - new java.lang.String[] { "WriteMetadata", }); - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(3); - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_BigQueryConfig_descriptor, - new java.lang.String[] { "Table", "UseTopicSchema", "WriteMetadata", "DropUnknownFields", "State", "UseTableSchema", }); - internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, - new java.lang.String[] { "Bucket", "FilenamePrefix", "FilenameSuffix", "TextConfig", "AvroConfig", "MaxDuration", "MaxBytes", "State", "OutputFormat", }); - internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor = - internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor, - new java.lang.String[] { }); - internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor = - internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedTypes().get(1); - internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor, - new java.lang.String[] { "WriteMetadata", }); - internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ReceivedMessage_descriptor, - new java.lang.String[] { "AckId", "Message", "DeliveryAttempt", }); - internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, - new java.lang.String[] { "Subscription", }); - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, - new java.lang.String[] { "Subscription", "UpdateMask", }); - internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, - new java.lang.String[] { "Project", "PageSize", "PageToken", }); - internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, - new java.lang.String[] { "Subscriptions", "NextPageToken", }); - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, - new java.lang.String[] { "Subscription", }); - internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, - new java.lang.String[] { "Subscription", "PushConfig", }); - internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PullRequest_descriptor, - new java.lang.String[] { "Subscription", "ReturnImmediately", "MaxMessages", }); - internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PullResponse_descriptor, - new java.lang.String[] { "ReceivedMessages", }); - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, - new java.lang.String[] { "Subscription", "AckIds", "AckDeadlineSeconds", }); - internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, - new java.lang.String[] { "Subscription", "AckIds", }); - internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, - new java.lang.String[] { "Subscription", "AckIds", "ModifyDeadlineSeconds", "ModifyDeadlineAckIds", "StreamAckDeadlineSeconds", "ClientId", "MaxOutstandingMessages", "MaxOutstandingBytes", }); - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, - new java.lang.String[] { "ReceivedMessages", "AcknowledgeConfirmation", "ModifyAckDeadlineConfirmation", "SubscriptionProperties", }); - internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor = - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor, - new java.lang.String[] { "AckIds", "InvalidAckIds", "UnorderedAckIds", "TemporaryFailedAckIds", }); - internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor = - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(1); - internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor, - new java.lang.String[] { "AckIds", "InvalidAckIds", "TemporaryFailedAckIds", }); - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor = - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(2); - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor, - new java.lang.String[] { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, - new java.lang.String[] { "Name", "Subscription", "Labels", }); - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, - new java.lang.String[] { "Snapshot", "UpdateMask", }); - internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Snapshot_descriptor, - new java.lang.String[] { "Name", "Topic", "ExpireTime", "Labels", }); - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, - new java.lang.String[] { "Snapshot", }); - internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, - new java.lang.String[] { "Project", "PageSize", "PageToken", }); - internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, - new java.lang.String[] { "Snapshots", "NextPageToken", }); - internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, - new java.lang.String[] { "Snapshot", }); - internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_SeekRequest_descriptor, - new java.lang.String[] { "Subscription", "Time", "Snapshot", "Target", }); - internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_SeekResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.pubsub.v1.SchemaProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java deleted file mode 100644 index 97055beae..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ /dev/null @@ -1,329 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public final class SchemaProto { - private SchemaProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Schema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Schema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035google/pubsub/v1/schema.proto\022\020google." + - "pubsub.v1\032\034google/api/annotations.proto\032" + - "\027google/api/client.proto\032\037google/api/fie" + - "ld_behavior.proto\032\031google/api/resource.p" + - "roto\032\033google/protobuf/empty.proto\032\037googl" + - "e/protobuf/timestamp.proto\"\276\002\n\006Schema\022\022\n" + - "\004name\030\001 \001(\tB\004\342A\001\002\022+\n\004type\030\002 \001(\0162\035.google" + - ".pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001" + - "(\t\022\032\n\013revision_id\030\004 \001(\tB\005\342A\002\005\003\022>\n\024revisi" + - "on_create_time\030\006 \001(\0132\032.google.protobuf.T" + - "imestampB\004\342A\001\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFI" + - "ED\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC" + - "\n\034pubsub.googleapis.com/Schema\022#projects" + - "/{project}/schemas/{schema}\"\217\001\n\023CreateSc" + - "hemaRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\022\034pu" + - "bsub.googleapis.com/Schema\022.\n\006schema\030\002 \001" + - "(\0132\030.google.pubsub.v1.SchemaB\004\342A\001\002\022\021\n\tsc" + - "hema_id\030\003 \001(\t\"s\n\020GetSchemaRequest\0223\n\004nam" + - "e\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/" + - "Schema\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1." + - "SchemaView\"\255\001\n\022ListSchemasRequest\022D\n\006par" + - "ent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager" + - ".googleapis.com/Project\022*\n\004view\030\002 \001(\0162\034." + - "google.pubsub.v1.SchemaView\022\021\n\tpage_size" + - "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchema" + - "sResponse\022)\n\007schemas\030\001 \003(\0132\030.google.pubs" + - "ub.v1.Schema\022\027\n\017next_page_token\030\002 \001(\t\"\244\001" + - "\n\032ListSchemaRevisionsRequest\0223\n\004name\030\001 \001" + - "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" + - "a\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Schem" + - "aView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004" + - " \001(\t\"a\n\033ListSchemaRevisionsResponse\022)\n\007s" + - "chemas\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027" + - "\n\017next_page_token\030\002 \001(\t\"z\n\023CommitSchemaR" + - "equest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.go" + - "ogleapis.com/Schema\022.\n\006schema\030\002 \001(\0132\030.go" + - "ogle.pubsub.v1.SchemaB\004\342A\001\002\"g\n\025RollbackS" + - "chemaRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pub" + - "sub.googleapis.com/Schema\022\031\n\013revision_id" + - "\030\002 \001(\tB\004\342A\001\002\"o\n\033DeleteSchemaRevisionRequ" + - "est\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googl" + - "eapis.com/Schema\022\033\n\013revision_id\030\002 \001(\tB\006\030" + - "\001\342A\001\001\"J\n\023DeleteSchemaRequest\0223\n\004name\030\001 \001" + - "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" + - "a\"\215\001\n\025ValidateSchemaRequest\022D\n\006parent\030\001 " + - "\001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.googl" + - "eapis.com/Project\022.\n\006schema\030\002 \001(\0132\030.goog" + - "le.pubsub.v1.SchemaB\004\342A\001\002\"\030\n\026ValidateSch" + - "emaResponse\"\213\002\n\026ValidateMessageRequest\022D" + - "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + - "nager.googleapis.com/Project\0221\n\004name\030\002 \001" + - "(\tB!\372A\036\n\034pubsub.googleapis.com/SchemaH\000\022" + - "*\n\006schema\030\003 \001(\0132\030.google.pubsub.v1.Schem" + - "aH\000\022\017\n\007message\030\004 \001(\014\022,\n\010encoding\030\005 \001(\0162\032" + - ".google.pubsub.v1.EncodingB\r\n\013schema_spe" + - "c\"\031\n\027ValidateMessageResponse*>\n\nSchemaVi" + - "ew\022\033\n\027SCHEMA_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC" + - "\020\001\022\010\n\004FULL\020\002*:\n\010Encoding\022\030\n\024ENCODING_UNS" + - "PECIFIED\020\000\022\010\n\004JSON\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSch" + - "emaService\022\232\001\n\014CreateSchema\022%.google.pub" + - "sub.v1.CreateSchemaRequest\032\030.google.pubs" + - "ub.v1.Schema\"I\332A\027parent,schema,schema_id" + - "\202\323\344\223\002)\"\037/v1/{parent=projects/*}/schemas:" + - "\006schema\022y\n\tGetSchema\022\".google.pubsub.v1." + - "GetSchemaRequest\032\030.google.pubsub.v1.Sche" + - "ma\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=projects/*/" + - "schemas/*}\022\214\001\n\013ListSchemas\022$.google.pubs" + - "ub.v1.ListSchemasRequest\032%.google.pubsub" + - ".v1.ListSchemasResponse\"0\332A\006parent\202\323\344\223\002!" + - "\022\037/v1/{parent=projects/*}/schemas\022\260\001\n\023Li" + - "stSchemaRevisions\022,.google.pubsub.v1.Lis" + - "tSchemaRevisionsRequest\032-.google.pubsub." + - "v1.ListSchemaRevisionsResponse\"<\332A\004name\202" + - "\323\344\223\002/\022-/v1/{name=projects/*/schemas/*}:l" + - "istRevisions\022\220\001\n\014CommitSchema\022%.google.p" + - "ubsub.v1.CommitSchemaRequest\032\030.google.pu" + - "bsub.v1.Schema\"?\332A\013name,schema\202\323\344\223\002+\"&/v" + - "1/{name=projects/*/schemas/*}:commit:\001*\022" + - "\233\001\n\016RollbackSchema\022\'.google.pubsub.v1.Ro" + - "llbackSchemaRequest\032\030.google.pubsub.v1.S" + - "chema\"F\332A\020name,revision_id\202\323\344\223\002-\"(/v1/{n" + - "ame=projects/*/schemas/*}:rollback:\001*\022\252\001" + - "\n\024DeleteSchemaRevision\022-.google.pubsub.v" + - "1.DeleteSchemaRevisionRequest\032\030.google.p" + - "ubsub.v1.Schema\"I\332A\020name,revision_id\202\323\344\223" + - "\0020*./v1/{name=projects/*/schemas/*}:dele" + - "teRevision\022}\n\014DeleteSchema\022%.google.pubs" + - "ub.v1.DeleteSchemaRequest\032\026.google.proto" + - "buf.Empty\".\332A\004name\202\323\344\223\002!*\037/v1/{name=proj" + - "ects/*/schemas/*}\022\250\001\n\016ValidateSchema\022\'.g" + - "oogle.pubsub.v1.ValidateSchemaRequest\032(." + - "google.pubsub.v1.ValidateSchemaResponse\"" + - "C\332A\rparent,schema\202\323\344\223\002-\"(/v1/{parent=pro" + - "jects/*}/schemas:validate:\001*\022\242\001\n\017Validat" + - "eMessage\022(.google.pubsub.v1.ValidateMess" + - "ageRequest\032).google.pubsub.v1.ValidateMe" + - "ssageResponse\":\202\323\344\223\0024\"//v1/{parent=proje" + - "cts/*}/schemas:validateMessage:\001*\032p\312A\025pu" + - "bsub.googleapis.com\322AUhttps://www.google" + - "apis.com/auth/cloud-platform,https://www" + - ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" + - "le.pubsub.v1B\013SchemaProtoP\001Z2cloud.googl" + - "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" + - "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" + - "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_pubsub_v1_Schema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_pubsub_v1_Schema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Schema_descriptor, - new java.lang.String[] { "Name", "Type", "Definition", "RevisionId", "RevisionCreateTime", }); - internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor, - new java.lang.String[] { "Parent", "Schema", "SchemaId", }); - internal_static_google_pubsub_v1_GetSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_GetSchemaRequest_descriptor, - new java.lang.String[] { "Name", "View", }); - internal_static_google_pubsub_v1_ListSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSchemasRequest_descriptor, - new java.lang.String[] { "Parent", "View", "PageSize", "PageToken", }); - internal_static_google_pubsub_v1_ListSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSchemasResponse_descriptor, - new java.lang.String[] { "Schemas", "NextPageToken", }); - internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor, - new java.lang.String[] { "Name", "View", "PageSize", "PageToken", }); - internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor, - new java.lang.String[] { "Schemas", "NextPageToken", }); - internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor, - new java.lang.String[] { "Name", "Schema", }); - internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor, - new java.lang.String[] { "Name", "RevisionId", }); - internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor, - new java.lang.String[] { "Name", "RevisionId", }); - internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor, - new java.lang.String[] { "Parent", "Schema", }); - internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor, - new java.lang.String[] { "Parent", "Name", "Schema", "Message", "Encoding", "SchemaSpec", }); - internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java deleted file mode 100644 index ae4fa9058..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface SeekResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java deleted file mode 100644 index 82b8a6c7b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ /dev/null @@ -1,141 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface StreamingPullResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. Received Pub/Sub messages. This will not be empty.
-   * 
- * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getReceivedMessagesList(); - /** - *
-   * Optional. Received Pub/Sub messages. This will not be empty.
-   * 
- * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); - /** - *
-   * Optional. Received Pub/Sub messages. This will not be empty.
-   * 
- * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getReceivedMessagesCount(); - /** - *
-   * Optional. Received Pub/Sub messages. This will not be empty.
-   * 
- * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getReceivedMessagesOrBuilderList(); - /** - *
-   * Optional. Received Pub/Sub messages. This will not be empty.
-   * 
- * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index); - - /** - *
-   * Optional. This field will only be set if `enable_exactly_once_delivery` is
-   * set to `true`.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the acknowledgeConfirmation field is set. - */ - boolean hasAcknowledgeConfirmation(); - /** - *
-   * Optional. This field will only be set if `enable_exactly_once_delivery` is
-   * set to `true`.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The acknowledgeConfirmation. - */ - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation(); - /** - *
-   * Optional. This field will only be set if `enable_exactly_once_delivery` is
-   * set to `true`.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder(); - - /** - *
-   * Optional. This field will only be set if `enable_exactly_once_delivery` is
-   * set to `true`.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the modifyAckDeadlineConfirmation field is set. - */ - boolean hasModifyAckDeadlineConfirmation(); - /** - *
-   * Optional. This field will only be set if `enable_exactly_once_delivery` is
-   * set to `true`.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The modifyAckDeadlineConfirmation. - */ - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation(); - /** - *
-   * Optional. This field will only be set if `enable_exactly_once_delivery` is
-   * set to `true`.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder(); - - /** - *
-   * Optional. Properties associated with this subscription.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the subscriptionProperties field is set. - */ - boolean hasSubscriptionProperties(); - /** - *
-   * Optional. Properties associated with this subscription.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The subscriptionProperties. - */ - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties(); - /** - *
-   * Optional. Properties associated with this subscription.
-   * 
- * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java deleted file mode 100644 index 7ee9be330..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface ValidateMessageResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java deleted file mode 100644 index 9a5cccc40..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -// Protobuf Java Version: 3.25.2 -package com.google.pubsub.v1; - -public interface ValidateSchemaResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index b7bccf5a3..7d02c1dae 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,57 +20,66 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the Acknowledge method.
  * 
* * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} */ -public final class AcknowledgeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AcknowledgeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.AcknowledgeRequest) AcknowledgeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AcknowledgeRequest.newBuilder() to construct. private AcknowledgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AcknowledgeRequest() { subscription_ = ""; - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AcknowledgeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.AcknowledgeRequest.class, com.google.pubsub.v1.AcknowledgeRequest.Builder.class); + com.google.pubsub.v1.AcknowledgeRequest.class, + com.google.pubsub.v1.AcknowledgeRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The subscription whose message is being acknowledged.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -64,30 +88,32 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The subscription whose message is being acknowledged.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -96,10 +122,13 @@ public java.lang.String getSubscription() { } public static final int ACK_IDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -107,13 +136,15 @@ public java.lang.String getSubscription() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -121,12 +152,15 @@ public java.lang.String getSubscription() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -134,6 +168,7 @@ public int getAckIdsCount() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -141,6 +176,8 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -148,15 +185,16 @@ public java.lang.String getAckIds(int index) {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -204,17 +241,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.AcknowledgeRequest)) { return super.equals(obj); } com.google.pubsub.v1.AcknowledgeRequest other = (com.google.pubsub.v1.AcknowledgeRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; - if (!getAckIdsList() - .equals(other.getAckIdsList())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,146 +272,149 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.AcknowledgeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.AcknowledgeRequest 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.AcknowledgeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.AcknowledgeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the Acknowledge method.
    * 
* * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AcknowledgeRequest) com.google.pubsub.v1.AcknowledgeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.AcknowledgeRequest.class, com.google.pubsub.v1.AcknowledgeRequest.Builder.class); + com.google.pubsub.v1.AcknowledgeRequest.class, + com.google.pubsub.v1.AcknowledgeRequest.Builder.class); } // Construct using com.google.pubsub.v1.AcknowledgeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; subscription_ = ""; - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override @@ -395,8 +433,11 @@ public com.google.pubsub.v1.AcknowledgeRequest build() { @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { - com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.AcknowledgeRequest result = + new com.google.pubsub.v1.AcknowledgeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -416,38 +457,39 @@ private void buildPartial0(com.google.pubsub.v1.AcknowledgeRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.AcknowledgeRequest) { - return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); + return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest) other); } else { super.mergeFrom(other); return this; @@ -497,23 +539,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAckIdsIsMutable(); - ackIds_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAckIdsIsMutable(); + ackIds_.add(s); + break; + } // case 18 + 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) { @@ -523,23 +568,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -548,21 +598,24 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -570,30 +623,41 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -603,18 +667,24 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -624,6 +694,7 @@ public Builder setSubscriptionBytes( private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAckIdsIsMutable() { if (!ackIds_.isModifiable()) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); @@ -631,6 +702,8 @@ private void ensureAckIdsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -638,14 +711,16 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -653,12 +728,15 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -666,6 +744,7 @@ public int getAckIdsCount() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -673,6 +752,8 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -680,14 +761,16 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -695,13 +778,15 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.set(index, value); bitField0_ |= 0x00000002; @@ -709,6 +794,8 @@ public Builder setAckIds( return this; } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -716,12 +803,14 @@ public Builder setAckIds(
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.add(value); bitField0_ |= 0x00000002; @@ -729,6 +818,8 @@ public Builder addAckIds( return this; } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -736,19 +827,20 @@ public Builder addAckIds(
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The ackIds to add. * @return This builder for chaining. */ - public Builder addAllAckIds( - java.lang.Iterable values) { + public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -756,16 +848,19 @@ public Builder addAllAckIds(
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -773,12 +868,14 @@ public Builder clearAckIds() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); @@ -786,9 +883,9 @@ public Builder addAckIdsBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -798,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AcknowledgeRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.AcknowledgeRequest) private static final com.google.pubsub.v1.AcknowledgeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.AcknowledgeRequest(); } @@ -812,27 +909,27 @@ public static com.google.pubsub.v1.AcknowledgeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeRequest 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; @@ -847,6 +944,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index f2b865d40..47b7ef171 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface AcknowledgeRequestOrBuilder extends +public interface AcknowledgeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AcknowledgeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The subscription whose message is being acknowledged.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * Required. The subscription whose message is being acknowledged.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -38,11 +65,13 @@ public interface AcknowledgeRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ackIds. */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -50,10 +79,13 @@ public interface AcknowledgeRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ackIds. */ int getAckIdsCount(); /** + * + * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -61,11 +93,14 @@ public interface AcknowledgeRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** + * + * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -73,9 +108,9 @@ public interface AcknowledgeRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - com.google.protobuf.ByteString - getAckIdsBytes(int index); + com.google.protobuf.ByteString getAckIdsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index f8499efe4..4ada79896 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Configuration for a BigQuery subscription.
  * 
* * Protobuf type {@code google.pubsub.v1.BigQueryConfig} */ -public final class BigQueryConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigQueryConfig) BigQueryConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryConfig.newBuilder() to construct. private BigQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BigQueryConfig() { table_ = ""; state_ = 0; @@ -27,34 +45,38 @@ private BigQueryConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_BigQueryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.BigQueryConfig.class, com.google.pubsub.v1.BigQueryConfig.Builder.class); + com.google.pubsub.v1.BigQueryConfig.class, + com.google.pubsub.v1.BigQueryConfig.Builder.class); } /** + * + * *
    * Possible states for a BigQuery subscription.
    * 
* * Protobuf enum {@code google.pubsub.v1.BigQueryConfig.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -63,6 +85,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The subscription can actively send messages to BigQuery
      * 
@@ -71,6 +95,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Cannot write to the BigQuery table because of permission denied errors.
      * This can happen if
@@ -84,6 +110,8 @@ public enum State
      */
     PERMISSION_DENIED(2),
     /**
+     *
+     *
      * 
      * Cannot write to the BigQuery table because it does not exist.
      * 
@@ -92,6 +120,8 @@ public enum State */ NOT_FOUND(3), /** + * + * *
      * Cannot write to the BigQuery table due to a schema mismatch.
      * 
@@ -100,6 +130,8 @@ public enum State */ SCHEMA_MISMATCH(4), /** + * + * *
      * Cannot write to the destination because enforce_in_transit is set to true
      * and the destination locations are not in the allowed regions.
@@ -112,6 +144,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Default value. This value is unused.
      * 
@@ -120,6 +154,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The subscription can actively send messages to BigQuery
      * 
@@ -128,6 +164,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Cannot write to the BigQuery table because of permission denied errors.
      * This can happen if
@@ -141,6 +179,8 @@ public enum State
      */
     public static final int PERMISSION_DENIED_VALUE = 2;
     /**
+     *
+     *
      * 
      * Cannot write to the BigQuery table because it does not exist.
      * 
@@ -149,6 +189,8 @@ public enum State */ public static final int NOT_FOUND_VALUE = 3; /** + * + * *
      * Cannot write to the BigQuery table due to a schema mismatch.
      * 
@@ -157,6 +199,8 @@ public enum State */ public static final int SCHEMA_MISMATCH_VALUE = 4; /** + * + * *
      * Cannot write to the destination because enforce_in_transit is set to true
      * and the destination locations are not in the allowed regions.
@@ -166,7 +210,6 @@ public enum State
      */
     public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -191,52 +234,55 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return PERMISSION_DENIED;
-        case 3: return NOT_FOUND;
-        case 4: return SCHEMA_MISMATCH;
-        case 5: return IN_TRANSIT_LOCATION_RESTRICTION;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return PERMISSION_DENIED;
+        case 3:
+          return NOT_FOUND;
+        case 4:
+          return SCHEMA_MISMATCH;
+        case 5:
+          return IN_TRANSIT_LOCATION_RESTRICTION;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.pubsub.v1.BigQueryConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -254,15 +300,19 @@ private State(int value) {
   }
 
   public static final int TABLE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object table_ = "";
   /**
+   *
+   *
    * 
    * Optional. The name of the table to which to write data, of the form
    * {projectId}.{datasetId}.{tableId}
    * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The table. */ @java.lang.Override @@ -271,30 +321,30 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
    * Optional. The name of the table to which to write data, of the form
    * {projectId}.{datasetId}.{tableId}
    * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -305,6 +355,8 @@ public java.lang.String getTable() { public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; private boolean useTopicSchema_ = false; /** + * + * *
    * Optional. When true, use the topic's schema as the columns to write to in
    * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
@@ -312,6 +364,7 @@ public java.lang.String getTable() {
    * 
* * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The useTopicSchema. */ @java.lang.Override @@ -322,6 +375,8 @@ public boolean getUseTopicSchema() { public static final int WRITE_METADATA_FIELD_NUMBER = 3; private boolean writeMetadata_ = false; /** + * + * *
    * Optional. When true, write the subscription name, message_id, publish_time,
    * attributes, and ordering_key to additional columns in the table. The
@@ -331,6 +386,7 @@ public boolean getUseTopicSchema() {
    * 
* * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ @java.lang.Override @@ -341,6 +397,8 @@ public boolean getWriteMetadata() { public static final int DROP_UNKNOWN_FIELDS_FIELD_NUMBER = 4; private boolean dropUnknownFields_ = false; /** + * + * *
    * Optional. When true and use_topic_schema is true, any fields that are a
    * part of the topic schema that are not part of the BigQuery table schema are
@@ -350,6 +408,7 @@ public boolean getWriteMetadata() {
    * 
* * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dropUnknownFields. */ @java.lang.Override @@ -360,34 +419,49 @@ public boolean getDropUnknownFields() { public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** + * + * *
    * Output only. An output-only field that indicates whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. An output-only field that indicates whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.pubsub.v1.BigQueryConfig.State getState() { - com.google.pubsub.v1.BigQueryConfig.State result = com.google.pubsub.v1.BigQueryConfig.State.forNumber(state_); + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfig.State getState() { + com.google.pubsub.v1.BigQueryConfig.State result = + com.google.pubsub.v1.BigQueryConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; } public static final int USE_TABLE_SCHEMA_FIELD_NUMBER = 6; private boolean useTableSchema_ = false; /** + * + * *
    * Optional. When true, use the BigQuery table's schema as the columns to
    * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
@@ -395,6 +469,7 @@ public boolean getDropUnknownFields() {
    * 
* * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The useTableSchema. */ @java.lang.Override @@ -403,6 +478,7 @@ public boolean getUseTableSchema() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +490,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); } @@ -447,24 +522,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); } if (useTopicSchema_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, useTopicSchema_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useTopicSchema_); } if (writeMetadata_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, writeMetadata_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, writeMetadata_); } if (dropUnknownFields_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, dropUnknownFields_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dropUnknownFields_); } if (state_ != com.google.pubsub.v1.BigQueryConfig.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (useTableSchema_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, useTableSchema_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, useTableSchema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -474,24 +544,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.BigQueryConfig)) { return super.equals(obj); } com.google.pubsub.v1.BigQueryConfig other = (com.google.pubsub.v1.BigQueryConfig) obj; - if (!getTable() - .equals(other.getTable())) return false; - if (getUseTopicSchema() - != other.getUseTopicSchema()) return false; - if (getWriteMetadata() - != other.getWriteMetadata()) return false; - if (getDropUnknownFields() - != other.getDropUnknownFields()) return false; + if (!getTable().equals(other.getTable())) return false; + if (getUseTopicSchema() != other.getUseTopicSchema()) return false; + if (getWriteMetadata() != other.getWriteMetadata()) return false; + if (getDropUnknownFields() != other.getDropUnknownFields()) return false; if (state_ != other.state_) return false; - if (getUseTableSchema() - != other.getUseTableSchema()) return false; + if (getUseTableSchema() != other.getUseTableSchema()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -506,150 +571,149 @@ public int hashCode() { hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); hash = (37 * hash) + USE_TOPIC_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseTopicSchema()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTopicSchema()); hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWriteMetadata()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); hash = (37 * hash) + DROP_UNKNOWN_FIELDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDropUnknownFields()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDropUnknownFields()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + USE_TABLE_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseTableSchema()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTableSchema()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.pubsub.v1.BigQueryConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.BigQueryConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.BigQueryConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.BigQueryConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.BigQueryConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.BigQueryConfig 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.BigQueryConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.BigQueryConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.BigQueryConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.BigQueryConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.BigQueryConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.BigQueryConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.BigQueryConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.BigQueryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.BigQueryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for a BigQuery subscription.
    * 
* * Protobuf type {@code google.pubsub.v1.BigQueryConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.BigQueryConfig) com.google.pubsub.v1.BigQueryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_BigQueryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.BigQueryConfig.class, com.google.pubsub.v1.BigQueryConfig.Builder.class); + com.google.pubsub.v1.BigQueryConfig.class, + com.google.pubsub.v1.BigQueryConfig.Builder.class); } // Construct using com.google.pubsub.v1.BigQueryConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -664,9 +728,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_BigQueryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_descriptor; } @java.lang.Override @@ -686,7 +750,9 @@ public com.google.pubsub.v1.BigQueryConfig build() { @java.lang.Override public com.google.pubsub.v1.BigQueryConfig buildPartial() { com.google.pubsub.v1.BigQueryConfig result = new com.google.pubsub.v1.BigQueryConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -717,38 +783,39 @@ private void buildPartial0(com.google.pubsub.v1.BigQueryConfig result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.BigQueryConfig) { - return mergeFrom((com.google.pubsub.v1.BigQueryConfig)other); + return mergeFrom((com.google.pubsub.v1.BigQueryConfig) other); } else { super.mergeFrom(other); return this; @@ -803,42 +870,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - useTopicSchema_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - writeMetadata_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - dropUnknownFields_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - state_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - useTableSchema_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + useTopicSchema_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + writeMetadata_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + dropUnknownFields_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + useTableSchema_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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) { @@ -848,23 +922,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object table_ = ""; /** + * + * *
      * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -873,21 +950,22 @@ public java.lang.String getTable() { } } /** + * + * *
      * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -895,30 +973,37 @@ public java.lang.String getTable() { } } /** + * + * *
      * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTable() { @@ -928,18 +1013,22 @@ public Builder clearTable() { return this; } /** + * + * *
      * Optional. The name of the table to which to write data, of the form
      * {projectId}.{datasetId}.{tableId}
      * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -947,8 +1036,10 @@ public Builder setTableBytes( return this; } - private boolean useTopicSchema_ ; + private boolean useTopicSchema_; /** + * + * *
      * Optional. When true, use the topic's schema as the columns to write to in
      * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
@@ -956,6 +1047,7 @@ public Builder setTableBytes(
      * 
* * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The useTopicSchema. */ @java.lang.Override @@ -963,6 +1055,8 @@ public boolean getUseTopicSchema() { return useTopicSchema_; } /** + * + * *
      * Optional. When true, use the topic's schema as the columns to write to in
      * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
@@ -970,6 +1064,7 @@ public boolean getUseTopicSchema() {
      * 
* * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The useTopicSchema to set. * @return This builder for chaining. */ @@ -981,6 +1076,8 @@ public Builder setUseTopicSchema(boolean value) { return this; } /** + * + * *
      * Optional. When true, use the topic's schema as the columns to write to in
      * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
@@ -988,6 +1085,7 @@ public Builder setUseTopicSchema(boolean value) {
      * 
* * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUseTopicSchema() { @@ -997,8 +1095,10 @@ public Builder clearUseTopicSchema() { return this; } - private boolean writeMetadata_ ; + private boolean writeMetadata_; /** + * + * *
      * Optional. When true, write the subscription name, message_id, publish_time,
      * attributes, and ordering_key to additional columns in the table. The
@@ -1008,6 +1108,7 @@ public Builder clearUseTopicSchema() {
      * 
* * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ @java.lang.Override @@ -1015,6 +1116,8 @@ public boolean getWriteMetadata() { return writeMetadata_; } /** + * + * *
      * Optional. When true, write the subscription name, message_id, publish_time,
      * attributes, and ordering_key to additional columns in the table. The
@@ -1024,6 +1127,7 @@ public boolean getWriteMetadata() {
      * 
* * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The writeMetadata to set. * @return This builder for chaining. */ @@ -1035,6 +1139,8 @@ public Builder setWriteMetadata(boolean value) { return this; } /** + * + * *
      * Optional. When true, write the subscription name, message_id, publish_time,
      * attributes, and ordering_key to additional columns in the table. The
@@ -1044,6 +1150,7 @@ public Builder setWriteMetadata(boolean value) {
      * 
* * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWriteMetadata() { @@ -1053,8 +1160,10 @@ public Builder clearWriteMetadata() { return this; } - private boolean dropUnknownFields_ ; + private boolean dropUnknownFields_; /** + * + * *
      * Optional. When true and use_topic_schema is true, any fields that are a
      * part of the topic schema that are not part of the BigQuery table schema are
@@ -1064,6 +1173,7 @@ public Builder clearWriteMetadata() {
      * 
* * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dropUnknownFields. */ @java.lang.Override @@ -1071,6 +1181,8 @@ public boolean getDropUnknownFields() { return dropUnknownFields_; } /** + * + * *
      * Optional. When true and use_topic_schema is true, any fields that are a
      * part of the topic schema that are not part of the BigQuery table schema are
@@ -1080,6 +1192,7 @@ public boolean getDropUnknownFields() {
      * 
* * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The dropUnknownFields to set. * @return This builder for chaining. */ @@ -1091,6 +1204,8 @@ public Builder setDropUnknownFields(boolean value) { return this; } /** + * + * *
      * Optional. When true and use_topic_schema is true, any fields that are a
      * part of the topic schema that are not part of the BigQuery table schema are
@@ -1100,6 +1215,7 @@ public Builder setDropUnknownFields(boolean value) {
      * 
* * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDropUnknownFields() { @@ -1111,24 +1227,35 @@ public Builder clearDropUnknownFields() { private int state_ = 0; /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1139,26 +1266,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.pubsub.v1.BigQueryConfig.State getState() { - com.google.pubsub.v1.BigQueryConfig.State result = com.google.pubsub.v1.BigQueryConfig.State.forNumber(state_); + com.google.pubsub.v1.BigQueryConfig.State result = + com.google.pubsub.v1.BigQueryConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1172,12 +1310,17 @@ public Builder setState(com.google.pubsub.v1.BigQueryConfig.State value) { return this; } /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1187,8 +1330,10 @@ public Builder clearState() { return this; } - private boolean useTableSchema_ ; + private boolean useTableSchema_; /** + * + * *
      * Optional. When true, use the BigQuery table's schema as the columns to
      * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
@@ -1196,6 +1341,7 @@ public Builder clearState() {
      * 
* * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The useTableSchema. */ @java.lang.Override @@ -1203,6 +1349,8 @@ public boolean getUseTableSchema() { return useTableSchema_; } /** + * + * *
      * Optional. When true, use the BigQuery table's schema as the columns to
      * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
@@ -1210,6 +1358,7 @@ public boolean getUseTableSchema() {
      * 
* * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The useTableSchema to set. * @return This builder for chaining. */ @@ -1221,6 +1370,8 @@ public Builder setUseTableSchema(boolean value) { return this; } /** + * + * *
      * Optional. When true, use the BigQuery table's schema as the columns to
      * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
@@ -1228,6 +1379,7 @@ public Builder setUseTableSchema(boolean value) {
      * 
* * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUseTableSchema() { @@ -1236,9 +1388,9 @@ public Builder clearUseTableSchema() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1248,12 +1400,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.BigQueryConfig) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.BigQueryConfig) private static final com.google.pubsub.v1.BigQueryConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.BigQueryConfig(); } @@ -1262,27 +1414,27 @@ public static com.google.pubsub.v1.BigQueryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryConfig 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryConfig 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; @@ -1297,6 +1449,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.BigQueryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index d2f6d2f44..1162f9931 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -1,36 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface BigQueryConfigOrBuilder extends +public interface BigQueryConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.BigQueryConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The name of the table to which to write data, of the form
    * {projectId}.{datasetId}.{tableId}
    * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
    * Optional. The name of the table to which to write data, of the form
    * {projectId}.{datasetId}.{tableId}
    * 
* * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
    * Optional. When true, use the topic's schema as the columns to write to in
    * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
@@ -38,11 +61,14 @@ public interface BigQueryConfigOrBuilder extends
    * 
* * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The useTopicSchema. */ boolean getUseTopicSchema(); /** + * + * *
    * Optional. When true, write the subscription name, message_id, publish_time,
    * attributes, and ordering_key to additional columns in the table. The
@@ -52,11 +78,14 @@ public interface BigQueryConfigOrBuilder extends
    * 
* * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ boolean getWriteMetadata(); /** + * + * *
    * Optional. When true and use_topic_schema is true, any fields that are a
    * part of the topic schema that are not part of the BigQuery table schema are
@@ -66,32 +95,45 @@ public interface BigQueryConfigOrBuilder extends
    * 
* * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dropUnknownFields. */ boolean getDropUnknownFields(); /** + * + * *
    * Output only. An output-only field that indicates whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. An output-only field that indicates whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.pubsub.v1.BigQueryConfig.State getState(); /** + * + * *
    * Optional. When true, use the BigQuery table's schema as the columns to
    * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
@@ -99,6 +141,7 @@ public interface BigQueryConfigOrBuilder extends
    * 
* * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The useTableSchema. */ boolean getUseTableSchema(); diff --git a/owl-bot-staging/v1/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 similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 4d04b7335..def2b0461 100644 --- a/owl-bot-staging/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Configuration for a Cloud Storage subscription.
  * 
* * Protobuf type {@code google.pubsub.v1.CloudStorageConfig} */ -public final class CloudStorageConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudStorageConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig) CloudStorageConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudStorageConfig.newBuilder() to construct. private CloudStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudStorageConfig() { bucket_ = ""; filenamePrefix_ = ""; @@ -29,34 +47,38 @@ private CloudStorageConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudStorageConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CloudStorageConfig.class, com.google.pubsub.v1.CloudStorageConfig.Builder.class); + com.google.pubsub.v1.CloudStorageConfig.class, + com.google.pubsub.v1.CloudStorageConfig.Builder.class); } /** + * + * *
    * Possible states for a Cloud Storage subscription.
    * 
* * Protobuf enum {@code google.pubsub.v1.CloudStorageConfig.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -65,6 +87,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The subscription can actively send messages to Cloud Storage.
      * 
@@ -73,6 +97,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Cannot write to the Cloud Storage bucket because of permission denied
      * errors.
@@ -82,6 +108,8 @@ public enum State
      */
     PERMISSION_DENIED(2),
     /**
+     *
+     *
      * 
      * Cannot write to the Cloud Storage bucket because it does not exist.
      * 
@@ -90,6 +118,8 @@ public enum State */ NOT_FOUND(3), /** + * + * *
      * Cannot write to the destination because enforce_in_transit is set to true
      * and the destination locations are not in the allowed regions.
@@ -102,6 +132,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Default value. This value is unused.
      * 
@@ -110,6 +142,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The subscription can actively send messages to Cloud Storage.
      * 
@@ -118,6 +152,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Cannot write to the Cloud Storage bucket because of permission denied
      * errors.
@@ -127,6 +163,8 @@ public enum State
      */
     public static final int PERMISSION_DENIED_VALUE = 2;
     /**
+     *
+     *
      * 
      * Cannot write to the Cloud Storage bucket because it does not exist.
      * 
@@ -135,6 +173,8 @@ public enum State */ public static final int NOT_FOUND_VALUE = 3; /** + * + * *
      * Cannot write to the destination because enforce_in_transit is set to true
      * and the destination locations are not in the allowed regions.
@@ -144,7 +184,6 @@ public enum State
      */
     public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -169,51 +208,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return PERMISSION_DENIED;
-        case 3: return NOT_FOUND;
-        case 4: return IN_TRANSIT_LOCATION_RESTRICTION;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return PERMISSION_DENIED;
+        case 3:
+          return NOT_FOUND;
+        case 4:
+          return IN_TRANSIT_LOCATION_RESTRICTION;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.pubsub.v1.CloudStorageConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -230,11 +271,13 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.pubsub.v1.CloudStorageConfig.State)
   }
 
-  public interface TextConfigOrBuilder extends
+  public interface TextConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig.TextConfig)
-      com.google.protobuf.MessageOrBuilder {
-  }
+      com.google.protobuf.MessageOrBuilder {}
   /**
+   *
+   *
    * 
    * Configuration for writing message data in text format.
    * Message payloads will be written to files as raw text, separated by a
@@ -243,39 +286,41 @@ public interface TextConfigOrBuilder extends
    *
    * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.TextConfig}
    */
-  public static final class TextConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class TextConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.TextConfig)
       TextConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use TextConfig.newBuilder() to construct.
     private TextConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private TextConfig() {
-    }
+
+    private TextConfig() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new TextConfig();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.CloudStorageConfig.TextConfig.class, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder.class);
+              com.google.pubsub.v1.CloudStorageConfig.TextConfig.class,
+              com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -287,8 +332,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       getUnknownFields().writeTo(output);
     }
 
@@ -306,12 +350,13 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.pubsub.v1.CloudStorageConfig.TextConfig)) {
         return super.equals(obj);
       }
-      com.google.pubsub.v1.CloudStorageConfig.TextConfig other = (com.google.pubsub.v1.CloudStorageConfig.TextConfig) obj;
+      com.google.pubsub.v1.CloudStorageConfig.TextConfig other =
+          (com.google.pubsub.v1.CloudStorageConfig.TextConfig) obj;
 
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -330,89 +375,93 @@ public int hashCode() {
     }
 
     public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        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.CloudStorageConfig.TextConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.pubsub.v1.CloudStorageConfig.TextConfig 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.CloudStorageConfig.TextConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
+
     public static Builder newBuilder(com.google.pubsub.v1.CloudStorageConfig.TextConfig prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -422,6 +471,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Configuration for writing message data in text format.
      * Message payloads will be written to files as raw text, separated by a
@@ -430,33 +481,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.TextConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig.TextConfig)
         com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.pubsub.v1.CloudStorageConfig.TextConfig.class, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder.class);
+                com.google.pubsub.v1.CloudStorageConfig.TextConfig.class,
+                com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder.class);
       }
 
       // Construct using com.google.pubsub.v1.CloudStorageConfig.TextConfig.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -464,9 +515,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor;
       }
 
       @java.lang.Override
@@ -485,7 +536,8 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig build() {
 
       @java.lang.Override
       public com.google.pubsub.v1.CloudStorageConfig.TextConfig buildPartial() {
-        com.google.pubsub.v1.CloudStorageConfig.TextConfig result = new com.google.pubsub.v1.CloudStorageConfig.TextConfig(this);
+        com.google.pubsub.v1.CloudStorageConfig.TextConfig result =
+            new com.google.pubsub.v1.CloudStorageConfig.TextConfig(this);
         onBuilt();
         return result;
       }
@@ -494,38 +546,41 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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.CloudStorageConfig.TextConfig) {
-          return mergeFrom((com.google.pubsub.v1.CloudStorageConfig.TextConfig)other);
+          return mergeFrom((com.google.pubsub.v1.CloudStorageConfig.TextConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -533,7 +588,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig.TextConfig other) {
-        if (other == com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance()) return this;
+        if (other == com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance())
+          return this;
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -560,12 +616,13 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -575,6 +632,7 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -587,12 +645,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig.TextConfig)
     }
 
     // @@protoc_insertion_point(class_scope:google.pubsub.v1.CloudStorageConfig.TextConfig)
     private static final com.google.pubsub.v1.CloudStorageConfig.TextConfig DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.pubsub.v1.CloudStorageConfig.TextConfig();
     }
@@ -601,27 +659,28 @@ public static com.google.pubsub.v1.CloudStorageConfig.TextConfig getDefaultInsta
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public TextConfig 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();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public TextConfig 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;
@@ -636,14 +695,16 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.pubsub.v1.CloudStorageConfig.TextConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface AvroConfigOrBuilder extends
+  public interface AvroConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig.AvroConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. When true, write the subscription name, message_id,
      * publish_time, attributes, and ordering_key as additional fields in the
@@ -654,11 +715,14 @@ public interface AvroConfigOrBuilder extends
      * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ boolean getWriteMetadata(); } /** + * + * *
    * Configuration for writing message data in Avro format.
    * Message payloads and metadata will be written to files as an Avro binary.
@@ -666,41 +730,44 @@ public interface AvroConfigOrBuilder extends
    *
    * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.AvroConfig}
    */
-  public static final class AvroConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AvroConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.AvroConfig)
       AvroConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AvroConfig.newBuilder() to construct.
     private AvroConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private AvroConfig() {
-    }
+
+    private AvroConfig() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AvroConfig();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.CloudStorageConfig.AvroConfig.class, com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder.class);
+              com.google.pubsub.v1.CloudStorageConfig.AvroConfig.class,
+              com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder.class);
     }
 
     public static final int WRITE_METADATA_FIELD_NUMBER = 1;
     private boolean writeMetadata_ = false;
     /**
+     *
+     *
      * 
      * Optional. When true, write the subscription name, message_id,
      * publish_time, attributes, and ordering_key as additional fields in the
@@ -711,6 +778,7 @@ protected java.lang.Object newInstance(
      * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ @java.lang.Override @@ -719,6 +787,7 @@ public boolean getWriteMetadata() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -730,8 +799,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (writeMetadata_ != false) { output.writeBool(1, writeMetadata_); } @@ -745,8 +813,7 @@ public int getSerializedSize() { size = 0; if (writeMetadata_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, writeMetadata_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, writeMetadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -756,15 +823,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.CloudStorageConfig.AvroConfig)) { return super.equals(obj); } - com.google.pubsub.v1.CloudStorageConfig.AvroConfig other = (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) obj; + com.google.pubsub.v1.CloudStorageConfig.AvroConfig other = + (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) obj; - if (getWriteMetadata() - != other.getWriteMetadata()) return false; + if (getWriteMetadata() != other.getWriteMetadata()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -777,97 +844,100 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWriteMetadata()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CloudStorageConfig.AvroConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig 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.CloudStorageConfig.AvroConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.CloudStorageConfig.AvroConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -877,6 +947,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration for writing message data in Avro format.
      * Message payloads and metadata will be written to files as an Avro binary.
@@ -884,33 +956,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.AvroConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig.AvroConfig)
         com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.pubsub.v1.CloudStorageConfig.AvroConfig.class, com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder.class);
+                com.google.pubsub.v1.CloudStorageConfig.AvroConfig.class,
+                com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder.class);
       }
 
       // Construct using com.google.pubsub.v1.CloudStorageConfig.AvroConfig.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -920,9 +992,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor;
       }
 
       @java.lang.Override
@@ -941,8 +1013,11 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig build() {
 
       @java.lang.Override
       public com.google.pubsub.v1.CloudStorageConfig.AvroConfig buildPartial() {
-        com.google.pubsub.v1.CloudStorageConfig.AvroConfig result = new com.google.pubsub.v1.CloudStorageConfig.AvroConfig(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.pubsub.v1.CloudStorageConfig.AvroConfig result =
+            new com.google.pubsub.v1.CloudStorageConfig.AvroConfig(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -958,38 +1033,41 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig.AvroConfig re
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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.CloudStorageConfig.AvroConfig) {
-          return mergeFrom((com.google.pubsub.v1.CloudStorageConfig.AvroConfig)other);
+          return mergeFrom((com.google.pubsub.v1.CloudStorageConfig.AvroConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -997,7 +1075,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig.AvroConfig other) {
-        if (other == com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance()) return this;
+        if (other == com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance())
+          return this;
         if (other.getWriteMetadata() != false) {
           setWriteMetadata(other.getWriteMetadata());
         }
@@ -1027,17 +1106,19 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                writeMetadata_ = input.readBool();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  writeMetadata_ = input.readBool();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 8
+              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) {
@@ -1047,10 +1128,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private boolean writeMetadata_ ;
+      private boolean writeMetadata_;
       /**
+       *
+       *
        * 
        * Optional. When true, write the subscription name, message_id,
        * publish_time, attributes, and ordering_key as additional fields in the
@@ -1061,6 +1145,7 @@ public Builder mergeFrom(
        * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ @java.lang.Override @@ -1068,6 +1153,8 @@ public boolean getWriteMetadata() { return writeMetadata_; } /** + * + * *
        * Optional. When true, write the subscription name, message_id,
        * publish_time, attributes, and ordering_key as additional fields in the
@@ -1078,6 +1165,7 @@ public boolean getWriteMetadata() {
        * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The writeMetadata to set. * @return This builder for chaining. */ @@ -1089,6 +1177,8 @@ public Builder setWriteMetadata(boolean value) { return this; } /** + * + * *
        * Optional. When true, write the subscription name, message_id,
        * publish_time, attributes, and ordering_key as additional fields in the
@@ -1099,6 +1189,7 @@ public Builder setWriteMetadata(boolean value) {
        * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWriteMetadata() { @@ -1107,6 +1198,7 @@ public Builder clearWriteMetadata() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1119,12 +1211,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig.AvroConfig) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.CloudStorageConfig.AvroConfig) private static final com.google.pubsub.v1.CloudStorageConfig.AvroConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.CloudStorageConfig.AvroConfig(); } @@ -1133,27 +1225,28 @@ public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroConfig 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroConfig 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; @@ -1168,20 +1261,23 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; private int outputFormatCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object outputFormat_; + public enum OutputFormatCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_CONFIG(4), AVRO_CONFIG(5), OUTPUTFORMAT_NOT_SET(0); private final int value; + private OutputFormatCase(int value) { this.value = value; } @@ -1197,27 +1293,33 @@ public static OutputFormatCase valueOf(int value) { public static OutputFormatCase forNumber(int value) { switch (value) { - case 4: return TEXT_CONFIG; - case 5: return AVRO_CONFIG; - case 0: return OUTPUTFORMAT_NOT_SET; - default: return null; + case 4: + return TEXT_CONFIG; + case 5: + return AVRO_CONFIG; + case 0: + return OUTPUTFORMAT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OutputFormatCase - getOutputFormatCase() { - return OutputFormatCase.forNumber( - outputFormatCase_); + public OutputFormatCase getOutputFormatCase() { + return OutputFormatCase.forNumber(outputFormatCase_); } public static final int BUCKET_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** + * + * *
    * Required. User-provided name for the Cloud Storage bucket.
    * The bucket must be created by the user. The bucket name must be without
@@ -1226,6 +1328,7 @@ public int getNumber() {
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ @java.lang.Override @@ -1234,14 +1337,15 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** + * + * *
    * Required. User-provided name for the Cloud Storage bucket.
    * The bucket must be created by the user. The bucket name must be without
@@ -1250,16 +1354,15 @@ public java.lang.String getBucket() {
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getBucketBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -1268,15 +1371,19 @@ public java.lang.String getBucket() { } public static final int FILENAME_PREFIX_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filenamePrefix_ = ""; /** + * + * *
    * Optional. User-provided prefix for Cloud Storage filename. See the [object
    * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filenamePrefix. */ @java.lang.Override @@ -1285,30 +1392,30 @@ public java.lang.String getFilenamePrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filenamePrefix_ = s; return s; } } /** + * + * *
    * Optional. User-provided prefix for Cloud Storage filename. See the [object
    * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filenamePrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilenamePrefixBytes() { + public com.google.protobuf.ByteString getFilenamePrefixBytes() { java.lang.Object ref = filenamePrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filenamePrefix_ = b; return b; } else { @@ -1317,9 +1424,12 @@ public java.lang.String getFilenamePrefix() { } public static final int FILENAME_SUFFIX_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object filenameSuffix_ = ""; /** + * + * *
    * Optional. User-provided suffix for Cloud Storage filename. See the [object
    * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -1327,6 +1437,7 @@ public java.lang.String getFilenamePrefix() {
    * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filenameSuffix. */ @java.lang.Override @@ -1335,14 +1446,15 @@ public java.lang.String getFilenameSuffix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filenameSuffix_ = s; return s; } } /** + * + * *
    * Optional. User-provided suffix for Cloud Storage filename. See the [object
    * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -1350,16 +1462,15 @@ public java.lang.String getFilenameSuffix() {
    * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filenameSuffix. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilenameSuffixBytes() { + public com.google.protobuf.ByteString getFilenameSuffixBytes() { java.lang.Object ref = filenameSuffix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filenameSuffix_ = b; return b; } else { @@ -1369,12 +1480,17 @@ public java.lang.String getFilenameSuffix() { public static final int TEXT_CONFIG_FIELD_NUMBER = 4; /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in text
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the textConfig field is set. */ @java.lang.Override @@ -1382,45 +1498,59 @@ public boolean hasTextConfig() { return outputFormatCase_ == 4; } /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in text
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The textConfig. */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { if (outputFormatCase_ == 4) { - return (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_; + return (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_; } return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in text
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder() { if (outputFormatCase_ == 4) { - return (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_; + return (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_; } return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } public static final int AVRO_CONFIG_FIELD_NUMBER = 5; /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in Avro
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the avroConfig field is set. */ @java.lang.Override @@ -1428,33 +1558,42 @@ public boolean hasAvroConfig() { return outputFormatCase_ == 5; } /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in Avro
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The avroConfig. */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { if (outputFormatCase_ == 5) { - return (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_; + return (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_; } return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in Avro
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder() { if (outputFormatCase_ == 5) { - return (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_; + return (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_; } return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } @@ -1462,13 +1601,17 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig public static final int MAX_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration maxDuration_; /** + * + * *
    * 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.
    * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxDuration field is set. */ @java.lang.Override @@ -1476,13 +1619,17 @@ public boolean hasMaxDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * 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.
    * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxDuration. */ @java.lang.Override @@ -1490,13 +1637,16 @@ public com.google.protobuf.Duration getMaxDuration() { return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; } /** + * + * *
    * 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.
    * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { @@ -1506,6 +1656,8 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { public static final int MAX_BYTES_FIELD_NUMBER = 7; private long maxBytes_ = 0L; /** + * + * *
    * Optional. The maximum bytes that can be written to a Cloud Storage file
    * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
@@ -1513,6 +1665,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() {
    * 
* * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxBytes. */ @java.lang.Override @@ -1523,32 +1676,46 @@ public long getMaxBytes() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** + * + * *
    * Output only. An output-only field that indicates whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. An output-only field that indicates whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.State getState() { - com.google.pubsub.v1.CloudStorageConfig.State result = com.google.pubsub.v1.CloudStorageConfig.State.forNumber(state_); + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.State getState() { + com.google.pubsub.v1.CloudStorageConfig.State result = + com.google.pubsub.v1.CloudStorageConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.CloudStorageConfig.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1560,8 +1727,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -1605,24 +1771,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filenameSuffix_); } if (outputFormatCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_); } if (outputFormatCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMaxDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxDuration()); } if (maxBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, maxBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxBytes_); } if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1632,36 +1797,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.CloudStorageConfig)) { return super.equals(obj); } com.google.pubsub.v1.CloudStorageConfig other = (com.google.pubsub.v1.CloudStorageConfig) obj; - if (!getBucket() - .equals(other.getBucket())) return false; - if (!getFilenamePrefix() - .equals(other.getFilenamePrefix())) return false; - if (!getFilenameSuffix() - .equals(other.getFilenameSuffix())) return false; + if (!getBucket().equals(other.getBucket())) return false; + if (!getFilenamePrefix().equals(other.getFilenamePrefix())) return false; + if (!getFilenameSuffix().equals(other.getFilenameSuffix())) return false; if (hasMaxDuration() != other.hasMaxDuration()) return false; if (hasMaxDuration()) { - if (!getMaxDuration() - .equals(other.getMaxDuration())) return false; + if (!getMaxDuration().equals(other.getMaxDuration())) return false; } - if (getMaxBytes() - != other.getMaxBytes()) return false; + if (getMaxBytes() != other.getMaxBytes()) return false; if (state_ != other.state_) return false; if (!getOutputFormatCase().equals(other.getOutputFormatCase())) return false; switch (outputFormatCase_) { case 4: - if (!getTextConfig() - .equals(other.getTextConfig())) return false; + if (!getTextConfig().equals(other.getTextConfig())) return false; break; case 5: - if (!getAvroConfig() - .equals(other.getAvroConfig())) return false; + if (!getAvroConfig().equals(other.getAvroConfig())) return false; break; case 0: default: @@ -1688,8 +1846,7 @@ public int hashCode() { hash = (53 * hash) + getMaxDuration().hashCode(); } hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytes()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; switch (outputFormatCase_) { @@ -1709,120 +1866,127 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.CloudStorageConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.CloudStorageConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CloudStorageConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CloudStorageConfig 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.CloudStorageConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.CloudStorageConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.CloudStorageConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.CloudStorageConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.CloudStorageConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for a Cloud Storage subscription.
    * 
* * Protobuf type {@code google.pubsub.v1.CloudStorageConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig) com.google.pubsub.v1.CloudStorageConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CloudStorageConfig.class, com.google.pubsub.v1.CloudStorageConfig.Builder.class); + com.google.pubsub.v1.CloudStorageConfig.class, + com.google.pubsub.v1.CloudStorageConfig.Builder.class); } // Construct using com.google.pubsub.v1.CloudStorageConfig.newBuilder() @@ -1830,17 +1994,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMaxDurationFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1867,9 +2031,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; } @java.lang.Override @@ -1888,8 +2052,11 @@ public com.google.pubsub.v1.CloudStorageConfig build() { @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig buildPartial() { - com.google.pubsub.v1.CloudStorageConfig result = new com.google.pubsub.v1.CloudStorageConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.CloudStorageConfig result = + new com.google.pubsub.v1.CloudStorageConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1908,9 +2075,8 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { - result.maxDuration_ = maxDurationBuilder_ == null - ? maxDuration_ - : maxDurationBuilder_.build(); + result.maxDuration_ = + maxDurationBuilder_ == null ? maxDuration_ : maxDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { @@ -1925,12 +2091,10 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { private void buildPartialOneofs(com.google.pubsub.v1.CloudStorageConfig result) { result.outputFormatCase_ = outputFormatCase_; result.outputFormat_ = this.outputFormat_; - if (outputFormatCase_ == 4 && - textConfigBuilder_ != null) { + if (outputFormatCase_ == 4 && textConfigBuilder_ != null) { result.outputFormat_ = textConfigBuilder_.build(); } - if (outputFormatCase_ == 5 && - avroConfigBuilder_ != null) { + if (outputFormatCase_ == 5 && avroConfigBuilder_ != null) { result.outputFormat_ = avroConfigBuilder_.build(); } } @@ -1939,38 +2103,39 @@ private void buildPartialOneofs(com.google.pubsub.v1.CloudStorageConfig result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CloudStorageConfig) { - return mergeFrom((com.google.pubsub.v1.CloudStorageConfig)other); + return mergeFrom((com.google.pubsub.v1.CloudStorageConfig) other); } else { super.mergeFrom(other); return this; @@ -2004,17 +2169,20 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) { setStateValue(other.getStateValue()); } switch (other.getOutputFormatCase()) { - case TEXT_CONFIG: { - mergeTextConfig(other.getTextConfig()); - break; - } - case AVRO_CONFIG: { - mergeAvroConfig(other.getAvroConfig()); - break; - } - case OUTPUTFORMAT_NOT_SET: { - break; - } + case TEXT_CONFIG: + { + mergeTextConfig(other.getTextConfig()); + break; + } + case AVRO_CONFIG: + { + mergeAvroConfig(other.getAvroConfig()); + break; + } + case OUTPUTFORMAT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2042,58 +2210,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - filenamePrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - filenameSuffix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getTextConfigFieldBuilder().getBuilder(), - extensionRegistry); - outputFormatCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getAvroConfigFieldBuilder().getBuilder(), - extensionRegistry); - outputFormatCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getMaxDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - maxBytes_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 72: { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filenamePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + filenameSuffix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getTextConfigFieldBuilder().getBuilder(), extensionRegistry); + outputFormatCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getAvroConfigFieldBuilder().getBuilder(), extensionRegistry); + outputFormatCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getMaxDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + maxBytes_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + 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) { @@ -2103,12 +2274,12 @@ public Builder mergeFrom( } // finally return this; } + private int outputFormatCase_ = 0; private java.lang.Object outputFormat_; - public OutputFormatCase - getOutputFormatCase() { - return OutputFormatCase.forNumber( - outputFormatCase_); + + public OutputFormatCase getOutputFormatCase() { + return OutputFormatCase.forNumber(outputFormatCase_); } public Builder clearOutputFormat() { @@ -2122,6 +2293,8 @@ public Builder clearOutputFormat() { private java.lang.Object bucket_ = ""; /** + * + * *
      * Required. User-provided name for the Cloud Storage bucket.
      * The bucket must be created by the user. The bucket name must be without
@@ -2130,13 +2303,13 @@ public Builder clearOutputFormat() {
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -2145,6 +2318,8 @@ public java.lang.String getBucket() { } } /** + * + * *
      * Required. User-provided name for the Cloud Storage bucket.
      * The bucket must be created by the user. The bucket name must be without
@@ -2153,15 +2328,14 @@ public java.lang.String getBucket() {
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucket. */ - public com.google.protobuf.ByteString - getBucketBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -2169,6 +2343,8 @@ public java.lang.String getBucket() { } } /** + * + * *
      * Required. User-provided name for the Cloud Storage bucket.
      * The bucket must be created by the user. The bucket name must be without
@@ -2177,18 +2353,22 @@ public java.lang.String getBucket() {
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. User-provided name for the Cloud Storage bucket.
      * The bucket must be created by the user. The bucket name must be without
@@ -2197,6 +2377,7 @@ public Builder setBucket(
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBucket() { @@ -2206,6 +2387,8 @@ public Builder clearBucket() { return this; } /** + * + * *
      * Required. User-provided name for the Cloud Storage bucket.
      * The bucket must be created by the user. The bucket name must be without
@@ -2214,12 +2397,14 @@ public Builder clearBucket() {
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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(); } + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -2229,19 +2414,21 @@ public Builder setBucketBytes( private java.lang.Object filenamePrefix_ = ""; /** + * + * *
      * Optional. User-provided prefix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filenamePrefix. */ public java.lang.String getFilenamePrefix() { java.lang.Object ref = filenamePrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filenamePrefix_ = s; return s; @@ -2250,21 +2437,22 @@ public java.lang.String getFilenamePrefix() { } } /** + * + * *
      * Optional. User-provided prefix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filenamePrefix. */ - public com.google.protobuf.ByteString - getFilenamePrefixBytes() { + public com.google.protobuf.ByteString getFilenamePrefixBytes() { java.lang.Object ref = filenamePrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filenamePrefix_ = b; return b; } else { @@ -2272,30 +2460,37 @@ public java.lang.String getFilenamePrefix() { } } /** + * + * *
      * Optional. User-provided prefix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filenamePrefix to set. * @return This builder for chaining. */ - public Builder setFilenamePrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilenamePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filenamePrefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. User-provided prefix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilenamePrefix() { @@ -2305,18 +2500,22 @@ public Builder clearFilenamePrefix() { return this; } /** + * + * *
      * Optional. User-provided prefix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
      * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filenamePrefix to set. * @return This builder for chaining. */ - public Builder setFilenamePrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilenamePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filenamePrefix_ = value; bitField0_ |= 0x00000002; @@ -2326,6 +2525,8 @@ public Builder setFilenamePrefixBytes( private java.lang.Object filenameSuffix_ = ""; /** + * + * *
      * Optional. User-provided suffix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -2333,13 +2534,13 @@ public Builder setFilenamePrefixBytes(
      * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filenameSuffix. */ public java.lang.String getFilenameSuffix() { java.lang.Object ref = filenameSuffix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filenameSuffix_ = s; return s; @@ -2348,6 +2549,8 @@ public java.lang.String getFilenameSuffix() { } } /** + * + * *
      * Optional. User-provided suffix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -2355,15 +2558,14 @@ public java.lang.String getFilenameSuffix() {
      * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filenameSuffix. */ - public com.google.protobuf.ByteString - getFilenameSuffixBytes() { + public com.google.protobuf.ByteString getFilenameSuffixBytes() { java.lang.Object ref = filenameSuffix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filenameSuffix_ = b; return b; } else { @@ -2371,6 +2573,8 @@ public java.lang.String getFilenameSuffix() { } } /** + * + * *
      * Optional. User-provided suffix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -2378,18 +2582,22 @@ public java.lang.String getFilenameSuffix() {
      * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filenameSuffix to set. * @return This builder for chaining. */ - public Builder setFilenameSuffix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilenameSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filenameSuffix_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. User-provided suffix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -2397,6 +2605,7 @@ public Builder setFilenameSuffix(
      * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilenameSuffix() { @@ -2406,6 +2615,8 @@ public Builder clearFilenameSuffix() { return this; } /** + * + * *
      * Optional. User-provided suffix for Cloud Storage filename. See the [object
      * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -2413,12 +2624,14 @@ public Builder clearFilenameSuffix() {
      * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filenameSuffix to set. * @return This builder for chaining. */ - public Builder setFilenameSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilenameSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filenameSuffix_ = value; bitField0_ |= 0x00000004; @@ -2427,14 +2640,22 @@ public Builder setFilenameSuffixBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig.TextConfig, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> textConfigBuilder_; + com.google.pubsub.v1.CloudStorageConfig.TextConfig, + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> + textConfigBuilder_; /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the textConfig field is set. */ @java.lang.Override @@ -2442,12 +2663,17 @@ public boolean hasTextConfig() { return outputFormatCase_ == 4; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The textConfig. */ @java.lang.Override @@ -2465,12 +2691,16 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { } } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig value) { if (textConfigBuilder_ == null) { @@ -2486,12 +2716,16 @@ public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig return this; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTextConfig( com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder builderForValue) { @@ -2505,19 +2739,27 @@ public Builder setTextConfig( return this; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig value) { if (textConfigBuilder_ == null) { - if (outputFormatCase_ == 4 && - outputFormat_ != com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance()) { - outputFormat_ = com.google.pubsub.v1.CloudStorageConfig.TextConfig.newBuilder((com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_) - .mergeFrom(value).buildPartial(); + if (outputFormatCase_ == 4 + && outputFormat_ + != com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance()) { + outputFormat_ = + com.google.pubsub.v1.CloudStorageConfig.TextConfig.newBuilder( + (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_) + .mergeFrom(value) + .buildPartial(); } else { outputFormat_ = value; } @@ -2533,12 +2775,16 @@ public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfi return this; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTextConfig() { if (textConfigBuilder_ == null) { @@ -2557,23 +2803,31 @@ public Builder clearTextConfig() { return this; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigBuilder() { return getTextConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder() { @@ -2587,22 +2841,31 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig } } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in text
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig.TextConfig, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> + com.google.pubsub.v1.CloudStorageConfig.TextConfig, + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> getTextConfigFieldBuilder() { if (textConfigBuilder_ == null) { if (!(outputFormatCase_ == 4)) { outputFormat_ = com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } - textConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig.TextConfig, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder>( + textConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig.TextConfig, + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder>( (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_, getParentForChildren(), isClean()); @@ -2614,14 +2877,22 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig.AvroConfig, com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> avroConfigBuilder_; + com.google.pubsub.v1.CloudStorageConfig.AvroConfig, + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> + avroConfigBuilder_; /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the avroConfig field is set. */ @java.lang.Override @@ -2629,12 +2900,17 @@ public boolean hasAvroConfig() { return outputFormatCase_ == 5; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The avroConfig. */ @java.lang.Override @@ -2652,12 +2928,16 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { } } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig value) { if (avroConfigBuilder_ == null) { @@ -2673,12 +2953,16 @@ public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig return this; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAvroConfig( com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder builderForValue) { @@ -2692,19 +2976,27 @@ public Builder setAvroConfig( return this; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig value) { if (avroConfigBuilder_ == null) { - if (outputFormatCase_ == 5 && - outputFormat_ != com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance()) { - outputFormat_ = com.google.pubsub.v1.CloudStorageConfig.AvroConfig.newBuilder((com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_) - .mergeFrom(value).buildPartial(); + if (outputFormatCase_ == 5 + && outputFormat_ + != com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance()) { + outputFormat_ = + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.newBuilder( + (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_) + .mergeFrom(value) + .buildPartial(); } else { outputFormat_ = value; } @@ -2720,12 +3012,16 @@ public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfi return this; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAvroConfig() { if (avroConfigBuilder_ == null) { @@ -2744,23 +3040,31 @@ public Builder clearAvroConfig() { return this; } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigBuilder() { return getAvroConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder() { @@ -2774,22 +3078,31 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig } } /** + * + * *
      * Optional. If set, message data will be written to Cloud Storage in Avro
      * format.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig.AvroConfig, com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> + com.google.pubsub.v1.CloudStorageConfig.AvroConfig, + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> getAvroConfigFieldBuilder() { if (avroConfigBuilder_ == null) { if (!(outputFormatCase_ == 5)) { outputFormat_ = com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } - avroConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig.AvroConfig, com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder>( + avroConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig.AvroConfig, + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder>( (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_, getParentForChildren(), isClean()); @@ -2802,45 +3115,61 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig private com.google.protobuf.Duration maxDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxDurationBuilder_; /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxDuration field is set. */ public boolean hasMaxDuration() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxDuration. */ public com.google.protobuf.Duration getMaxDuration() { if (maxDurationBuilder_ == null) { - return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; + return maxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxDuration_; } else { return maxDurationBuilder_.getMessage(); } } /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { @@ -2856,16 +3185,18 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMaxDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForValue) { if (maxDurationBuilder_ == null) { maxDuration_ = builderForValue.build(); } else { @@ -2876,19 +3207,22 @@ public Builder setMaxDuration( return this; } /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - maxDuration_ != null && - maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && maxDuration_ != null + && maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxDurationBuilder().mergeFrom(value); } else { maxDuration_ = value; @@ -2903,13 +3237,16 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaxDuration() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2922,13 +3259,16 @@ public Builder clearMaxDuration() { return this; } /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { bitField0_ |= 0x00000020; @@ -2936,47 +3276,59 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { return getMaxDurationFieldBuilder().getBuilder(); } /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { if (maxDurationBuilder_ != null) { return maxDurationBuilder_.getMessageOrBuilder(); } else { - return maxDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; + return maxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxDuration_; } } /** + * + * *
      * 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.
      * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMaxDurationFieldBuilder() { if (maxDurationBuilder_ == null) { - maxDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaxDuration(), - getParentForChildren(), - isClean()); + maxDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxDuration(), getParentForChildren(), isClean()); maxDuration_ = null; } return maxDurationBuilder_; } - private long maxBytes_ ; + private long maxBytes_; /** + * + * *
      * Optional. The maximum bytes that can be written to a Cloud Storage file
      * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
@@ -2984,6 +3336,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() {
      * 
* * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxBytes. */ @java.lang.Override @@ -2991,6 +3344,8 @@ public long getMaxBytes() { return maxBytes_; } /** + * + * *
      * Optional. The maximum bytes that can be written to a Cloud Storage file
      * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
@@ -2998,6 +3353,7 @@ public long getMaxBytes() {
      * 
* * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The maxBytes to set. * @return This builder for chaining. */ @@ -3009,6 +3365,8 @@ public Builder setMaxBytes(long value) { return this; } /** + * + * *
      * Optional. The maximum bytes that can be written to a Cloud Storage file
      * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
@@ -3016,6 +3374,7 @@ public Builder setMaxBytes(long value) {
      * 
* * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMaxBytes() { @@ -3027,24 +3386,35 @@ public Builder clearMaxBytes() { private int state_ = 0; /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3055,26 +3425,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.State getState() { - com.google.pubsub.v1.CloudStorageConfig.State result = com.google.pubsub.v1.CloudStorageConfig.State.forNumber(state_); + com.google.pubsub.v1.CloudStorageConfig.State result = + com.google.pubsub.v1.CloudStorageConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.CloudStorageConfig.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3088,12 +3469,17 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { return this; } /** + * + * *
      * Output only. An output-only field that indicates whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -3102,9 +3488,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3114,12 +3500,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.CloudStorageConfig) private static final com.google.pubsub.v1.CloudStorageConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.CloudStorageConfig(); } @@ -3128,27 +3514,27 @@ public static com.google.pubsub.v1.CloudStorageConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudStorageConfig 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageConfig 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; @@ -3163,6 +3549,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.CloudStorageConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/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 similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index b6e93eb60..8b561caf3 100644 --- a/owl-bot-staging/v1/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 @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface CloudStorageConfigOrBuilder extends +public interface CloudStorageConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. User-provided name for the Cloud Storage bucket.
    * The bucket must be created by the user. The bucket name must be without
@@ -17,10 +35,13 @@ public interface CloudStorageConfigOrBuilder extends
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ java.lang.String getBucket(); /** + * + * *
    * Required. User-provided name for the Cloud Storage bucket.
    * The bucket must be created by the user. The bucket name must be without
@@ -29,34 +50,41 @@ public interface CloudStorageConfigOrBuilder extends
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucket. */ - com.google.protobuf.ByteString - getBucketBytes(); + com.google.protobuf.ByteString getBucketBytes(); /** + * + * *
    * Optional. User-provided prefix for Cloud Storage filename. See the [object
    * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filenamePrefix. */ java.lang.String getFilenamePrefix(); /** + * + * *
    * Optional. User-provided prefix for Cloud Storage filename. See the [object
    * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    * 
* * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filenamePrefix. */ - com.google.protobuf.ByteString - getFilenamePrefixBytes(); + com.google.protobuf.ByteString getFilenamePrefixBytes(); /** + * + * *
    * Optional. User-provided suffix for Cloud Storage filename. See the [object
    * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -64,10 +92,13 @@ public interface CloudStorageConfigOrBuilder extends
    * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filenameSuffix. */ java.lang.String getFilenameSuffix(); /** + * + * *
    * Optional. User-provided suffix for Cloud Storage filename. See the [object
    * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
@@ -75,105 +106,146 @@ public interface CloudStorageConfigOrBuilder extends
    * 
* * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filenameSuffix. */ - com.google.protobuf.ByteString - getFilenameSuffixBytes(); + com.google.protobuf.ByteString getFilenameSuffixBytes(); /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in text
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the textConfig field is set. */ boolean hasTextConfig(); /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in text
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The textConfig. */ com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig(); /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in text
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder(); /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in Avro
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the avroConfig field is set. */ boolean hasAvroConfig(); /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in Avro
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The avroConfig. */ com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig(); /** + * + * *
    * Optional. If set, message data will be written to Cloud Storage in Avro
    * format.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder(); /** + * + * *
    * 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.
    * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maxDuration field is set. */ 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.
    * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maxDuration. */ 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.
    * 
* - * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder(); /** + * + * *
    * Optional. The maximum bytes that can be written to a Cloud Storage file
    * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
@@ -181,27 +253,38 @@ public interface CloudStorageConfigOrBuilder extends
    * 
* * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxBytes. */ long getMaxBytes(); /** + * + * *
    * Output only. An output-only field that indicates whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. An output-only field that indicates whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.pubsub.v1.CloudStorageConfig.State getState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index a4528cac0..b0cd68691 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,56 +20,66 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for CommitSchema method.
  * 
* * Protobuf type {@code google.pubsub.v1.CommitSchemaRequest} */ -public final class CommitSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommitSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CommitSchemaRequest) CommitSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommitSchemaRequest.newBuilder() to construct. private CommitSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CommitSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CommitSchemaRequest.class, com.google.pubsub.v1.CommitSchemaRequest.Builder.class); + com.google.pubsub.v1.CommitSchemaRequest.class, + com.google.pubsub.v1.CommitSchemaRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the schema we are revising.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the schema we are revising.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,11 +124,14 @@ public java.lang.String getName() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; /** + * + * *
    * Required. The schema revision to commit.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ @java.lang.Override @@ -109,11 +139,14 @@ public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The schema revision to commit.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -121,6 +154,8 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** + * + * *
    * Required. The schema revision to commit.
    * 
@@ -133,6 +168,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -165,8 +200,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,19 +210,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.CommitSchemaRequest)) { return super.equals(obj); } com.google.pubsub.v1.CommitSchemaRequest other = (com.google.pubsub.v1.CommitSchemaRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -212,120 +244,127 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CommitSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CommitSchemaRequest 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.CommitSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.CommitSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.CommitSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CommitSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.CommitSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for CommitSchema method.
    * 
* * Protobuf type {@code google.pubsub.v1.CommitSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CommitSchemaRequest) com.google.pubsub.v1.CommitSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CommitSchemaRequest.class, com.google.pubsub.v1.CommitSchemaRequest.Builder.class); + com.google.pubsub.v1.CommitSchemaRequest.class, + com.google.pubsub.v1.CommitSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.CommitSchemaRequest.newBuilder() @@ -333,17 +372,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; } @java.lang.Override @@ -379,8 +418,11 @@ public com.google.pubsub.v1.CommitSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.CommitSchemaRequest buildPartial() { - com.google.pubsub.v1.CommitSchemaRequest result = new com.google.pubsub.v1.CommitSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.CommitSchemaRequest result = + new com.google.pubsub.v1.CommitSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -392,9 +434,7 @@ private void buildPartial0(com.google.pubsub.v1.CommitSchemaRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.schema_ = schemaBuilder_ == null - ? schema_ - : schemaBuilder_.build(); + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -404,38 +444,39 @@ private void buildPartial0(com.google.pubsub.v1.CommitSchemaRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CommitSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.CommitSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.CommitSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -478,24 +519,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -505,23 +547,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the schema we are revising.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -530,21 +577,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the schema we are revising.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -552,30 +602,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the schema we are revising.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the schema we are revising.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -585,18 +646,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the schema we are revising.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -606,24 +673,33 @@ public Builder setNameBytes( private com.google.pubsub.v1.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemaBuilder_; /** + * + * *
      * Required. The schema revision to commit.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The schema revision to commit.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ public com.google.pubsub.v1.Schema getSchema() { @@ -634,6 +710,8 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** + * + * *
      * Required. The schema revision to commit.
      * 
@@ -654,14 +732,15 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * Required. The schema revision to commit.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSchema( - com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { @@ -672,6 +751,8 @@ public Builder setSchema( return this; } /** + * + * *
      * Required. The schema revision to commit.
      * 
@@ -680,9 +761,9 @@ public Builder setSchema( */ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - schema_ != null && - schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && schema_ != null + && schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; @@ -697,6 +778,8 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * Required. The schema revision to commit.
      * 
@@ -714,6 +797,8 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Required. The schema revision to commit.
      * 
@@ -726,6 +811,8 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The schema revision to commit.
      * 
@@ -736,11 +823,12 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null ? - com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } /** + * + * *
      * Required. The schema revision to commit.
      * 
@@ -748,21 +836,24 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( - getSchema(), - getParentForChildren(), - isClean()); + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -772,12 +863,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CommitSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.CommitSchemaRequest) private static final com.google.pubsub.v1.CommitSchemaRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.CommitSchemaRequest(); } @@ -786,27 +877,27 @@ public static com.google.pubsub.v1.CommitSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitSchemaRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitSchemaRequest 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; @@ -821,6 +912,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.CommitSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 9d236b0bd..638f15d98 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -1,54 +1,87 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface CommitSchemaRequestOrBuilder extends +public interface CommitSchemaRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CommitSchemaRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the schema we are revising.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the schema we are revising.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The schema revision to commit.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ boolean hasSchema(); /** + * + * *
    * Required. The schema revision to commit.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); /** + * + * *
    * Required. The schema revision to commit.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 0d658ce62..ab23cc3db 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the CreateSchema method.
  * 
* * Protobuf type {@code google.pubsub.v1.CreateSchemaRequest} */ -public final class CreateSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSchemaRequest) CreateSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSchemaRequest.newBuilder() to construct. private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSchemaRequest() { parent_ = ""; schemaId_ = ""; @@ -27,35 +45,42 @@ private CreateSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CreateSchemaRequest.class, com.google.pubsub.v1.CreateSchemaRequest.Builder.class); + com.google.pubsub.v1.CreateSchemaRequest.class, + com.google.pubsub.v1.CreateSchemaRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project in which to create the schema.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,30 +89,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which to create the schema.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,6 +125,8 @@ public java.lang.String getParent() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; /** + * + * *
    * Required. The schema object to create.
    *
@@ -107,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ @java.lang.Override @@ -114,6 +144,8 @@ public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The schema object to create.
    *
@@ -123,6 +155,7 @@ public boolean hasSchema() {
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -130,6 +163,8 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** + * + * *
    * Required. The schema object to create.
    *
@@ -146,9 +181,12 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
   }
 
   public static final int SCHEMA_ID_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object schemaId_ = "";
   /**
+   *
+   *
    * 
    * The ID to use for the schema, which will become the final component of
    * the schema's resource name.
@@ -158,6 +196,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
    * 
* * string schema_id = 3; + * * @return The schemaId. */ @java.lang.Override @@ -166,14 +205,15 @@ public java.lang.String getSchemaId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; } } /** + * + * *
    * The ID to use for the schema, which will become the final component of
    * the schema's resource name.
@@ -183,16 +223,15 @@ public java.lang.String getSchemaId() {
    * 
* * string schema_id = 3; + * * @return The bytes for schemaId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaIdBytes() { + public com.google.protobuf.ByteString getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaId_ = b; return b; } else { @@ -201,6 +240,7 @@ public java.lang.String getSchemaId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -236,8 +275,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); @@ -250,22 +288,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.CreateSchemaRequest)) { return super.equals(obj); } com.google.pubsub.v1.CreateSchemaRequest other = (com.google.pubsub.v1.CreateSchemaRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; } - if (!getSchemaId() - .equals(other.getSchemaId())) return false; + if (!getSchemaId().equals(other.getSchemaId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,120 +325,127 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.CreateSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CreateSchemaRequest 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.CreateSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.CreateSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the CreateSchema method.
    * 
* * Protobuf type {@code google.pubsub.v1.CreateSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSchemaRequest) com.google.pubsub.v1.CreateSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CreateSchemaRequest.class, com.google.pubsub.v1.CreateSchemaRequest.Builder.class); + com.google.pubsub.v1.CreateSchemaRequest.class, + com.google.pubsub.v1.CreateSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.CreateSchemaRequest.newBuilder() @@ -411,17 +453,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; } @java.lang.Override @@ -458,8 +500,11 @@ public com.google.pubsub.v1.CreateSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.CreateSchemaRequest buildPartial() { - com.google.pubsub.v1.CreateSchemaRequest result = new com.google.pubsub.v1.CreateSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.CreateSchemaRequest result = + new com.google.pubsub.v1.CreateSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -471,9 +516,7 @@ private void buildPartial0(com.google.pubsub.v1.CreateSchemaRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.schema_ = schemaBuilder_ == null - ? schema_ - : schemaBuilder_.build(); + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -486,38 +529,39 @@ private void buildPartial0(com.google.pubsub.v1.CreateSchemaRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -565,29 +609,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - schemaId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + schemaId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -597,23 +643,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -622,21 +673,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -644,30 +698,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -677,18 +742,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -698,8 +769,13 @@ public Builder setParentBytes( private com.google.pubsub.v1.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemaBuilder_; /** + * + * *
      * Required. The schema object to create.
      *
@@ -709,12 +785,15 @@ public Builder setParentBytes(
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The schema object to create.
      *
@@ -724,6 +803,7 @@ public boolean hasSchema() {
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ public com.google.pubsub.v1.Schema getSchema() { @@ -734,6 +814,8 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** + * + * *
      * Required. The schema object to create.
      *
@@ -758,6 +840,8 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      *
@@ -768,8 +852,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
      *
      * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setSchema(
-        com.google.pubsub.v1.Schema.Builder builderForValue) {
+    public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
       if (schemaBuilder_ == null) {
         schema_ = builderForValue.build();
       } else {
@@ -780,6 +863,8 @@ public Builder setSchema(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      *
@@ -792,9 +877,9 @@ public Builder setSchema(
      */
     public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
       if (schemaBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          schema_ != null &&
-          schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && schema_ != null
+            && schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) {
           getSchemaBuilder().mergeFrom(value);
         } else {
           schema_ = value;
@@ -809,6 +894,8 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      *
@@ -830,6 +917,8 @@ public Builder clearSchema() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      *
@@ -846,6 +935,8 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() {
       return getSchemaFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      *
@@ -860,11 +951,12 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
       if (schemaBuilder_ != null) {
         return schemaBuilder_.getMessageOrBuilder();
       } else {
-        return schema_ == null ?
-            com.google.pubsub.v1.Schema.getDefaultInstance() : schema_;
+        return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      *
@@ -876,14 +968,17 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
      * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> 
+            com.google.pubsub.v1.Schema,
+            com.google.pubsub.v1.Schema.Builder,
+            com.google.pubsub.v1.SchemaOrBuilder>
         getSchemaFieldBuilder() {
       if (schemaBuilder_ == null) {
-        schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>(
-                getSchema(),
-                getParentForChildren(),
-                isClean());
+        schemaBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.pubsub.v1.Schema,
+                com.google.pubsub.v1.Schema.Builder,
+                com.google.pubsub.v1.SchemaOrBuilder>(
+                getSchema(), getParentForChildren(), isClean());
         schema_ = null;
       }
       return schemaBuilder_;
@@ -891,6 +986,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
 
     private java.lang.Object schemaId_ = "";
     /**
+     *
+     *
      * 
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -900,13 +997,13 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
      * 
* * string schema_id = 3; + * * @return The schemaId. */ public java.lang.String getSchemaId() { java.lang.Object ref = schemaId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; @@ -915,6 +1012,8 @@ public java.lang.String getSchemaId() { } } /** + * + * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -924,15 +1023,14 @@ public java.lang.String getSchemaId() {
      * 
* * string schema_id = 3; + * * @return The bytes for schemaId. */ - public com.google.protobuf.ByteString - getSchemaIdBytes() { + public com.google.protobuf.ByteString getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaId_ = b; return b; } else { @@ -940,6 +1038,8 @@ public java.lang.String getSchemaId() { } } /** + * + * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -949,18 +1049,22 @@ public java.lang.String getSchemaId() {
      * 
* * string schema_id = 3; + * * @param value The schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -970,6 +1074,7 @@ public Builder setSchemaId(
      * 
* * string schema_id = 3; + * * @return This builder for chaining. */ public Builder clearSchemaId() { @@ -979,6 +1084,8 @@ public Builder clearSchemaId() { return this; } /** + * + * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -988,21 +1095,23 @@ public Builder clearSchemaId() {
      * 
* * string schema_id = 3; + * * @param value The bytes for schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1012,12 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSchemaRequest) private static final com.google.pubsub.v1.CreateSchemaRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.CreateSchemaRequest(); } @@ -1026,27 +1135,27 @@ public static com.google.pubsub.v1.CreateSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSchemaRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSchemaRequest 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; @@ -1061,6 +1170,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.CreateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index db2a7e2b8..b72efe40c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface CreateSchemaRequestOrBuilder extends +public interface CreateSchemaRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSchemaRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project in which to create the schema.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project in which to create the schema.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The schema object to create.
    *
@@ -40,10 +67,13 @@ public interface CreateSchemaRequestOrBuilder extends
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ boolean hasSchema(); /** + * + * *
    * Required. The schema object to create.
    *
@@ -53,10 +83,13 @@ public interface CreateSchemaRequestOrBuilder extends
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); /** + * + * *
    * Required. The schema object to create.
    *
@@ -70,6 +103,8 @@ public interface CreateSchemaRequestOrBuilder extends
   com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder();
 
   /**
+   *
+   *
    * 
    * The ID to use for the schema, which will become the final component of
    * the schema's resource name.
@@ -79,10 +114,13 @@ public interface CreateSchemaRequestOrBuilder extends
    * 
* * string schema_id = 3; + * * @return The schemaId. */ java.lang.String getSchemaId(); /** + * + * *
    * The ID to use for the schema, which will become the final component of
    * the schema's resource name.
@@ -92,8 +130,8 @@ public interface CreateSchemaRequestOrBuilder extends
    * 
* * string schema_id = 3; + * * @return The bytes for schemaId. */ - com.google.protobuf.ByteString - getSchemaIdBytes(); + com.google.protobuf.ByteString getSchemaIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 7c38fb23d..48f0131c2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `CreateSnapshot` method.
  * 
* * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} */ -public final class CreateSnapshotRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSnapshotRequest) CreateSnapshotRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSnapshotRequest.newBuilder() to construct. private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSnapshotRequest() { name_ = ""; subscription_ = ""; @@ -27,14 +45,13 @@ private CreateSnapshotRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSnapshotRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -45,22 +62,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 3: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); + com.google.pubsub.v1.CreateSnapshotRequest.class, + com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. User-provided name for this snapshot. If the name is not provided
    * in the request, the server will assign a random name for this snapshot on
@@ -70,7 +92,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -79,14 +104,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. User-provided name for this snapshot. If the name is not provided
    * in the request, the server will assign a random name for this snapshot on
@@ -96,17 +122,18 @@ public java.lang.String getName() {
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -115,9 +142,12 @@ public java.lang.String getName() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -130,7 +160,10 @@ public java.lang.String getName() {
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -139,14 +172,15 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -159,17 +193,18 @@ public java.lang.String getSubscription() {
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -178,32 +213,34 @@ public java.lang.String getSubscription() { } public static final int LABELS_FIELD_NUMBER = 3; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -212,20 +249,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -238,6 +276,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -246,17 +286,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -265,11 +307,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -277,6 +319,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -288,20 +331,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        3);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
     getUnknownFields().writeTo(output);
   }
 
@@ -317,15 +355,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -335,19 +373,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.CreateSnapshotRequest)) {
       return super.equals(obj);
     }
-    com.google.pubsub.v1.CreateSnapshotRequest other = (com.google.pubsub.v1.CreateSnapshotRequest) obj;
+    com.google.pubsub.v1.CreateSnapshotRequest other =
+        (com.google.pubsub.v1.CreateSnapshotRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getSubscription()
-        .equals(other.getSubscription())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getSubscription().equals(other.getSubscription())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -372,112 +408,117 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.CreateSnapshotRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.CreateSnapshotRequest 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.CreateSnapshotRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.pubsub.v1.CreateSnapshotRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request for the `CreateSnapshot` method.
    * 
* * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSnapshotRequest) com.google.pubsub.v1.CreateSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -487,10 +528,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 3: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -498,28 +539,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 3: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); + com.google.pubsub.v1.CreateSnapshotRequest.class, + com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); } // Construct using com.google.pubsub.v1.CreateSnapshotRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -531,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } @java.lang.Override @@ -552,8 +592,11 @@ public com.google.pubsub.v1.CreateSnapshotRequest build() { @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { - com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.CreateSnapshotRequest result = + new com.google.pubsub.v1.CreateSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -576,38 +619,39 @@ private void buildPartial0(com.google.pubsub.v1.CreateSnapshotRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.CreateSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other); + return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -626,8 +670,7 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { bitField0_ |= 0x00000002; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -655,31 +698,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -689,10 +738,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -702,14 +754,16 @@ public Builder mergeFrom(
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -718,6 +772,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -727,16 +783,17 @@ public java.lang.String getName() {
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -744,6 +801,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -753,19 +812,25 @@ public java.lang.String getName() {
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -775,7 +840,10 @@ public Builder setName(
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -785,6 +853,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -794,13 +864,17 @@ public Builder clearName() {
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -810,6 +884,8 @@ public Builder setNameBytes( private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -822,14 +898,16 @@ public Builder setNameBytes(
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -838,6 +916,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -850,16 +930,17 @@ public java.lang.String getSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -867,6 +948,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -879,19 +962,25 @@ public java.lang.String getSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -904,7 +993,10 @@ public Builder setSubscription(
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -914,6 +1006,8 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -926,13 +1020,17 @@ public Builder clearSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000002; @@ -940,21 +1038,19 @@ public Builder setSubscriptionBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -963,10 +1059,13 @@ public Builder setSubscriptionBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -975,20 +1074,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -1001,6 +1101,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -1009,17 +1111,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -1028,23 +1132,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000004);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -1052,23 +1158,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000004;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -1076,17 +1181,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000004;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -1094,16 +1202,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000004;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1113,12 +1219,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSnapshotRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest)
   private static final com.google.pubsub.v1.CreateSnapshotRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.CreateSnapshotRequest();
   }
@@ -1127,27 +1233,27 @@ public static com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public CreateSnapshotRequest 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();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public CreateSnapshotRequest 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;
@@ -1162,6 +1268,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
index 4380c861f..ecd2d5d2f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
@@ -1,14 +1,32 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.pubsub.v1;
 
-public interface CreateSnapshotRequestOrBuilder extends
+public interface CreateSnapshotRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSnapshotRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. User-provided name for this snapshot. If the name is not provided
    * in the request, the server will assign a random name for this snapshot on
@@ -18,11 +36,16 @@ public interface CreateSnapshotRequestOrBuilder extends
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. User-provided name for this snapshot. If the name is not provided
    * in the request, the server will assign a random name for this snapshot on
@@ -32,13 +55,17 @@ public interface CreateSnapshotRequestOrBuilder extends
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -51,11 +78,16 @@ public interface CreateSnapshotRequestOrBuilder extends
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -68,13 +100,17 @@ public interface CreateSnapshotRequestOrBuilder extends
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -84,6 +120,8 @@ public interface CreateSnapshotRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -91,15 +129,13 @@ public interface CreateSnapshotRequestOrBuilder extends
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -107,9 +143,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -118,11 +155,13 @@ boolean containsLabels(
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -130,6 +169,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1/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
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
index 518aa61ce..a5b1e0132 100644
--- a/owl-bot-staging/v1/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
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
@@ -5,6 +20,8 @@
 package com.google.pubsub.v1;
 
 /**
+ *
+ *
  * 
  * Dead lettering is done on a best effort basis. The same message might be
  * dead lettered multiple times.
@@ -15,43 +32,48 @@
  *
  * Protobuf type {@code google.pubsub.v1.DeadLetterPolicy}
  */
-public final class DeadLetterPolicy extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeadLetterPolicy extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeadLetterPolicy)
     DeadLetterPolicyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeadLetterPolicy.newBuilder() to construct.
   private DeadLetterPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeadLetterPolicy() {
     deadLetterTopic_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeadLetterPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.DeadLetterPolicy.class, com.google.pubsub.v1.DeadLetterPolicy.Builder.class);
+            com.google.pubsub.v1.DeadLetterPolicy.class,
+            com.google.pubsub.v1.DeadLetterPolicy.Builder.class);
   }
 
   public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object deadLetterTopic_ = "";
   /**
+   *
+   *
    * 
    * Optional. The name of the topic to which dead letter messages should be
    * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -65,6 +87,7 @@ protected java.lang.Object newInstance(
    * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The deadLetterTopic. */ @java.lang.Override @@ -73,14 +96,15 @@ public java.lang.String getDeadLetterTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deadLetterTopic_ = s; return s; } } /** + * + * *
    * Optional. The name of the topic to which dead letter messages should be
    * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -94,16 +118,15 @@ public java.lang.String getDeadLetterTopic() {
    * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for deadLetterTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getDeadLetterTopicBytes() { + public com.google.protobuf.ByteString getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deadLetterTopic_ = b; return b; } else { @@ -114,6 +137,8 @@ public java.lang.String getDeadLetterTopic() { public static final int MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER = 2; private int maxDeliveryAttempts_ = 0; /** + * + * *
    * Optional. The maximum number of delivery attempts for any message. The
    * value must be between 5 and 100.
@@ -131,6 +156,7 @@ public java.lang.String getDeadLetterTopic() {
    * 
* * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxDeliveryAttempts. */ @java.lang.Override @@ -139,6 +165,7 @@ public int getMaxDeliveryAttempts() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deadLetterTopic_); } @@ -171,8 +197,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deadLetterTopic_); } if (maxDeliveryAttempts_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, maxDeliveryAttempts_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDeliveryAttempts_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -182,17 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeadLetterPolicy)) { return super.equals(obj); } com.google.pubsub.v1.DeadLetterPolicy other = (com.google.pubsub.v1.DeadLetterPolicy) obj; - if (!getDeadLetterTopic() - .equals(other.getDeadLetterTopic())) return false; - if (getMaxDeliveryAttempts() - != other.getMaxDeliveryAttempts()) return false; + if (!getDeadLetterTopic().equals(other.getDeadLetterTopic())) return false; + if (getMaxDeliveryAttempts() != other.getMaxDeliveryAttempts()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -213,99 +236,103 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeadLetterPolicy parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeadLetterPolicy 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.DeadLetterPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeadLetterPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeadLetterPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.DeadLetterPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Dead lettering is done on a best effort basis. The same message might be
    * dead lettered multiple times.
@@ -316,33 +343,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.DeadLetterPolicy}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeadLetterPolicy)
       com.google.pubsub.v1.DeadLetterPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.DeadLetterPolicy.class, com.google.pubsub.v1.DeadLetterPolicy.Builder.class);
+              com.google.pubsub.v1.DeadLetterPolicy.class,
+              com.google.pubsub.v1.DeadLetterPolicy.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.DeadLetterPolicy.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -353,9 +379,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -374,8 +400,11 @@ public com.google.pubsub.v1.DeadLetterPolicy build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.DeadLetterPolicy buildPartial() {
-      com.google.pubsub.v1.DeadLetterPolicy result = new com.google.pubsub.v1.DeadLetterPolicy(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.pubsub.v1.DeadLetterPolicy result =
+          new com.google.pubsub.v1.DeadLetterPolicy(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -394,38 +423,39 @@ private void buildPartial0(com.google.pubsub.v1.DeadLetterPolicy result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.DeadLetterPolicy) {
-        return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy)other);
+        return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -468,22 +498,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              deadLetterTopic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              maxDeliveryAttempts_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                deadLetterTopic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                maxDeliveryAttempts_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            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) {
@@ -493,10 +526,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object deadLetterTopic_ = "";
     /**
+     *
+     *
      * 
      * Optional. The name of the topic to which dead letter messages should be
      * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -510,13 +546,13 @@ public Builder mergeFrom(
      * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The deadLetterTopic. */ public java.lang.String getDeadLetterTopic() { java.lang.Object ref = deadLetterTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deadLetterTopic_ = s; return s; @@ -525,6 +561,8 @@ public java.lang.String getDeadLetterTopic() { } } /** + * + * *
      * Optional. The name of the topic to which dead letter messages should be
      * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -538,15 +576,14 @@ public java.lang.String getDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for deadLetterTopic. */ - public com.google.protobuf.ByteString - getDeadLetterTopicBytes() { + public com.google.protobuf.ByteString getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); deadLetterTopic_ = b; return b; } else { @@ -554,6 +591,8 @@ public java.lang.String getDeadLetterTopic() { } } /** + * + * *
      * Optional. The name of the topic to which dead letter messages should be
      * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -567,18 +606,22 @@ public java.lang.String getDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeadLetterTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } deadLetterTopic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The name of the topic to which dead letter messages should be
      * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -592,6 +635,7 @@ public Builder setDeadLetterTopic(
      * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { @@ -601,6 +645,8 @@ public Builder clearDeadLetterTopic() { return this; } /** + * + * *
      * Optional. The name of the topic to which dead letter messages should be
      * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -614,12 +660,14 @@ public Builder clearDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); deadLetterTopic_ = value; bitField0_ |= 0x00000001; @@ -627,8 +675,10 @@ public Builder setDeadLetterTopicBytes( return this; } - private int maxDeliveryAttempts_ ; + private int maxDeliveryAttempts_; /** + * + * *
      * Optional. The maximum number of delivery attempts for any message. The
      * value must be between 5 and 100.
@@ -646,6 +696,7 @@ public Builder setDeadLetterTopicBytes(
      * 
* * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxDeliveryAttempts. */ @java.lang.Override @@ -653,6 +704,8 @@ public int getMaxDeliveryAttempts() { return maxDeliveryAttempts_; } /** + * + * *
      * Optional. The maximum number of delivery attempts for any message. The
      * value must be between 5 and 100.
@@ -670,6 +723,7 @@ public int getMaxDeliveryAttempts() {
      * 
* * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The maxDeliveryAttempts to set. * @return This builder for chaining. */ @@ -681,6 +735,8 @@ public Builder setMaxDeliveryAttempts(int value) { return this; } /** + * + * *
      * Optional. The maximum number of delivery attempts for any message. The
      * value must be between 5 and 100.
@@ -698,6 +754,7 @@ public Builder setMaxDeliveryAttempts(int value) {
      * 
* * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMaxDeliveryAttempts() { @@ -706,9 +763,9 @@ public Builder clearMaxDeliveryAttempts() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeadLetterPolicy) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeadLetterPolicy) private static final com.google.pubsub.v1.DeadLetterPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeadLetterPolicy(); } @@ -732,27 +789,27 @@ public static com.google.pubsub.v1.DeadLetterPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeadLetterPolicy 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeadLetterPolicy 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; @@ -767,6 +824,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeadLetterPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/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 similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 0996bbb26..ef589a2a7 100644 --- a/owl-bot-staging/v1/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 @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface DeadLetterPolicyOrBuilder extends +public interface DeadLetterPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeadLetterPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The name of the topic to which dead letter messages should be
    * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -22,10 +40,13 @@ public interface DeadLetterPolicyOrBuilder extends
    * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** + * + * *
    * Optional. The name of the topic to which dead letter messages should be
    * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
@@ -39,12 +60,14 @@ public interface DeadLetterPolicyOrBuilder extends
    * 
* * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for deadLetterTopic. */ - com.google.protobuf.ByteString - getDeadLetterTopicBytes(); + com.google.protobuf.ByteString getDeadLetterTopicBytes(); /** + * + * *
    * Optional. The maximum number of delivery attempts for any message. The
    * value must be between 5 and 100.
@@ -62,6 +85,7 @@ public interface DeadLetterPolicyOrBuilder extends
    * 
* * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxDeliveryAttempts. */ int getMaxDeliveryAttempts(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 574bd559c..d6b1e3c58 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,55 +20,65 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `DeleteSchema` method.
  * 
* * Protobuf type {@code google.pubsub.v1.DeleteSchemaRequest} */ -public final class DeleteSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRequest) DeleteSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSchemaRequest.newBuilder() to construct. private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSchemaRequest.class, com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); + com.google.pubsub.v1.DeleteSchemaRequest.class, + com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the schema to delete.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,30 +87,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the schema to delete.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -94,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -130,15 +157,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteSchemaRequest)) { return super.equals(obj); } com.google.pubsub.v1.DeleteSchemaRequest other = (com.google.pubsub.v1.DeleteSchemaRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +183,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSchemaRequest 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.DeleteSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.DeleteSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `DeleteSchema` method.
    * 
* * Protobuf type {@code google.pubsub.v1.DeleteSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSchemaRequest) com.google.pubsub.v1.DeleteSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSchemaRequest.class, com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); + com.google.pubsub.v1.DeleteSchemaRequest.class, + com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteSchemaRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; } @java.lang.Override @@ -313,8 +343,11 @@ public com.google.pubsub.v1.DeleteSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteSchemaRequest buildPartial() { - com.google.pubsub.v1.DeleteSchemaRequest result = new com.google.pubsub.v1.DeleteSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.DeleteSchemaRequest result = + new com.google.pubsub.v1.DeleteSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +363,39 @@ private void buildPartial0(com.google.pubsub.v1.DeleteSchemaRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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) { @@ -421,23 +457,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -446,21 +487,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -468,30 +512,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -501,27 +556,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSchemaRequest) private static final com.google.pubsub.v1.DeleteSchemaRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSchemaRequest(); } @@ -545,27 +606,27 @@ public static com.google.pubsub.v1.DeleteSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSchemaRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaRequest 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; @@ -580,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java new file mode 100644 index 000000000..9faabb2bc --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface DeleteSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the schema to delete.
+   * Format is `projects/{project}/schemas/{schema}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the schema to delete.
+   * Format is `projects/{project}/schemas/{schema}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 31c0f75c5..5d17ea9f2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `DeleteSchemaRevision` method.
  * 
* * Protobuf type {@code google.pubsub.v1.DeleteSchemaRevisionRequest} */ -public final class DeleteSchemaRevisionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSchemaRevisionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRevisionRequest) DeleteSchemaRevisionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSchemaRevisionRequest.newBuilder() to construct. private DeleteSchemaRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSchemaRevisionRequest() { name_ = ""; revisionId_ = ""; @@ -27,28 +45,32 @@ private DeleteSchemaRevisionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSchemaRevisionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, com.google.pubsub.v1.DeleteSchemaRevisionRequest.Builder.class); + com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, + com.google.pubsub.v1.DeleteSchemaRevisionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the schema revision to be deleted, with a revision ID
    * explicitly included.
@@ -56,7 +78,10 @@ protected java.lang.Object newInstance(
    * Example: `projects/123/schemas/my-schema@c7cfa2a8`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the schema revision to be deleted, with a revision ID
    * explicitly included.
@@ -80,17 +106,18 @@ public java.lang.String getName() {
    * Example: `projects/123/schemas/my-schema@c7cfa2a8`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,53 +126,61 @@ public java.lang.String getName() { } public static final int REVISION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** + * + * *
    * Optional. This field is deprecated and should not be used for specifying
    * the revision ID. The revision ID should be specified via the `name`
    * parameter.
    * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The revisionId. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getRevisionId() { + @java.lang.Deprecated + public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** + * + * *
    * Optional. This field is deprecated and should not be used for specifying
    * the revision ID. The revision ID should be specified via the `name`
    * parameter.
    * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The bytes for revisionId. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getRevisionIdBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -154,6 +189,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -196,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteSchemaRevisionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.DeleteSchemaRevisionRequest other = (com.google.pubsub.v1.DeleteSchemaRevisionRequest) obj; + com.google.pubsub.v1.DeleteSchemaRevisionRequest other = + (com.google.pubsub.v1.DeleteSchemaRevisionRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRevisionId() - .equals(other.getRevisionId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,132 +261,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteSchemaRevisionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest 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.DeleteSchemaRevisionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.DeleteSchemaRevisionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `DeleteSchemaRevision` method.
    * 
* * Protobuf type {@code google.pubsub.v1.DeleteSchemaRevisionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSchemaRevisionRequest) com.google.pubsub.v1.DeleteSchemaRevisionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, com.google.pubsub.v1.DeleteSchemaRevisionRequest.Builder.class); + com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, + com.google.pubsub.v1.DeleteSchemaRevisionRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteSchemaRevisionRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -363,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; } @java.lang.Override @@ -384,8 +422,11 @@ public com.google.pubsub.v1.DeleteSchemaRevisionRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteSchemaRevisionRequest buildPartial() { - com.google.pubsub.v1.DeleteSchemaRevisionRequest result = new com.google.pubsub.v1.DeleteSchemaRevisionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.DeleteSchemaRevisionRequest result = + new com.google.pubsub.v1.DeleteSchemaRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -404,38 +445,39 @@ private void buildPartial0(com.google.pubsub.v1.DeleteSchemaRevisionRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteSchemaRevisionRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSchemaRevisionRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteSchemaRevisionRequest) other); } else { super.mergeFrom(other); return this; @@ -443,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.DeleteSchemaRevisionRequest other) { - if (other == com.google.pubsub.v1.DeleteSchemaRevisionRequest.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.DeleteSchemaRevisionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -480,22 +523,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - revisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -505,10 +551,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the schema revision to be deleted, with a revision ID
      * explicitly included.
@@ -516,14 +565,16 @@ public Builder mergeFrom(
      * Example: `projects/123/schemas/my-schema@c7cfa2a8`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -532,6 +583,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the schema revision to be deleted, with a revision ID
      * explicitly included.
@@ -539,16 +592,17 @@ public java.lang.String getName() {
      * Example: `projects/123/schemas/my-schema@c7cfa2a8`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -556,6 +610,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the schema revision to be deleted, with a revision ID
      * explicitly included.
@@ -563,19 +619,25 @@ public java.lang.String getName() {
      * Example: `projects/123/schemas/my-schema@c7cfa2a8`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the schema revision to be deleted, with a revision ID
      * explicitly included.
@@ -583,7 +645,10 @@ public Builder setName(
      * Example: `projects/123/schemas/my-schema@c7cfa2a8`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -593,6 +658,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the schema revision to be deleted, with a revision ID
      * explicitly included.
@@ -600,13 +667,17 @@ public Builder clearName() {
      * Example: `projects/123/schemas/my-schema@c7cfa2a8`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -616,22 +687,26 @@ public Builder setNameBytes( private java.lang.Object revisionId_ = ""; /** + * + * *
      * Optional. This field is deprecated and should not be used for specifying
      * the revision ID. The revision ID should be specified via the `name`
      * parameter.
      * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The revisionId. */ - @java.lang.Deprecated public java.lang.String getRevisionId() { + @java.lang.Deprecated + public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -640,24 +715,27 @@ public Builder setNameBytes( } } /** + * + * *
      * Optional. This field is deprecated and should not be used for specifying
      * the revision ID. The revision ID should be specified via the `name`
      * parameter.
      * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The bytes for revisionId. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getRevisionIdBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -665,69 +743,86 @@ public Builder setNameBytes( } } /** + * + * *
      * Optional. This field is deprecated and should not be used for specifying
      * the revision ID. The revision ID should be specified via the `name`
      * parameter.
      * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @param value The revisionId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } revisionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. This field is deprecated and should not be used for specifying
      * the revision ID. The revision ID should be specified via the `name`
      * parameter.
      * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearRevisionId() { + @java.lang.Deprecated + public Builder clearRevisionId() { revisionId_ = getDefaultInstance().getRevisionId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** + * + * *
      * Optional. This field is deprecated and should not be used for specifying
      * the revision ID. The revision ID should be specified via the `name`
      * parameter.
      * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -737,12 +832,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSchemaRevisionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSchemaRevisionRequest) private static final com.google.pubsub.v1.DeleteSchemaRevisionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSchemaRevisionRequest(); } @@ -751,27 +846,27 @@ public static com.google.pubsub.v1.DeleteSchemaRevisionRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSchemaRevisionRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaRevisionRequest 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; @@ -786,6 +881,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.pubsub.v1.DeleteSchemaRevisionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index f79b6c422..c795a1e1d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface DeleteSchemaRevisionRequestOrBuilder extends +public interface DeleteSchemaRevisionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRevisionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the schema revision to be deleted, with a revision ID
    * explicitly included.
@@ -16,11 +34,16 @@ public interface DeleteSchemaRevisionRequestOrBuilder extends
    * Example: `projects/123/schemas/my-schema@c7cfa2a8`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the schema revision to be deleted, with a revision ID
    * explicitly included.
@@ -28,37 +51,48 @@ public interface DeleteSchemaRevisionRequestOrBuilder extends
    * Example: `projects/123/schemas/my-schema@c7cfa2a8`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. This field is deprecated and should not be used for specifying
    * the revision ID. The revision ID should be specified via the `name`
    * parameter.
    * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The revisionId. */ - @java.lang.Deprecated java.lang.String getRevisionId(); + @java.lang.Deprecated + java.lang.String getRevisionId(); /** + * + * *
    * Optional. This field is deprecated and should not be used for specifying
    * the revision ID. The revision ID should be specified via the `name`
    * parameter.
    * 
* - * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. - * See google/pubsub/v1/schema.proto;l=331 + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The bytes for revisionId. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getRevisionIdBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getRevisionIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index e9ea914b2..6ce385f7e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,65 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `DeleteSnapshot` method.
  * 
* * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} */ -public final class DeleteSnapshotRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSnapshotRequest) DeleteSnapshotRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSnapshotRequest.newBuilder() to construct. private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSnapshotRequest() { snapshot_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSnapshotRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSnapshotRequest.class, com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); + com.google.pubsub.v1.DeleteSnapshotRequest.class, + com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); } public static final int SNAPSHOT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object snapshot_ = ""; /** + * + * *
    * Required. The name of the snapshot to delete.
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The snapshot. */ @java.lang.Override @@ -62,30 +87,32 @@ public java.lang.String getSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshot_ = s; return s; } } /** + * + * *
    * Required. The name of the snapshot to delete.
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for snapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSnapshotBytes() { + public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); snapshot_ = b; return b; } else { @@ -94,6 +121,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); } @@ -130,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteSnapshotRequest)) { return super.equals(obj); } - com.google.pubsub.v1.DeleteSnapshotRequest other = (com.google.pubsub.v1.DeleteSnapshotRequest) obj; + com.google.pubsub.v1.DeleteSnapshotRequest other = + (com.google.pubsub.v1.DeleteSnapshotRequest) obj; - if (!getSnapshot() - .equals(other.getSnapshot())) return false; + if (!getSnapshot().equals(other.getSnapshot())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +184,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSnapshotRequest 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.DeleteSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.DeleteSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `DeleteSnapshot` method.
    * 
* * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSnapshotRequest) com.google.pubsub.v1.DeleteSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSnapshotRequest.class, com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); + com.google.pubsub.v1.DeleteSnapshotRequest.class, + com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteSnapshotRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } @java.lang.Override @@ -313,8 +344,11 @@ public com.google.pubsub.v1.DeleteSnapshotRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { - com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.DeleteSnapshotRequest result = + new com.google.pubsub.v1.DeleteSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +364,39 @@ private void buildPartial0(com.google.pubsub.v1.DeleteSnapshotRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - snapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + snapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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) { @@ -421,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object snapshot_ = ""; /** + * + * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshot_ = s; return s; @@ -446,21 +488,24 @@ public java.lang.String getSnapshot() { } } /** + * + * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for snapshot. */ - public com.google.protobuf.ByteString - getSnapshotBytes() { + public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); snapshot_ = b; return b; } else { @@ -468,30 +513,41 @@ public java.lang.String getSnapshot() { } } /** + * + * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } snapshot_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -501,27 +557,33 @@ public Builder clearSnapshot() { return this; } /** + * + * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); snapshot_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSnapshotRequest) private static final com.google.pubsub.v1.DeleteSnapshotRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSnapshotRequest(); } @@ -545,27 +607,27 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSnapshotRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSnapshotRequest 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; @@ -580,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java new file mode 100644 index 000000000..fa454e735 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface DeleteSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the snapshot to delete.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The snapshot. + */ + java.lang.String getSnapshot(); + /** + * + * + *
+   * Required. The name of the snapshot to delete.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString getSnapshotBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 63abede54..6dd193063 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,65 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the DeleteSubscription method.
  * 
* * Protobuf type {@code google.pubsub.v1.DeleteSubscriptionRequest} */ -public final class DeleteSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSubscriptionRequest) DeleteSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSubscriptionRequest.newBuilder() to construct. private DeleteSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSubscriptionRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSubscriptionRequest.class, com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DeleteSubscriptionRequest.class, + com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The subscription to delete.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -62,30 +87,32 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The subscription to delete.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -94,6 +121,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -130,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteSubscriptionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.DeleteSubscriptionRequest other = (com.google.pubsub.v1.DeleteSubscriptionRequest) obj; + com.google.pubsub.v1.DeleteSubscriptionRequest other = + (com.google.pubsub.v1.DeleteSubscriptionRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +184,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSubscriptionRequest 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.DeleteSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.DeleteSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the DeleteSubscription method.
    * 
* * Protobuf type {@code google.pubsub.v1.DeleteSubscriptionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSubscriptionRequest) com.google.pubsub.v1.DeleteSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSubscriptionRequest.class, com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DeleteSubscriptionRequest.class, + com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteSubscriptionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override @@ -313,8 +344,11 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { - com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.DeleteSubscriptionRequest result = + new com.google.pubsub.v1.DeleteSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +364,39 @@ private void buildPartial0(com.google.pubsub.v1.DeleteSubscriptionRequest result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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) { @@ -421,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -446,21 +488,24 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -468,30 +513,41 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -501,27 +557,33 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSubscriptionRequest) private static final com.google.pubsub.v1.DeleteSubscriptionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSubscriptionRequest(); } @@ -545,27 +607,27 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSubscriptionRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSubscriptionRequest 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; @@ -580,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..22525f2bd --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface DeleteSubscriptionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The subscription to delete.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + * + * + *
+   * Required. The subscription to delete.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString getSubscriptionBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index c07cedb43..6691a8e02 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,65 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `DeleteTopic` method.
  * 
* * Protobuf type {@code google.pubsub.v1.DeleteTopicRequest} */ -public final class DeleteTopicRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteTopicRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteTopicRequest) DeleteTopicRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteTopicRequest.newBuilder() to construct. private DeleteTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteTopicRequest() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteTopicRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteTopicRequest.class, com.google.pubsub.v1.DeleteTopicRequest.Builder.class); + com.google.pubsub.v1.DeleteTopicRequest.class, + com.google.pubsub.v1.DeleteTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Required. Name of the topic to delete.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ @java.lang.Override @@ -62,30 +87,32 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
    * Required. Name of the topic to delete.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -94,6 +121,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -130,15 +157,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteTopicRequest)) { return super.equals(obj); } com.google.pubsub.v1.DeleteTopicRequest other = (com.google.pubsub.v1.DeleteTopicRequest) obj; - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getTopic().equals(other.getTopic())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +183,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DeleteTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteTopicRequest 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.DeleteTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.DeleteTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `DeleteTopic` method.
    * 
* * Protobuf type {@code google.pubsub.v1.DeleteTopicRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteTopicRequest) com.google.pubsub.v1.DeleteTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteTopicRequest.class, com.google.pubsub.v1.DeleteTopicRequest.Builder.class); + com.google.pubsub.v1.DeleteTopicRequest.class, + com.google.pubsub.v1.DeleteTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteTopicRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override @@ -313,8 +343,11 @@ public com.google.pubsub.v1.DeleteTopicRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { - com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.DeleteTopicRequest result = + new com.google.pubsub.v1.DeleteTopicRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +363,39 @@ private void buildPartial0(com.google.pubsub.v1.DeleteTopicRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DeleteTopicRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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) { @@ -421,23 +457,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -446,21 +487,24 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -468,30 +512,41 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -501,27 +556,33 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteTopicRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteTopicRequest) private static final com.google.pubsub.v1.DeleteTopicRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteTopicRequest(); } @@ -545,27 +606,27 @@ public static com.google.pubsub.v1.DeleteTopicRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTopicRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTopicRequest 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; @@ -580,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java new file mode 100644 index 000000000..236ae63cc --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface DeleteTopicRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the topic to delete.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+   * Required. Name of the topic to delete.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 44f27dcc4..ed63937e3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,65 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the DetachSubscription method.
  * 
* * Protobuf type {@code google.pubsub.v1.DetachSubscriptionRequest} */ -public final class DetachSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DetachSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionRequest) DetachSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DetachSubscriptionRequest.newBuilder() to construct. private DetachSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DetachSubscriptionRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetachSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DetachSubscriptionRequest.class, com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DetachSubscriptionRequest.class, + com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The subscription to detach.
    * Format is `projects/{project}/subscriptions/{subscription}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -62,30 +87,32 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The subscription to detach.
    * Format is `projects/{project}/subscriptions/{subscription}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -94,6 +121,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -130,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DetachSubscriptionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.DetachSubscriptionRequest other = (com.google.pubsub.v1.DetachSubscriptionRequest) obj; + com.google.pubsub.v1.DetachSubscriptionRequest other = + (com.google.pubsub.v1.DetachSubscriptionRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +184,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.DetachSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DetachSubscriptionRequest 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.DetachSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.DetachSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the DetachSubscription method.
    * 
* * Protobuf type {@code google.pubsub.v1.DetachSubscriptionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DetachSubscriptionRequest) com.google.pubsub.v1.DetachSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DetachSubscriptionRequest.class, com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DetachSubscriptionRequest.class, + com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.DetachSubscriptionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; } @java.lang.Override @@ -313,8 +344,11 @@ public com.google.pubsub.v1.DetachSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.DetachSubscriptionRequest buildPartial() { - com.google.pubsub.v1.DetachSubscriptionRequest result = new com.google.pubsub.v1.DetachSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.DetachSubscriptionRequest result = + new com.google.pubsub.v1.DetachSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +364,39 @@ private void buildPartial0(com.google.pubsub.v1.DetachSubscriptionRequest result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.DetachSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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) { @@ -421,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -446,21 +488,24 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -468,30 +513,41 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -501,27 +557,33 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DetachSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DetachSubscriptionRequest) private static final com.google.pubsub.v1.DetachSubscriptionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DetachSubscriptionRequest(); } @@ -545,27 +607,27 @@ public static com.google.pubsub.v1.DetachSubscriptionRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetachSubscriptionRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachSubscriptionRequest 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; @@ -580,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.DetachSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..0fa26b570 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface DetachSubscriptionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The subscription to detach.
+   * Format is `projects/{project}/subscriptions/{subscription}`.
+   * 
+ * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + * + * + *
+   * Required. The subscription to detach.
+   * Format is `projects/{project}/subscriptions/{subscription}`.
+   * 
+ * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString getSubscriptionBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 612ca60fe..8974d658a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,6 +20,8 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the DetachSubscription method.
  * Reserved for future use.
@@ -12,39 +29,41 @@
  *
  * Protobuf type {@code google.pubsub.v1.DetachSubscriptionResponse}
  */
-public final class DetachSubscriptionResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DetachSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionResponse)
     DetachSubscriptionResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DetachSubscriptionResponse.newBuilder() to construct.
   private DetachSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private DetachSubscriptionResponse() {
-  }
+
+  private DetachSubscriptionResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DetachSubscriptionResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.DetachSubscriptionResponse.class, com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class);
+            com.google.pubsub.v1.DetachSubscriptionResponse.class,
+            com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -56,8 +75,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -75,12 +93,13 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.DetachSubscriptionResponse)) {
       return super.equals(obj);
     }
-    com.google.pubsub.v1.DetachSubscriptionResponse other = (com.google.pubsub.v1.DetachSubscriptionResponse) obj;
+    com.google.pubsub.v1.DetachSubscriptionResponse other =
+        (com.google.pubsub.v1.DetachSubscriptionResponse) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -98,99 +117,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.DetachSubscriptionResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.DetachSubscriptionResponse 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.DetachSubscriptionResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.pubsub.v1.DetachSubscriptionResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response for the DetachSubscription method.
    * Reserved for future use.
@@ -198,33 +222,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.DetachSubscriptionResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DetachSubscriptionResponse)
       com.google.pubsub.v1.DetachSubscriptionResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.DetachSubscriptionResponse.class, com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class);
+              com.google.pubsub.v1.DetachSubscriptionResponse.class,
+              com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.DetachSubscriptionResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -232,9 +255,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
     }
 
     @java.lang.Override
@@ -253,7 +276,8 @@ public com.google.pubsub.v1.DetachSubscriptionResponse build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.DetachSubscriptionResponse buildPartial() {
-      com.google.pubsub.v1.DetachSubscriptionResponse result = new com.google.pubsub.v1.DetachSubscriptionResponse(this);
+      com.google.pubsub.v1.DetachSubscriptionResponse result =
+          new com.google.pubsub.v1.DetachSubscriptionResponse(this);
       onBuilt();
       return result;
     }
@@ -262,38 +286,39 @@ public com.google.pubsub.v1.DetachSubscriptionResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.DetachSubscriptionResponse) {
-        return mergeFrom((com.google.pubsub.v1.DetachSubscriptionResponse)other);
+        return mergeFrom((com.google.pubsub.v1.DetachSubscriptionResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -301,7 +326,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.pubsub.v1.DetachSubscriptionResponse other) {
-      if (other == com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance()) return this;
+      if (other == com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -328,12 +354,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            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) {
@@ -343,9 +370,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -355,12 +382,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DetachSubscriptionResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.DetachSubscriptionResponse)
   private static final com.google.pubsub.v1.DetachSubscriptionResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.DetachSubscriptionResponse();
   }
@@ -369,27 +396,27 @@ public static com.google.pubsub.v1.DetachSubscriptionResponse getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public DetachSubscriptionResponse 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();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public DetachSubscriptionResponse 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;
@@ -404,6 +431,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.pubsub.v1.DetachSubscriptionResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java
new file mode 100644
index 000000000..0d50e273c
--- /dev/null
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/pubsub.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.pubsub.v1;
+
+public interface DetachSubscriptionResponseOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionResponse)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
index 4167d77db..5fa8f2e58 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/schema.proto
 
@@ -5,15 +20,18 @@
 package com.google.pubsub.v1;
 
 /**
+ *
+ *
  * 
  * Possible encoding types for messages.
  * 
* * Protobuf enum {@code google.pubsub.v1.Encoding} */ -public enum Encoding - implements com.google.protobuf.ProtocolMessageEnum { +public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified
    * 
@@ -22,6 +40,8 @@ public enum Encoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
    * JSON encoding
    * 
@@ -30,6 +50,8 @@ public enum Encoding */ JSON(1), /** + * + * *
    * Binary encoding, as defined by the schema type. For some schema types,
    * binary encoding may not be available.
@@ -42,6 +64,8 @@ public enum Encoding
   ;
 
   /**
+   *
+   *
    * 
    * Unspecified
    * 
@@ -50,6 +74,8 @@ public enum Encoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
    * JSON encoding
    * 
@@ -58,6 +84,8 @@ public enum Encoding */ public static final int JSON_VALUE = 1; /** + * + * *
    * Binary encoding, as defined by the schema type. For some schema types,
    * binary encoding may not be available.
@@ -67,7 +95,6 @@ public enum Encoding
    */
   public static final int BINARY_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -92,49 +119,49 @@ public static Encoding valueOf(int value) {
    */
   public static Encoding forNumber(int value) {
     switch (value) {
-      case 0: return ENCODING_UNSPECIFIED;
-      case 1: return JSON;
-      case 2: return BINARY;
-      default: return null;
+      case 0:
+        return ENCODING_UNSPECIFIED;
+      case 1:
+        return JSON;
+      case 2:
+        return BINARY;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      Encoding> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Encoding findValueByNumber(int number) {
-            return Encoding.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public Encoding findValueByNumber(int number) {
+          return Encoding.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.pubsub.v1.SchemaProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final Encoding[] VALUES = values();
 
-  public static Encoding valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static Encoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -150,4 +177,3 @@ private Encoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Encoding)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
index e42396d17..cf5dfe323 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
@@ -5,6 +20,8 @@
 package com.google.pubsub.v1;
 
 /**
+ *
+ *
  * 
  * A policy that specifies the conditions for resource expiration (i.e.,
  * automatic resource deletion).
@@ -12,42 +29,45 @@
  *
  * Protobuf type {@code google.pubsub.v1.ExpirationPolicy}
  */
-public final class ExpirationPolicy extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ExpirationPolicy extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.ExpirationPolicy)
     ExpirationPolicyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ExpirationPolicy.newBuilder() to construct.
   private ExpirationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ExpirationPolicy() {
-  }
+
+  private ExpirationPolicy() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ExpirationPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.ExpirationPolicy.class, com.google.pubsub.v1.ExpirationPolicy.Builder.class);
+            com.google.pubsub.v1.ExpirationPolicy.class,
+            com.google.pubsub.v1.ExpirationPolicy.Builder.class);
   }
 
   private int bitField0_;
   public static final int TTL_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration ttl_;
   /**
+   *
+   *
    * 
    * Optional. Specifies the "time-to-live" duration for an associated resource.
    * The resource expires if it is not active for a period of `ttl`. The
@@ -58,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -65,6 +86,8 @@ public boolean hasTtl() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. Specifies the "time-to-live" duration for an associated resource.
    * The resource expires if it is not active for a period of `ttl`. The
@@ -75,6 +98,7 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ttl. */ @java.lang.Override @@ -82,6 +106,8 @@ public com.google.protobuf.Duration getTtl() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } /** + * + * *
    * Optional. Specifies the "time-to-live" duration for an associated resource.
    * The resource expires if it is not active for a period of `ttl`. The
@@ -99,6 +125,7 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -110,8 +137,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getTtl());
     }
@@ -125,8 +151,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getTtl());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTtl());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -136,7 +161,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.ExpirationPolicy)) {
       return super.equals(obj);
@@ -145,8 +170,7 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasTtl() != other.hasTtl()) return false;
     if (hasTtl()) {
-      if (!getTtl()
-          .equals(other.getTtl())) return false;
+      if (!getTtl().equals(other.getTtl())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -168,99 +192,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.ExpirationPolicy parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ExpirationPolicy 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.ExpirationPolicy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.pubsub.v1.ExpirationPolicy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A policy that specifies the conditions for resource expiration (i.e.,
    * automatic resource deletion).
@@ -268,21 +296,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.ExpirationPolicy}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ExpirationPolicy)
       com.google.pubsub.v1.ExpirationPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.ExpirationPolicy.class, com.google.pubsub.v1.ExpirationPolicy.Builder.class);
+              com.google.pubsub.v1.ExpirationPolicy.class,
+              com.google.pubsub.v1.ExpirationPolicy.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.ExpirationPolicy.newBuilder()
@@ -290,17 +320,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getTtlFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -314,9 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -335,8 +365,11 @@ public com.google.pubsub.v1.ExpirationPolicy build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.ExpirationPolicy buildPartial() {
-      com.google.pubsub.v1.ExpirationPolicy result = new com.google.pubsub.v1.ExpirationPolicy(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.pubsub.v1.ExpirationPolicy result =
+          new com.google.pubsub.v1.ExpirationPolicy(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -345,9 +378,7 @@ private void buildPartial0(com.google.pubsub.v1.ExpirationPolicy result) {
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.ttl_ = ttlBuilder_ == null
-            ? ttl_
-            : ttlBuilder_.build();
+        result.ttl_ = ttlBuilder_ == null ? ttl_ : ttlBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -357,38 +388,39 @@ private void buildPartial0(com.google.pubsub.v1.ExpirationPolicy result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.ExpirationPolicy) {
-        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy)other);
+        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -426,19 +458,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getTtlFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            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) {
@@ -448,12 +480,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Duration ttl_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        ttlBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -464,12 +502,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the ttl field is set. */ public boolean hasTtl() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -480,6 +521,7 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ttl. */ public com.google.protobuf.Duration getTtl() { @@ -490,6 +532,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -515,6 +559,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -526,8 +572,7 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setTtl(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         ttl_ = builderForValue.build();
       } else {
@@ -538,6 +583,8 @@ public Builder setTtl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -551,9 +598,9 @@ public Builder setTtl(
      */
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          ttl_ != null &&
-          ttl_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && ttl_ != null
+            && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTtlBuilder().mergeFrom(value);
         } else {
           ttl_ = value;
@@ -568,6 +615,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -590,6 +639,8 @@ public Builder clearTtl() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -607,6 +658,8 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() {
       return getTtlFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -622,11 +675,12 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       if (ttlBuilder_ != null) {
         return ttlBuilder_.getMessageOrBuilder();
       } else {
-        return ttl_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : ttl_;
+        return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional. Specifies the "time-to-live" duration for an associated resource.
      * The resource expires if it is not active for a period of `ttl`. The
@@ -639,21 +693,23 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
-        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTtl(),
-                getParentForChildren(),
-                isClean());
+        ttlBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(getTtl(), getParentForChildren(), isClean());
         ttl_ = null;
       }
       return ttlBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -663,12 +719,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ExpirationPolicy)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.ExpirationPolicy)
   private static final com.google.pubsub.v1.ExpirationPolicy DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.ExpirationPolicy();
   }
@@ -677,27 +733,27 @@ public static com.google.pubsub.v1.ExpirationPolicy getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ExpirationPolicy 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();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ExpirationPolicy 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;
@@ -712,6 +768,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ExpirationPolicy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
index a5494ab08..39d5d21b7 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
@@ -1,14 +1,32 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.pubsub.v1;
 
-public interface ExpirationPolicyOrBuilder extends
+public interface ExpirationPolicyOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ExpirationPolicy)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. Specifies the "time-to-live" duration for an associated resource.
    * The resource expires if it is not active for a period of `ttl`. The
@@ -19,10 +37,13 @@ public interface ExpirationPolicyOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * Optional. Specifies the "time-to-live" duration for an associated resource.
    * The resource expires if it is not active for a period of `ttl`. The
@@ -33,10 +54,13 @@ public interface ExpirationPolicyOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * Optional. Specifies the "time-to-live" duration for an associated resource.
    * The resource expires if it is not active for a period of `ttl`. The
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
index a99f9bd84..a849d24bc 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/schema.proto
 
@@ -5,21 +20,24 @@
 package com.google.pubsub.v1;
 
 /**
+ *
+ *
  * 
  * Request for the GetSchema method.
  * 
* * Protobuf type {@code google.pubsub.v1.GetSchemaRequest} */ -public final class GetSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSchemaRequest) GetSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSchemaRequest.newBuilder() to construct. private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSchemaRequest() { name_ = ""; view_ = 0; @@ -27,34 +45,41 @@ private GetSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSchemaRequest.class, com.google.pubsub.v1.GetSchemaRequest.Builder.class); + com.google.pubsub.v1.GetSchemaRequest.class, + com.google.pubsub.v1.GetSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the schema to get.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the schema to get.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,32 +124,41 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** + * + * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with all fields filled out. Set to `BASIC` to omit the `definition`.
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with all fields filled out. Set to `BASIC` to omit the `definition`.
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ - @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,8 +170,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -155,8 +190,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, view_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -166,15 +200,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.GetSchemaRequest)) { return super.equals(obj); } com.google.pubsub.v1.GetSchemaRequest other = (com.google.pubsub.v1.GetSchemaRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -196,132 +229,135 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.GetSchemaRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.GetSchemaRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetSchemaRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSchemaRequest 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.GetSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.GetSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetSchemaRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.GetSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the GetSchema method.
    * 
* * Protobuf type {@code google.pubsub.v1.GetSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSchemaRequest) com.google.pubsub.v1.GetSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSchemaRequest.class, com.google.pubsub.v1.GetSchemaRequest.Builder.class); + com.google.pubsub.v1.GetSchemaRequest.class, + com.google.pubsub.v1.GetSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetSchemaRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -332,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; } @java.lang.Override @@ -353,8 +389,11 @@ public com.google.pubsub.v1.GetSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.GetSchemaRequest buildPartial() { - com.google.pubsub.v1.GetSchemaRequest result = new com.google.pubsub.v1.GetSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.GetSchemaRequest result = + new com.google.pubsub.v1.GetSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -373,38 +412,39 @@ private void buildPartial0(com.google.pubsub.v1.GetSchemaRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.GetSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.GetSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -447,22 +487,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - view_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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) { @@ -472,23 +515,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -497,21 +545,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -519,30 +570,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -552,18 +614,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -573,24 +641,31 @@ public Builder setNameBytes( private int view_ = 0; /** + * + * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with all fields filled out. Set to `BASIC` to omit the `definition`.
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with all fields filled out. Set to `BASIC` to omit the `definition`.
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -601,12 +676,15 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with all fields filled out. Set to `BASIC` to omit the `definition`.
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ @java.lang.Override @@ -615,12 +693,15 @@ public com.google.pubsub.v1.SchemaView getView() { return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } /** + * + * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with all fields filled out. Set to `BASIC` to omit the `definition`.
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @param value The view to set. * @return This builder for chaining. */ @@ -634,12 +715,15 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { return this; } /** + * + * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with all fields filled out. Set to `BASIC` to omit the `definition`.
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return This builder for chaining. */ public Builder clearView() { @@ -648,9 +732,9 @@ public Builder clearView() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -660,12 +744,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSchemaRequest) private static final com.google.pubsub.v1.GetSchemaRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSchemaRequest(); } @@ -674,27 +758,27 @@ public static com.google.pubsub.v1.GetSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSchemaRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSchemaRequest 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; @@ -709,6 +793,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 9d88398b5..09647ffce 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,52 +1,83 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface GetSchemaRequestOrBuilder extends +public interface GetSchemaRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSchemaRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the schema to get.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the schema to get.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with all fields filled out. Set to `BASIC` to omit the `definition`.
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with all fields filled out. Set to `BASIC` to omit the `definition`.
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ com.google.pubsub.v1.SchemaView getView(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index a9a51cbae..5e453d1f7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,65 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the GetSnapshot method.
  * 
* * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} */ -public final class GetSnapshotRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSnapshotRequest) GetSnapshotRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSnapshotRequest.newBuilder() to construct. private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSnapshotRequest() { snapshot_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSnapshotRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSnapshotRequest.class, com.google.pubsub.v1.GetSnapshotRequest.Builder.class); + com.google.pubsub.v1.GetSnapshotRequest.class, + com.google.pubsub.v1.GetSnapshotRequest.Builder.class); } public static final int SNAPSHOT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object snapshot_ = ""; /** + * + * *
    * Required. The name of the snapshot to get.
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The snapshot. */ @java.lang.Override @@ -62,30 +87,32 @@ public java.lang.String getSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshot_ = s; return s; } } /** + * + * *
    * Required. The name of the snapshot to get.
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for snapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSnapshotBytes() { + public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); snapshot_ = b; return b; } else { @@ -94,6 +121,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); } @@ -130,15 +157,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.GetSnapshotRequest)) { return super.equals(obj); } com.google.pubsub.v1.GetSnapshotRequest other = (com.google.pubsub.v1.GetSnapshotRequest) obj; - if (!getSnapshot() - .equals(other.getSnapshot())) return false; + if (!getSnapshot().equals(other.getSnapshot())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +183,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSnapshotRequest 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.GetSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.GetSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the GetSnapshot method.
    * 
* * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSnapshotRequest) com.google.pubsub.v1.GetSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSnapshotRequest.class, com.google.pubsub.v1.GetSnapshotRequest.Builder.class); + com.google.pubsub.v1.GetSnapshotRequest.class, + com.google.pubsub.v1.GetSnapshotRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetSnapshotRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } @java.lang.Override @@ -313,8 +343,11 @@ public com.google.pubsub.v1.GetSnapshotRequest build() { @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { - com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.GetSnapshotRequest result = + new com.google.pubsub.v1.GetSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +363,39 @@ private void buildPartial0(com.google.pubsub.v1.GetSnapshotRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other); + return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - snapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + snapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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) { @@ -421,23 +457,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object snapshot_ = ""; /** + * + * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshot_ = s; return s; @@ -446,21 +487,24 @@ public java.lang.String getSnapshot() { } } /** + * + * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for snapshot. */ - public com.google.protobuf.ByteString - getSnapshotBytes() { + public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); snapshot_ = b; return b; } else { @@ -468,30 +512,41 @@ public java.lang.String getSnapshot() { } } /** + * + * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } snapshot_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -501,27 +556,33 @@ public Builder clearSnapshot() { return this; } /** + * + * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); snapshot_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSnapshotRequest) private static final com.google.pubsub.v1.GetSnapshotRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSnapshotRequest(); } @@ -545,27 +606,27 @@ public static com.google.pubsub.v1.GetSnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSnapshotRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSnapshotRequest 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; @@ -580,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java new file mode 100644 index 000000000..24afcaa92 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface GetSnapshotRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the snapshot to get.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The snapshot. + */ + java.lang.String getSnapshot(); + /** + * + * + *
+   * Required. The name of the snapshot to get.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString getSnapshotBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index ee5d003c0..b46914346 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,65 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the GetSubscription method.
  * 
* * Protobuf type {@code google.pubsub.v1.GetSubscriptionRequest} */ -public final class GetSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSubscriptionRequest) GetSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSubscriptionRequest.newBuilder() to construct. private GetSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSubscriptionRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSubscriptionRequest.class, com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); + com.google.pubsub.v1.GetSubscriptionRequest.class, + com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The name of the subscription to get.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -62,30 +87,32 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The name of the subscription to get.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -94,6 +121,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -130,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.GetSubscriptionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.GetSubscriptionRequest other = (com.google.pubsub.v1.GetSubscriptionRequest) obj; + com.google.pubsub.v1.GetSubscriptionRequest other = + (com.google.pubsub.v1.GetSubscriptionRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +184,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSubscriptionRequest 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.GetSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.GetSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the GetSubscription method.
    * 
* * Protobuf type {@code google.pubsub.v1.GetSubscriptionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSubscriptionRequest) com.google.pubsub.v1.GetSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSubscriptionRequest.class, com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); + com.google.pubsub.v1.GetSubscriptionRequest.class, + com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetSubscriptionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override @@ -313,8 +344,11 @@ public com.google.pubsub.v1.GetSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { - com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.GetSubscriptionRequest result = + new com.google.pubsub.v1.GetSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +364,39 @@ private void buildPartial0(com.google.pubsub.v1.GetSubscriptionRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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) { @@ -421,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -446,21 +488,24 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -468,30 +513,41 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -501,27 +557,33 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSubscriptionRequest) private static final com.google.pubsub.v1.GetSubscriptionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSubscriptionRequest(); } @@ -545,27 +607,27 @@ public static com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSubscriptionRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSubscriptionRequest 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; @@ -580,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..b9fd18e9c --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface GetSubscriptionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the subscription to get.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + * + * + *
+   * Required. The name of the subscription to get.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString getSubscriptionBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 30a973ad7..237a22107 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,65 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the GetTopic method.
  * 
* * Protobuf type {@code google.pubsub.v1.GetTopicRequest} */ -public final class GetTopicRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetTopicRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetTopicRequest) GetTopicRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetTopicRequest.newBuilder() to construct. private GetTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetTopicRequest() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetTopicRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetTopicRequest.class, com.google.pubsub.v1.GetTopicRequest.Builder.class); + com.google.pubsub.v1.GetTopicRequest.class, + com.google.pubsub.v1.GetTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Required. The name of the topic to get.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ @java.lang.Override @@ -62,30 +87,32 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
    * Required. The name of the topic to get.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -94,6 +121,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -130,15 +157,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.GetTopicRequest)) { return super.equals(obj); } com.google.pubsub.v1.GetTopicRequest other = (com.google.pubsub.v1.GetTopicRequest) obj; - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getTopic().equals(other.getTopic())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,132 +183,135 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.GetTopicRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.GetTopicRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.GetTopicRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.GetTopicRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetTopicRequest 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.GetTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.GetTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetTopicRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetTopicRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.GetTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the GetTopic method.
    * 
* * Protobuf type {@code google.pubsub.v1.GetTopicRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetTopicRequest) com.google.pubsub.v1.GetTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetTopicRequest.class, com.google.pubsub.v1.GetTopicRequest.Builder.class); + com.google.pubsub.v1.GetTopicRequest.class, + com.google.pubsub.v1.GetTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetTopicRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override @@ -314,7 +343,9 @@ public com.google.pubsub.v1.GetTopicRequest build() { @java.lang.Override public com.google.pubsub.v1.GetTopicRequest buildPartial() { com.google.pubsub.v1.GetTopicRequest result = new com.google.pubsub.v1.GetTopicRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +361,39 @@ private void buildPartial0(com.google.pubsub.v1.GetTopicRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.GetTopicRequest) { - return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.GetTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +433,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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) { @@ -421,23 +455,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -446,21 +485,24 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -468,30 +510,41 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -501,27 +554,33 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -531,12 +590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetTopicRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetTopicRequest) private static final com.google.pubsub.v1.GetTopicRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.GetTopicRequest(); } @@ -545,27 +604,27 @@ public static com.google.pubsub.v1.GetTopicRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTopicRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTopicRequest 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; @@ -580,6 +639,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java new file mode 100644 index 000000000..423d0053c --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface GetTopicRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the topic to get.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+   * Required. The name of the topic to get.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 4ccf34374..d11c4acfc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,112 +20,138 @@ package com.google.pubsub.v1; /** + * + * *
  * Settings for an ingestion data source on a topic.
  * 
* * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings} */ -public final class IngestionDataSourceSettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IngestionDataSourceSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings) IngestionDataSourceSettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IngestionDataSourceSettings.newBuilder() to construct. private IngestionDataSourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IngestionDataSourceSettings() { - } + + private IngestionDataSourceSettings() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IngestionDataSourceSettings(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionDataSourceSettings.class, com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + com.google.pubsub.v1.IngestionDataSourceSettings.class, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); } - public interface AwsKinesisOrBuilder extends + public interface AwsKinesisOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. An output-only field that indicates the state of the Kinesis
      * ingestion source.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
      * Output only. An output-only field that indicates the state of the Kinesis
      * ingestion source.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState(); /** + * + * *
      * Required. The Kinesis stream ARN to ingest data from.
      * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamArn. */ java.lang.String getStreamArn(); /** + * + * *
      * Required. The Kinesis stream ARN to ingest data from.
      * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamArn. */ - com.google.protobuf.ByteString - getStreamArnBytes(); + com.google.protobuf.ByteString getStreamArnBytes(); /** + * + * *
      * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
      * Fan-Out mode. The consumer must be already created and ready to be used.
      * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The consumerArn. */ java.lang.String getConsumerArn(); /** + * + * *
      * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
      * Fan-Out mode. The consumer must be already created and ready to be used.
      * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for consumerArn. */ - com.google.protobuf.ByteString - getConsumerArnBytes(); + com.google.protobuf.ByteString getConsumerArnBytes(); /** + * + * *
      * Required. AWS role ARN to be used for Federated Identity authentication
      * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -118,10 +159,13 @@ public interface AwsKinesisOrBuilder extends
      * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The awsRoleArn. */ java.lang.String getAwsRoleArn(); /** + * + * *
      * Required. AWS role ARN to be used for Federated Identity authentication
      * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -129,12 +173,14 @@ public interface AwsKinesisOrBuilder extends
      * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for awsRoleArn. */ - com.google.protobuf.ByteString - getAwsRoleArnBytes(); + com.google.protobuf.ByteString getAwsRoleArnBytes(); /** + * + * *
      * Required. The GCP service account to be used for Federated Identity
      * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -143,10 +189,13 @@ public interface AwsKinesisOrBuilder extends
      * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); /** + * + * *
      * Required. The GCP service account to be used for Federated Identity
      * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -155,27 +204,30 @@ public interface AwsKinesisOrBuilder extends
      * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gcpServiceAccount. */ - com.google.protobuf.ByteString - getGcpServiceAccountBytes(); + com.google.protobuf.ByteString getGcpServiceAccountBytes(); } /** + * + * *
    * Ingestion settings for Amazon Kinesis Data Streams.
    * 
* * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} */ - public static final class AwsKinesis extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AwsKinesis extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) AwsKinesisOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AwsKinesis.newBuilder() to construct. private AwsKinesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AwsKinesis() { state_ = 0; streamArn_ = ""; @@ -186,34 +238,38 @@ private AwsKinesis() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AwsKinesis(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.class, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder.class); + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder.class); } /** + * + * *
      * Possible states for managed ingestion from Amazon Kinesis Data Streams.
      * 
* * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Default value. This value is unused.
        * 
@@ -222,6 +278,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
        * Ingestion is active.
        * 
@@ -230,6 +288,8 @@ public enum State */ ACTIVE(1), /** + * + * *
        * Permission denied encountered while consuming data from Kinesis.
        * This can happen if:
@@ -246,6 +306,8 @@ public enum State
        */
       KINESIS_PERMISSION_DENIED(2),
       /**
+       *
+       *
        * 
        * Permission denied encountered while publishing to the topic. This can
        * happen due to Pub/Sub SA has not been granted the [appropriate publish
@@ -256,6 +318,8 @@ public enum State
        */
       PUBLISH_PERMISSION_DENIED(3),
       /**
+       *
+       *
        * 
        * The Kinesis stream does not exist.
        * 
@@ -264,6 +328,8 @@ public enum State */ STREAM_NOT_FOUND(4), /** + * + * *
        * The Kinesis consumer does not exist.
        * 
@@ -275,6 +341,8 @@ public enum State ; /** + * + * *
        * Default value. This value is unused.
        * 
@@ -283,6 +351,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Ingestion is active.
        * 
@@ -291,6 +361,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
        * Permission denied encountered while consuming data from Kinesis.
        * This can happen if:
@@ -307,6 +379,8 @@ public enum State
        */
       public static final int KINESIS_PERMISSION_DENIED_VALUE = 2;
       /**
+       *
+       *
        * 
        * Permission denied encountered while publishing to the topic. This can
        * happen due to Pub/Sub SA has not been granted the [appropriate publish
@@ -317,6 +391,8 @@ public enum State
        */
       public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3;
       /**
+       *
+       *
        * 
        * The Kinesis stream does not exist.
        * 
@@ -325,6 +401,8 @@ public enum State */ public static final int STREAM_NOT_FOUND_VALUE = 4; /** + * + * *
        * The Kinesis consumer does not exist.
        * 
@@ -333,7 +411,6 @@ public enum State */ public static final int CONSUMER_NOT_FOUND_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -358,52 +435,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return KINESIS_PERMISSION_DENIED; - case 3: return PUBLISH_PERMISSION_DENIED; - case 4: return STREAM_NOT_FOUND; - case 5: return CONSUMER_NOT_FOUND; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return KINESIS_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return STREAM_NOT_FOUND; + case 5: + return CONSUMER_NOT_FOUND; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -423,40 +505,59 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; /** + * + * *
      * Output only. An output-only field that indicates the state of the Kinesis
      * ingestion source.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. An output-only field that indicates the state of the Kinesis
      * ingestion source.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState() { - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State result = com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.forNumber(state_); - return result == null ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED + : result; } public static final int STREAM_ARN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object streamArn_ = ""; /** + * + * *
      * Required. The Kinesis stream ARN to ingest data from.
      * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamArn. */ @java.lang.Override @@ -465,29 +566,29 @@ public java.lang.String getStreamArn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamArn_ = s; return s; } } /** + * + * *
      * Required. The Kinesis stream ARN to ingest data from.
      * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamArn. */ @java.lang.Override - public com.google.protobuf.ByteString - getStreamArnBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streamArn_ = b; return b; } else { @@ -496,15 +597,19 @@ public java.lang.String getStreamArn() { } public static final int CONSUMER_ARN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object consumerArn_ = ""; /** + * + * *
      * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
      * Fan-Out mode. The consumer must be already created and ready to be used.
      * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The consumerArn. */ @java.lang.Override @@ -513,30 +618,30 @@ public java.lang.String getConsumerArn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumerArn_ = s; return s; } } /** + * + * *
      * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
      * Fan-Out mode. The consumer must be already created and ready to be used.
      * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for consumerArn. */ @java.lang.Override - public com.google.protobuf.ByteString - getConsumerArnBytes() { + public com.google.protobuf.ByteString getConsumerArnBytes() { java.lang.Object ref = consumerArn_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); consumerArn_ = b; return b; } else { @@ -545,9 +650,12 @@ public java.lang.String getConsumerArn() { } public static final int AWS_ROLE_ARN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object awsRoleArn_ = ""; /** + * + * *
      * Required. AWS role ARN to be used for Federated Identity authentication
      * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -555,6 +663,7 @@ public java.lang.String getConsumerArn() {
      * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The awsRoleArn. */ @java.lang.Override @@ -563,14 +672,15 @@ public java.lang.String getAwsRoleArn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); awsRoleArn_ = s; return s; } } /** + * + * *
      * Required. AWS role ARN to be used for Federated Identity authentication
      * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -578,16 +688,15 @@ public java.lang.String getAwsRoleArn() {
      * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for awsRoleArn. */ @java.lang.Override - public com.google.protobuf.ByteString - getAwsRoleArnBytes() { + public com.google.protobuf.ByteString getAwsRoleArnBytes() { java.lang.Object ref = awsRoleArn_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); awsRoleArn_ = b; return b; } else { @@ -596,9 +705,12 @@ public java.lang.String getAwsRoleArn() { } public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; /** + * + * *
      * Required. The GCP service account to be used for Federated Identity
      * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -607,6 +719,7 @@ public java.lang.String getAwsRoleArn() {
      * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gcpServiceAccount. */ @java.lang.Override @@ -615,14 +728,15 @@ public java.lang.String getGcpServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccount_ = s; return s; } } /** + * + * *
      * Required. The GCP service account to be used for Federated Identity
      * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -631,16 +745,15 @@ public java.lang.String getGcpServiceAccount() {
      * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gcpServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcpServiceAccountBytes() { + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { java.lang.Object ref = gcpServiceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpServiceAccount_ = b; return b; } else { @@ -649,6 +762,7 @@ public java.lang.String getGcpServiceAccount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -660,9 +774,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { @@ -686,9 +801,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamArn_); @@ -710,22 +826,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis other = (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) obj; + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis other = + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) obj; if (state_ != other.state_) return false; - if (!getStreamArn() - .equals(other.getStreamArn())) return false; - if (!getConsumerArn() - .equals(other.getConsumerArn())) return false; - if (!getAwsRoleArn() - .equals(other.getAwsRoleArn())) return false; - if (!getGcpServiceAccount() - .equals(other.getGcpServiceAccount())) return false; + if (!getStreamArn().equals(other.getStreamArn())) return false; + if (!getConsumerArn().equals(other.getConsumerArn())) return false; + if (!getAwsRoleArn().equals(other.getAwsRoleArn())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -753,89 +866,94 @@ public int hashCode() { } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.IngestionDataSourceSettings.AwsKinesis parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis 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.IngestionDataSourceSettings.AwsKinesis parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis prototype) { + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -845,39 +963,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Ingestion settings for Amazon Kinesis Data Streams.
      * 
* * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.class, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder.class); + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder.class); } // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -891,13 +1011,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDefaultInstanceForType() { + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + getDefaultInstanceForType() { return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } @@ -912,13 +1033,17 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis build() { @java.lang.Override public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis buildPartial() { - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result = new com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result = + new com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result) { + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.state_ = state_; @@ -941,38 +1066,41 @@ private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings.AwsK public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.IngestionDataSourceSettings.AwsKinesis) { - return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis)other); + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) other); } else { super.mergeFrom(other); return this; @@ -980,7 +1108,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis other) { - if (other == com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance()) return this; + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance()) + return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -1030,37 +1160,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - streamArn_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - consumerArn_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - awsRoleArn_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - gcpServiceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + streamArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + consumerArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + awsRoleArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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) { @@ -1070,28 +1206,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
        * Output only. An output-only field that indicates the state of the Kinesis
        * ingestion source.
        * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
        * Output only. An output-only field that indicates the state of the Kinesis
        * ingestion source.
        * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1102,30 +1250,44 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
        * Output only. An output-only field that indicates the state of the Kinesis
        * ingestion source.
        * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState() { - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State result = com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.forNumber(state_); - return result == null ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED : result; + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED + : result; } /** + * + * *
        * Output only. An output-only field that indicates the state of the Kinesis
        * ingestion source.
        * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State value) { + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State value) { if (value == null) { throw new NullPointerException(); } @@ -1135,12 +1297,17 @@ public Builder setState(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKine return this; } /** + * + * *
        * Output only. An output-only field that indicates the state of the Kinesis
        * ingestion source.
        * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1152,18 +1319,20 @@ public Builder clearState() { private java.lang.Object streamArn_ = ""; /** + * + * *
        * Required. The Kinesis stream ARN to ingest data from.
        * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamArn. */ 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamArn_ = s; return s; @@ -1172,20 +1341,21 @@ public java.lang.String getStreamArn() { } } /** + * + * *
        * Required. The Kinesis stream ARN to ingest data from.
        * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamArn. */ - public com.google.protobuf.ByteString - getStreamArnBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streamArn_ = b; return b; } else { @@ -1193,28 +1363,35 @@ public java.lang.String getStreamArn() { } } /** + * + * *
        * Required. The Kinesis stream ARN to ingest data from.
        * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The streamArn to set. * @return This builder for chaining. */ - public Builder setStreamArn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStreamArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } streamArn_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. The Kinesis stream ARN to ingest data from.
        * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStreamArn() { @@ -1224,17 +1401,21 @@ public Builder clearStreamArn() { return this; } /** + * + * *
        * Required. The Kinesis stream ARN to ingest data from.
        * 
* * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for streamArn to set. * @return This builder for chaining. */ - public Builder setStreamArnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStreamArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); streamArn_ = value; bitField0_ |= 0x00000002; @@ -1244,19 +1425,21 @@ public Builder setStreamArnBytes( private java.lang.Object consumerArn_ = ""; /** + * + * *
        * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
        * Fan-Out mode. The consumer must be already created and ready to be used.
        * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The consumerArn. */ public java.lang.String getConsumerArn() { java.lang.Object ref = consumerArn_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); consumerArn_ = s; return s; @@ -1265,21 +1448,22 @@ public java.lang.String getConsumerArn() { } } /** + * + * *
        * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
        * Fan-Out mode. The consumer must be already created and ready to be used.
        * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for consumerArn. */ - public com.google.protobuf.ByteString - getConsumerArnBytes() { + public com.google.protobuf.ByteString getConsumerArnBytes() { java.lang.Object ref = consumerArn_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); consumerArn_ = b; return b; } else { @@ -1287,30 +1471,37 @@ public java.lang.String getConsumerArn() { } } /** + * + * *
        * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
        * Fan-Out mode. The consumer must be already created and ready to be used.
        * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The consumerArn to set. * @return This builder for chaining. */ - public Builder setConsumerArn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConsumerArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } consumerArn_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
        * Fan-Out mode. The consumer must be already created and ready to be used.
        * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearConsumerArn() { @@ -1320,18 +1511,22 @@ public Builder clearConsumerArn() { return this; } /** + * + * *
        * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
        * Fan-Out mode. The consumer must be already created and ready to be used.
        * 
* * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for consumerArn to set. * @return This builder for chaining. */ - public Builder setConsumerArnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConsumerArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); consumerArn_ = value; bitField0_ |= 0x00000004; @@ -1341,6 +1536,8 @@ public Builder setConsumerArnBytes( private java.lang.Object awsRoleArn_ = ""; /** + * + * *
        * Required. AWS role ARN to be used for Federated Identity authentication
        * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -1348,13 +1545,13 @@ public Builder setConsumerArnBytes(
        * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The awsRoleArn. */ public java.lang.String getAwsRoleArn() { java.lang.Object ref = awsRoleArn_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); awsRoleArn_ = s; return s; @@ -1363,6 +1560,8 @@ public java.lang.String getAwsRoleArn() { } } /** + * + * *
        * Required. AWS role ARN to be used for Federated Identity authentication
        * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -1370,15 +1569,14 @@ public java.lang.String getAwsRoleArn() {
        * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for awsRoleArn. */ - public com.google.protobuf.ByteString - getAwsRoleArnBytes() { + public com.google.protobuf.ByteString getAwsRoleArnBytes() { java.lang.Object ref = awsRoleArn_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); awsRoleArn_ = b; return b; } else { @@ -1386,6 +1584,8 @@ public java.lang.String getAwsRoleArn() { } } /** + * + * *
        * Required. AWS role ARN to be used for Federated Identity authentication
        * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -1393,18 +1593,22 @@ public java.lang.String getAwsRoleArn() {
        * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The awsRoleArn to set. * @return This builder for chaining. */ - public Builder setAwsRoleArn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAwsRoleArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } awsRoleArn_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Required. AWS role ARN to be used for Federated Identity authentication
        * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -1412,6 +1616,7 @@ public Builder setAwsRoleArn(
        * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAwsRoleArn() { @@ -1421,6 +1626,8 @@ public Builder clearAwsRoleArn() { return this; } /** + * + * *
        * Required. AWS role ARN to be used for Federated Identity authentication
        * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
@@ -1428,12 +1635,14 @@ public Builder clearAwsRoleArn() {
        * 
* * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for awsRoleArn to set. * @return This builder for chaining. */ - public Builder setAwsRoleArnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); awsRoleArn_ = value; bitField0_ |= 0x00000008; @@ -1443,6 +1652,8 @@ public Builder setAwsRoleArnBytes( private java.lang.Object gcpServiceAccount_ = ""; /** + * + * *
        * Required. The GCP service account to be used for Federated Identity
        * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -1451,13 +1662,13 @@ public Builder setAwsRoleArnBytes(
        * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gcpServiceAccount. */ public java.lang.String getGcpServiceAccount() { java.lang.Object ref = gcpServiceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccount_ = s; return s; @@ -1466,6 +1677,8 @@ public java.lang.String getGcpServiceAccount() { } } /** + * + * *
        * Required. The GCP service account to be used for Federated Identity
        * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -1474,15 +1687,14 @@ public java.lang.String getGcpServiceAccount() {
        * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gcpServiceAccount. */ - public com.google.protobuf.ByteString - getGcpServiceAccountBytes() { + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { java.lang.Object ref = gcpServiceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpServiceAccount_ = b; return b; } else { @@ -1490,6 +1702,8 @@ public java.lang.String getGcpServiceAccount() { } } /** + * + * *
        * Required. The GCP service account to be used for Federated Identity
        * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -1498,18 +1712,22 @@ public java.lang.String getGcpServiceAccount() {
        * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The gcpServiceAccount to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } gcpServiceAccount_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * Required. The GCP service account to be used for Federated Identity
        * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -1518,6 +1736,7 @@ public Builder setGcpServiceAccount(
        * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGcpServiceAccount() { @@ -1527,6 +1746,8 @@ public Builder clearGcpServiceAccount() { return this; } /** + * + * *
        * Required. The GCP service account to be used for Federated Identity
        * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
@@ -1535,18 +1756,21 @@ public Builder clearGcpServiceAccount() {
        * 
* * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for gcpServiceAccount to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); gcpServiceAccount_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1559,12 +1783,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) - private static final com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis DEFAULT_INSTANCE; + private static final com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis(); } @@ -1573,27 +1798,28 @@ public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AwsKinesis 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsKinesis 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; @@ -1608,18 +1834,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int sourceCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AWS_KINESIS(1), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -1635,29 +1864,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return AWS_KINESIS; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return AWS_KINESIS; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int AWS_KINESIS_FIELD_NUMBER = 1; /** + * + * *
    * Optional. Amazon Kinesis Data Streams.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the awsKinesis field is set. */ @java.lang.Override @@ -1665,36 +1901,47 @@ public boolean hasAwsKinesis() { return sourceCase_ == 1; } /** + * + * *
    * Optional. Amazon Kinesis Data Streams.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The awsKinesis. */ @java.lang.Override public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; } return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } /** + * + * *
    * Optional. Amazon Kinesis Data Streams.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getAwsKinesisOrBuilder() { + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; } return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1706,8 +1953,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { output.writeMessage(1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); } @@ -1721,8 +1967,9 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1732,18 +1979,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionDataSourceSettings other = (com.google.pubsub.v1.IngestionDataSourceSettings) obj; + com.google.pubsub.v1.IngestionDataSourceSettings other = + (com.google.pubsub.v1.IngestionDataSourceSettings) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getAwsKinesis() - .equals(other.getAwsKinesis())) return false; + if (!getAwsKinesis().equals(other.getAwsKinesis())) return false; break; case 0: default: @@ -1772,132 +2019,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.IngestionDataSourceSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.IngestionDataSourceSettings 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.IngestionDataSourceSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionDataSourceSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.IngestionDataSourceSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.IngestionDataSourceSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Settings for an ingestion data source on a topic.
    * 
* * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings) com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionDataSourceSettings.class, com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + com.google.pubsub.v1.IngestionDataSourceSettings.class, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); } // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1911,9 +2162,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; } @java.lang.Override @@ -1932,8 +2183,11 @@ public com.google.pubsub.v1.IngestionDataSourceSettings build() { @java.lang.Override public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { - com.google.pubsub.v1.IngestionDataSourceSettings result = new com.google.pubsub.v1.IngestionDataSourceSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.IngestionDataSourceSettings result = + new com.google.pubsub.v1.IngestionDataSourceSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1946,8 +2200,7 @@ private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings resu private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { result.sourceCase_ = sourceCase_; result.source_ = this.source_; - if (sourceCase_ == 1 && - awsKinesisBuilder_ != null) { + if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { result.source_ = awsKinesisBuilder_.build(); } } @@ -1956,38 +2209,39 @@ private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.IngestionDataSourceSettings) { - return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings)other); + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings) other); } else { super.mergeFrom(other); return this; @@ -1995,15 +2249,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { - if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case AWS_KINESIS: { - mergeAwsKinesis(other.getAwsKinesis()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case AWS_KINESIS: + { + mergeAwsKinesis(other.getAwsKinesis()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2031,19 +2288,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAwsKinesisFieldBuilder().getBuilder(), - extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + 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) { @@ -2053,12 +2310,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -2071,13 +2328,21 @@ public Builder clearSource() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> awsKinesisBuilder_; + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + awsKinesisBuilder_; /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the awsKinesis field is set. */ @java.lang.Override @@ -2085,11 +2350,16 @@ public boolean hasAwsKinesis() { return sourceCase_ == 1; } /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The awsKinesis. */ @java.lang.Override @@ -2107,13 +2377,18 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis } } /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAwsKinesis(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { if (awsKinesisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2127,11 +2402,15 @@ public Builder setAwsKinesis(com.google.pubsub.v1.IngestionDataSourceSettings.Aw return this; } /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAwsKinesis( com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { @@ -2145,18 +2424,28 @@ public Builder setAwsKinesis( return this; } /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAwsKinesis(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + public Builder mergeAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance()) { - source_ = com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder((com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -2172,11 +2461,15 @@ public Builder mergeAwsKinesis(com.google.pubsub.v1.IngestionDataSourceSettings. return this; } /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAwsKinesis() { if (awsKinesisBuilder_ == null) { @@ -2195,24 +2488,34 @@ public Builder clearAwsKinesis() { return this; } /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder getAwsKinesisBuilder() { + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder + getAwsKinesisBuilder() { return getAwsKinesisFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getAwsKinesisOrBuilder() { + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { return awsKinesisBuilder_.getMessageOrBuilder(); } else { @@ -2223,21 +2526,31 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getA } } /** + * + * *
      * Optional. Amazon Kinesis Data Streams.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> getAwsKinesisFieldBuilder() { if (awsKinesisBuilder_ == null) { if (!(sourceCase_ == 1)) { - source_ = com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } - awsKinesisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( + awsKinesisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, getParentForChildren(), isClean()); @@ -2247,9 +2560,9 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getA onChanged(); return awsKinesisBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2259,12 +2572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings) private static final com.google.pubsub.v1.IngestionDataSourceSettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings(); } @@ -2273,27 +2586,27 @@ public static com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IngestionDataSourceSettings 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestionDataSourceSettings 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; @@ -2308,6 +2621,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java new file mode 100644 index 000000000..7191edd93 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface IngestionDataSourceSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + boolean hasAwsKinesis(); + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis(); + /** + * + * + *
+   * Optional. Amazon Kinesis Data Streams.
+   * 
+ * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getAwsKinesisOrBuilder(); + + com.google.pubsub.v1.IngestionDataSourceSettings.SourceCase getSourceCase(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index a4ec5486d..3c3ae0b53 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `ListSchemaRevisions` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsRequest} */ -public final class ListSchemaRevisionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSchemaRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsRequest) ListSchemaRevisionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSchemaRevisionsRequest.newBuilder() to construct. private ListSchemaRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSchemaRevisionsRequest() { name_ = ""; view_ = 0; @@ -28,33 +46,40 @@ private ListSchemaRevisionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemaRevisionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemaRevisionsRequest.class, com.google.pubsub.v1.ListSchemaRevisionsRequest.Builder.class); + com.google.pubsub.v1.ListSchemaRevisionsRequest.class, + com.google.pubsub.v1.ListSchemaRevisionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the schema to list revisions for.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,29 +88,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the schema to list revisions for.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,8 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** + * + * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -103,12 +132,16 @@ public java.lang.String getName() {
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -116,9 +149,11 @@ public java.lang.String getName() {
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ - @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } @@ -126,11 +161,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of revisions to return per page.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -139,15 +177,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token, received from a previous ListSchemaRevisions call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -156,30 +198,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token, received from a previous ListSchemaRevisions call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -188,6 +230,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -226,12 +268,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, view_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -244,20 +284,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListSchemaRevisionsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListSchemaRevisionsRequest other = (com.google.pubsub.v1.ListSchemaRevisionsRequest) obj; + com.google.pubsub.v1.ListSchemaRevisionsRequest other = + (com.google.pubsub.v1.ListSchemaRevisionsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (view_ != other.view_) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,132 +320,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListSchemaRevisionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemaRevisionsRequest 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.ListSchemaRevisionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListSchemaRevisionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListSchemaRevisions` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemaRevisionsRequest) com.google.pubsub.v1.ListSchemaRevisionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemaRevisionsRequest.class, com.google.pubsub.v1.ListSchemaRevisionsRequest.Builder.class); + com.google.pubsub.v1.ListSchemaRevisionsRequest.class, + com.google.pubsub.v1.ListSchemaRevisionsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListSchemaRevisionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +462,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; } @java.lang.Override @@ -441,8 +483,11 @@ public com.google.pubsub.v1.ListSchemaRevisionsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListSchemaRevisionsRequest buildPartial() { - com.google.pubsub.v1.ListSchemaRevisionsRequest result = new com.google.pubsub.v1.ListSchemaRevisionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListSchemaRevisionsRequest result = + new com.google.pubsub.v1.ListSchemaRevisionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -467,38 +512,39 @@ private void buildPartial0(com.google.pubsub.v1.ListSchemaRevisionsRequest resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListSchemaRevisionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSchemaRevisionsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListSchemaRevisionsRequest) other); } else { super.mergeFrom(other); return this; @@ -506,7 +552,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsRequest other) { - if (other == com.google.pubsub.v1.ListSchemaRevisionsRequest.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.ListSchemaRevisionsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -549,32 +596,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - view_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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) { @@ -584,22 +636,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the schema to list revisions for.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -608,20 +665,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the schema to list revisions for.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -629,28 +689,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the schema to list revisions for.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the schema to list revisions for.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -660,17 +731,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the schema to list revisions for.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -680,6 +757,8 @@ public Builder setNameBytes( private int view_ = 0; /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -687,12 +766,16 @@ public Builder setNameBytes(
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -700,6 +783,7 @@ public Builder setNameBytes(
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -710,6 +794,8 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -717,6 +803,7 @@ public Builder setViewValue(int value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ @java.lang.Override @@ -725,6 +812,8 @@ public com.google.pubsub.v1.SchemaView getView() { return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -732,6 +821,7 @@ public com.google.pubsub.v1.SchemaView getView() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @param value The view to set. * @return This builder for chaining. */ @@ -745,6 +835,8 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { return this; } /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -752,6 +844,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return This builder for chaining. */ public Builder clearView() { @@ -761,13 +854,16 @@ public Builder clearView() { return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of revisions to return per page.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -775,11 +871,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of revisions to return per page.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -791,11 +890,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * The maximum number of revisions to return per page.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -807,19 +909,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token, received from a previous ListSchemaRevisions call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -828,21 +932,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token, received from a previous ListSchemaRevisions call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -850,30 +955,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token, received from a previous ListSchemaRevisions call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The page token, received from a previous ListSchemaRevisions call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -883,27 +995,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token, received from a previous ListSchemaRevisions call.
      * Provide this to retrieve the subsequent page.
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,12 +1029,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemaRevisionsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemaRevisionsRequest) private static final com.google.pubsub.v1.ListSchemaRevisionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemaRevisionsRequest(); } @@ -927,27 +1043,27 @@ public static com.google.pubsub.v1.ListSchemaRevisionsRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemaRevisionsRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemaRevisionsRequest 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; @@ -962,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListSchemaRevisionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 679a7dc05..9fc4c6771 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -1,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListSchemaRevisionsRequestOrBuilder extends +public interface ListSchemaRevisionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemaRevisionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the schema to list revisions for.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the schema to list revisions for.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -36,10 +63,13 @@ public interface ListSchemaRevisionsRequestOrBuilder extends
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -47,39 +77,48 @@ public interface ListSchemaRevisionsRequestOrBuilder extends
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ com.google.pubsub.v1.SchemaView getView(); /** + * + * *
    * The maximum number of revisions to return per page.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token, received from a previous ListSchemaRevisions call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token, received from a previous ListSchemaRevisions call.
    * Provide this to retrieve the subsequent page.
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 67450571a..f48aabaef 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ListSchemaRevisions` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsResponse} */ -public final class ListSchemaRevisionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSchemaRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsResponse) ListSchemaRevisionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSchemaRevisionsResponse.newBuilder() to construct. private ListSchemaRevisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSchemaRevisionsResponse() { schemas_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListSchemaRevisionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemaRevisionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemaRevisionsResponse.class, com.google.pubsub.v1.ListSchemaRevisionsResponse.Builder.class); + com.google.pubsub.v1.ListSchemaRevisionsResponse.class, + com.google.pubsub.v1.ListSchemaRevisionsResponse.Builder.class); } public static final int SCHEMAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List schemas_; /** + * + * *
    * The revisions of the schema.
    * 
@@ -60,6 +82,8 @@ public java.util.List getSchemasList() { return schemas_; } /** + * + * *
    * The revisions of the schema.
    * 
@@ -67,11 +91,12 @@ public java.util.List getSchemasList() { * repeated .google.pubsub.v1.Schema schemas = 1; */ @java.lang.Override - public java.util.List - getSchemasOrBuilderList() { + public java.util.List getSchemasOrBuilderList() { return schemas_; } /** + * + * *
    * The revisions of the schema.
    * 
@@ -83,6 +108,8 @@ public int getSchemasCount() { return schemas_.size(); } /** + * + * *
    * The revisions of the schema.
    * 
@@ -94,6 +121,8 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } /** + * + * *
    * The revisions of the schema.
    * 
@@ -101,21 +130,24 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ @java.lang.Override - public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( - int index) { + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { return schemas_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is empty, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +156,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is empty, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -156,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < schemas_.size(); i++) { output.writeMessage(1, schemas_.get(i)); } @@ -185,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < schemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, schemas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListSchemaRevisionsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListSchemaRevisionsResponse other = (com.google.pubsub.v1.ListSchemaRevisionsResponse) obj; + com.google.pubsub.v1.ListSchemaRevisionsResponse other = + (com.google.pubsub.v1.ListSchemaRevisionsResponse) obj; - if (!getSchemasList() - .equals(other.getSchemasList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSchemasList().equals(other.getSchemasList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,132 +262,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListSchemaRevisionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemaRevisionsResponse 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.ListSchemaRevisionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListSchemaRevisionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListSchemaRevisions` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemaRevisionsResponse) com.google.pubsub.v1.ListSchemaRevisionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemaRevisionsResponse.class, com.google.pubsub.v1.ListSchemaRevisionsResponse.Builder.class); + com.google.pubsub.v1.ListSchemaRevisionsResponse.class, + com.google.pubsub.v1.ListSchemaRevisionsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListSchemaRevisionsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; } @java.lang.Override @@ -395,14 +429,18 @@ public com.google.pubsub.v1.ListSchemaRevisionsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListSchemaRevisionsResponse buildPartial() { - com.google.pubsub.v1.ListSchemaRevisionsResponse result = new com.google.pubsub.v1.ListSchemaRevisionsResponse(this); + com.google.pubsub.v1.ListSchemaRevisionsResponse result = + new com.google.pubsub.v1.ListSchemaRevisionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.pubsub.v1.ListSchemaRevisionsResponse result) { + private void buildPartialRepeatedFields( + com.google.pubsub.v1.ListSchemaRevisionsResponse result) { if (schemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); @@ -425,38 +463,39 @@ private void buildPartial0(com.google.pubsub.v1.ListSchemaRevisionsResponse resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListSchemaRevisionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSchemaRevisionsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListSchemaRevisionsResponse) other); } else { super.mergeFrom(other); return this; @@ -464,7 +503,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsResponse other) { - if (other == com.google.pubsub.v1.ListSchemaRevisionsResponse.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.ListSchemaRevisionsResponse.getDefaultInstance()) + return this; if (schemasBuilder_ == null) { if (!other.schemas_.isEmpty()) { if (schemas_.isEmpty()) { @@ -483,9 +523,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsResponse other) schemasBuilder_ = null; schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000001); - schemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSchemasFieldBuilder() : null; + schemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchemasFieldBuilder() + : null; } else { schemasBuilder_.addAllMessages(other.schemas_); } @@ -522,30 +563,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Schema m = - input.readMessage( - com.google.pubsub.v1.Schema.parser(), - extensionRegistry); - if (schemasBuilder_ == null) { - ensureSchemasIsMutable(); - schemas_.add(m); - } else { - schemasBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.pubsub.v1.Schema m = + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(m); + } else { + schemasBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -555,21 +597,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List schemas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { schemas_ = new java.util.ArrayList(schemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemasBuilder_; + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemasBuilder_; /** + * + * *
      * The revisions of the schema.
      * 
@@ -584,6 +633,8 @@ public java.util.List getSchemasList() { } } /** + * + * *
      * The revisions of the schema.
      * 
@@ -598,6 +649,8 @@ public int getSchemasCount() { } } /** + * + * *
      * The revisions of the schema.
      * 
@@ -612,14 +665,15 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { } } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder setSchemas( - int index, com.google.pubsub.v1.Schema value) { + public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,14 +687,15 @@ public Builder setSchemas( return this; } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder setSchemas( - int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.set(index, builderForValue.build()); @@ -651,6 +706,8 @@ public Builder setSchemas( return this; } /** + * + * *
      * The revisions of the schema.
      * 
@@ -671,14 +728,15 @@ public Builder addSchemas(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas( - int index, com.google.pubsub.v1.Schema value) { + public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,14 +750,15 @@ public Builder addSchemas( return this; } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas( - com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(builderForValue.build()); @@ -710,14 +769,15 @@ public Builder addSchemas( return this; } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas( - int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(index, builderForValue.build()); @@ -728,18 +788,18 @@ public Builder addSchemas( return this; } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addAllSchemas( - java.lang.Iterable values) { + public Builder addAllSchemas(java.lang.Iterable values) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, schemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); onChanged(); } else { schemasBuilder_.addAllMessages(values); @@ -747,6 +807,8 @@ public Builder addAllSchemas( return this; } /** + * + * *
      * The revisions of the schema.
      * 
@@ -764,6 +826,8 @@ public Builder clearSchemas() { return this; } /** + * + * *
      * The revisions of the schema.
      * 
@@ -781,39 +845,44 @@ public Builder removeSchemas(int index) { return this; } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.Schema.Builder getSchemasBuilder( - int index) { + public com.google.pubsub.v1.Schema.Builder getSchemasBuilder(int index) { return getSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( - int index) { + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { if (schemasBuilder_ == null) { - return schemas_.get(index); } else { + return schemas_.get(index); + } else { return schemasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public java.util.List - getSchemasOrBuilderList() { + public java.util.List + getSchemasOrBuilderList() { if (schemasBuilder_ != null) { return schemasBuilder_.getMessageOrBuilderList(); } else { @@ -821,6 +890,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( } } /** + * + * *
      * The revisions of the schema.
      * 
@@ -828,42 +899,46 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { - return getSchemasFieldBuilder().addBuilder( - com.google.pubsub.v1.Schema.getDefaultInstance()); + return getSchemasFieldBuilder().addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.Schema.Builder addSchemasBuilder( - int index) { - return getSchemasFieldBuilder().addBuilder( - index, com.google.pubsub.v1.Schema.getDefaultInstance()); + public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { + return getSchemasFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Schema.getDefaultInstance()); } /** + * + * *
      * The revisions of the schema.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public java.util.List - getSchemasBuilderList() { + public java.util.List getSchemasBuilderList() { return getSchemasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> getSchemasFieldBuilder() { if (schemasBuilder_ == null) { - schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( - schemas_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + schemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); schemas_ = null; } return schemasBuilder_; @@ -871,19 +946,21 @@ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is empty, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -892,21 +969,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is empty, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -914,30 +992,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is empty, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is empty, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -947,27 +1032,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is empty, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1066,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemaRevisionsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemaRevisionsResponse) private static final com.google.pubsub.v1.ListSchemaRevisionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemaRevisionsResponse(); } @@ -991,27 +1080,27 @@ public static com.google.pubsub.v1.ListSchemaRevisionsResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemaRevisionsResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemaRevisionsResponse 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; @@ -1026,6 +1115,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.pubsub.v1.ListSchemaRevisionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 88ab25568..03a233f0b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListSchemaRevisionsResponseOrBuilder extends +public interface ListSchemaRevisionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemaRevisionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The revisions of the schema.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - java.util.List - getSchemasList(); + java.util.List getSchemasList(); /** + * + * *
    * The revisions of the schema.
    * 
@@ -26,6 +45,8 @@ public interface ListSchemaRevisionsResponseOrBuilder extends */ com.google.pubsub.v1.Schema getSchemas(int index); /** + * + * *
    * The revisions of the schema.
    * 
@@ -34,43 +55,50 @@ public interface ListSchemaRevisionsResponseOrBuilder extends */ int getSchemasCount(); /** + * + * *
    * The revisions of the schema.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - java.util.List - getSchemasOrBuilderList(); + java.util.List getSchemasOrBuilderList(); /** + * + * *
    * The revisions of the schema.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( - int index); + com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is empty, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is empty, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 8173cf093..cea16a7e6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `ListSchemas` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSchemasRequest} */ -public final class ListSchemasRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasRequest) ListSchemasRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSchemasRequest.newBuilder() to construct. private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSchemasRequest() { parent_ = ""; view_ = 0; @@ -28,34 +46,41 @@ private ListSchemasRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemasRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemasRequest.class, com.google.pubsub.v1.ListSchemasRequest.Builder.class); + com.google.pubsub.v1.ListSchemasRequest.class, + com.google.pubsub.v1.ListSchemasRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project in which to list schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,30 +89,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which to list schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,6 +125,8 @@ public java.lang.String getParent() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** + * + * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -105,12 +134,16 @@ public java.lang.String getParent() {
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -118,9 +151,11 @@ public java.lang.String getParent() {
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ - @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } @@ -128,11 +163,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Maximum number of schemas to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -141,9 +179,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The value returned by the last `ListSchemasResponse`; indicates that
    * this is a continuation of a prior `ListSchemas` call, and that the
@@ -151,6 +192,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -159,14 +201,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The value returned by the last `ListSchemasResponse`; indicates that
    * this is a continuation of a prior `ListSchemas` call, and that the
@@ -174,16 +217,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -192,6 +234,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +246,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -230,12 +272,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, view_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -248,20 +288,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListSchemasRequest)) { return super.equals(obj); } com.google.pubsub.v1.ListSchemasRequest other = (com.google.pubsub.v1.ListSchemasRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (view_ != other.view_) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,132 +323,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSchemasRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListSchemasRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemasRequest 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.ListSchemasRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListSchemasRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListSchemasRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListSchemas` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSchemasRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemasRequest) com.google.pubsub.v1.ListSchemasRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemasRequest.class, com.google.pubsub.v1.ListSchemasRequest.Builder.class); + com.google.pubsub.v1.ListSchemasRequest.class, + com.google.pubsub.v1.ListSchemasRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListSchemasRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +465,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; } @java.lang.Override @@ -445,8 +486,11 @@ public com.google.pubsub.v1.ListSchemasRequest build() { @java.lang.Override public com.google.pubsub.v1.ListSchemasRequest buildPartial() { - com.google.pubsub.v1.ListSchemasRequest result = new com.google.pubsub.v1.ListSchemasRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListSchemasRequest result = + new com.google.pubsub.v1.ListSchemasRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -471,38 +515,39 @@ private void buildPartial0(com.google.pubsub.v1.ListSchemasRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListSchemasRequest) { - return mergeFrom((com.google.pubsub.v1.ListSchemasRequest)other); + return mergeFrom((com.google.pubsub.v1.ListSchemasRequest) other); } else { super.mergeFrom(other); return this; @@ -553,32 +598,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - view_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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) { @@ -588,23 +638,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -613,21 +668,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -635,30 +693,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -668,18 +737,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -689,6 +764,8 @@ public Builder setParentBytes( private int view_ = 0; /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -696,12 +773,16 @@ public Builder setParentBytes(
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -709,6 +790,7 @@ public Builder setParentBytes(
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -719,6 +801,8 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -726,6 +810,7 @@ public Builder setViewValue(int value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ @java.lang.Override @@ -734,6 +819,8 @@ public com.google.pubsub.v1.SchemaView getView() { return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -741,6 +828,7 @@ public com.google.pubsub.v1.SchemaView getView() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @param value The view to set. * @return This builder for chaining. */ @@ -754,6 +842,8 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { return this; } /** + * + * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -761,6 +851,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return This builder for chaining. */ public Builder clearView() { @@ -770,13 +861,16 @@ public Builder clearView() { return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -784,11 +878,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -800,11 +897,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -816,6 +916,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -823,13 +925,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -838,6 +940,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -845,15 +949,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -861,6 +964,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -868,18 +973,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -887,6 +996,7 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -896,6 +1006,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -903,21 +1015,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -927,12 +1041,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemasRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemasRequest) private static final com.google.pubsub.v1.ListSchemasRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemasRequest(); } @@ -941,27 +1055,27 @@ public static com.google.pubsub.v1.ListSchemasRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemasRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasRequest 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; @@ -976,6 +1090,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSchemasRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 5e09b9cf4..0b8eb8c94 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListSchemasRequestOrBuilder extends +public interface ListSchemasRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemasRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project in which to list schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project in which to list schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -38,10 +65,13 @@ public interface ListSchemasRequestOrBuilder extends
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -49,21 +79,27 @@ public interface ListSchemasRequestOrBuilder extends
    * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ com.google.pubsub.v1.SchemaView getView(); /** + * + * *
    * Maximum number of schemas to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value returned by the last `ListSchemasResponse`; indicates that
    * this is a continuation of a prior `ListSchemas` call, and that the
@@ -71,10 +107,13 @@ public interface ListSchemasRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListSchemasResponse`; indicates that
    * this is a continuation of a prior `ListSchemas` call, and that the
@@ -82,8 +121,8 @@ public interface ListSchemasRequestOrBuilder extends
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 4250a13cc..eb6b7c8cd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ListSchemas` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSchemasResponse} */ -public final class ListSchemasResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSchemasResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasResponse) ListSchemasResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSchemasResponse.newBuilder() to construct. private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSchemasResponse() { schemas_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListSchemasResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemasResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemasResponse.class, com.google.pubsub.v1.ListSchemasResponse.Builder.class); + com.google.pubsub.v1.ListSchemasResponse.class, + com.google.pubsub.v1.ListSchemasResponse.Builder.class); } public static final int SCHEMAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List schemas_; /** + * + * *
    * The resulting schemas.
    * 
@@ -60,6 +82,8 @@ public java.util.List getSchemasList() { return schemas_; } /** + * + * *
    * The resulting schemas.
    * 
@@ -67,11 +91,12 @@ public java.util.List getSchemasList() { * repeated .google.pubsub.v1.Schema schemas = 1; */ @java.lang.Override - public java.util.List - getSchemasOrBuilderList() { + public java.util.List getSchemasOrBuilderList() { return schemas_; } /** + * + * *
    * The resulting schemas.
    * 
@@ -83,6 +108,8 @@ public int getSchemasCount() { return schemas_.size(); } /** + * + * *
    * The resulting schemas.
    * 
@@ -94,6 +121,8 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } /** + * + * *
    * The resulting schemas.
    * 
@@ -101,21 +130,24 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ @java.lang.Override - public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( - int index) { + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { return schemas_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If not empty, indicates that there may be more schemas that match the
    * request; this value should be passed in a new `ListSchemasRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +156,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If not empty, indicates that there may be more schemas that match the
    * request; this value should be passed in a new `ListSchemasRequest`.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -156,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < schemas_.size(); i++) { output.writeMessage(1, schemas_.get(i)); } @@ -185,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < schemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, schemas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +230,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListSchemasResponse)) { return super.equals(obj); } com.google.pubsub.v1.ListSchemasResponse other = (com.google.pubsub.v1.ListSchemasResponse) obj; - if (!getSchemasList() - .equals(other.getSchemasList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSchemasList().equals(other.getSchemasList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,132 +261,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSchemasResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListSchemasResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemasResponse 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.ListSchemasResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListSchemasResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListSchemasResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListSchemas` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSchemasResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemasResponse) com.google.pubsub.v1.ListSchemasResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemasResponse.class, com.google.pubsub.v1.ListSchemasResponse.Builder.class); + com.google.pubsub.v1.ListSchemasResponse.class, + com.google.pubsub.v1.ListSchemasResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListSchemasResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; } @java.lang.Override @@ -395,9 +428,12 @@ public com.google.pubsub.v1.ListSchemasResponse build() { @java.lang.Override public com.google.pubsub.v1.ListSchemasResponse buildPartial() { - com.google.pubsub.v1.ListSchemasResponse result = new com.google.pubsub.v1.ListSchemasResponse(this); + com.google.pubsub.v1.ListSchemasResponse result = + new com.google.pubsub.v1.ListSchemasResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -425,38 +461,39 @@ private void buildPartial0(com.google.pubsub.v1.ListSchemasResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListSchemasResponse) { - return mergeFrom((com.google.pubsub.v1.ListSchemasResponse)other); + return mergeFrom((com.google.pubsub.v1.ListSchemasResponse) other); } else { super.mergeFrom(other); return this; @@ -483,9 +520,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemasResponse other) { schemasBuilder_ = null; schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000001); - schemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSchemasFieldBuilder() : null; + schemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchemasFieldBuilder() + : null; } else { schemasBuilder_.addAllMessages(other.schemas_); } @@ -522,30 +560,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Schema m = - input.readMessage( - com.google.pubsub.v1.Schema.parser(), - extensionRegistry); - if (schemasBuilder_ == null) { - ensureSchemasIsMutable(); - schemas_.add(m); - } else { - schemasBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.pubsub.v1.Schema m = + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(m); + } else { + schemasBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -555,21 +594,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List schemas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { schemas_ = new java.util.ArrayList(schemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemasBuilder_; + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemasBuilder_; /** + * + * *
      * The resulting schemas.
      * 
@@ -584,6 +630,8 @@ public java.util.List getSchemasList() { } } /** + * + * *
      * The resulting schemas.
      * 
@@ -598,6 +646,8 @@ public int getSchemasCount() { } } /** + * + * *
      * The resulting schemas.
      * 
@@ -612,14 +662,15 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { } } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder setSchemas( - int index, com.google.pubsub.v1.Schema value) { + public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,14 +684,15 @@ public Builder setSchemas( return this; } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder setSchemas( - int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.set(index, builderForValue.build()); @@ -651,6 +703,8 @@ public Builder setSchemas( return this; } /** + * + * *
      * The resulting schemas.
      * 
@@ -671,14 +725,15 @@ public Builder addSchemas(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas( - int index, com.google.pubsub.v1.Schema value) { + public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,14 +747,15 @@ public Builder addSchemas( return this; } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas( - com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(builderForValue.build()); @@ -710,14 +766,15 @@ public Builder addSchemas( return this; } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas( - int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(index, builderForValue.build()); @@ -728,18 +785,18 @@ public Builder addSchemas( return this; } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addAllSchemas( - java.lang.Iterable values) { + public Builder addAllSchemas(java.lang.Iterable values) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, schemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); onChanged(); } else { schemasBuilder_.addAllMessages(values); @@ -747,6 +804,8 @@ public Builder addAllSchemas( return this; } /** + * + * *
      * The resulting schemas.
      * 
@@ -764,6 +823,8 @@ public Builder clearSchemas() { return this; } /** + * + * *
      * The resulting schemas.
      * 
@@ -781,39 +842,44 @@ public Builder removeSchemas(int index) { return this; } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.Schema.Builder getSchemasBuilder( - int index) { + public com.google.pubsub.v1.Schema.Builder getSchemasBuilder(int index) { return getSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( - int index) { + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { if (schemasBuilder_ == null) { - return schemas_.get(index); } else { + return schemas_.get(index); + } else { return schemasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public java.util.List - getSchemasOrBuilderList() { + public java.util.List + getSchemasOrBuilderList() { if (schemasBuilder_ != null) { return schemasBuilder_.getMessageOrBuilderList(); } else { @@ -821,6 +887,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( } } /** + * + * *
      * The resulting schemas.
      * 
@@ -828,42 +896,46 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { - return getSchemasFieldBuilder().addBuilder( - com.google.pubsub.v1.Schema.getDefaultInstance()); + return getSchemasFieldBuilder().addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.Schema.Builder addSchemasBuilder( - int index) { - return getSchemasFieldBuilder().addBuilder( - index, com.google.pubsub.v1.Schema.getDefaultInstance()); + public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { + return getSchemasFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Schema.getDefaultInstance()); } /** + * + * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public java.util.List - getSchemasBuilderList() { + public java.util.List getSchemasBuilderList() { return getSchemasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> getSchemasFieldBuilder() { if (schemasBuilder_ == null) { - schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( - schemas_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + schemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); schemas_ = null; } return schemasBuilder_; @@ -871,19 +943,21 @@ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -892,21 +966,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -914,30 +989,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -947,27 +1029,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1063,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemasResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemasResponse) private static final com.google.pubsub.v1.ListSchemasResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemasResponse(); } @@ -991,27 +1077,27 @@ public static com.google.pubsub.v1.ListSchemasResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemasResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasResponse 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; @@ -1026,6 +1112,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSchemasResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index f832d3575..4a7c6da09 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListSchemasResponseOrBuilder extends +public interface ListSchemasResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemasResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resulting schemas.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - java.util.List - getSchemasList(); + java.util.List getSchemasList(); /** + * + * *
    * The resulting schemas.
    * 
@@ -26,6 +45,8 @@ public interface ListSchemasResponseOrBuilder extends */ com.google.pubsub.v1.Schema getSchemas(int index); /** + * + * *
    * The resulting schemas.
    * 
@@ -34,43 +55,50 @@ public interface ListSchemasResponseOrBuilder extends */ int getSchemasCount(); /** + * + * *
    * The resulting schemas.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - java.util.List - getSchemasOrBuilderList(); + java.util.List getSchemasOrBuilderList(); /** + * + * *
    * The resulting schemas.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( - int index); + com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more schemas that match the
    * request; this value should be passed in a new `ListSchemasRequest`.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more schemas that match the
    * request; this value should be passed in a new `ListSchemasRequest`.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 068e3a645..e375b2312 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `ListSnapshots` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} */ -public final class ListSnapshotsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsRequest) ListSnapshotsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSnapshotsRequest.newBuilder() to construct. private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSnapshotsRequest() { project_ = ""; pageToken_ = ""; @@ -27,34 +45,41 @@ private ListSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSnapshotsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSnapshotsRequest.class, com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); + com.google.pubsub.v1.ListSnapshotsRequest.class, + com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** + * + * *
    * Required. The name of the project in which to list snapshots.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which to list snapshots.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -97,11 +124,14 @@ public java.lang.String getProject() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of snapshots to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -110,9 +140,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -143,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -196,8 +230,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -210,19 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListSnapshotsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListSnapshotsRequest other = (com.google.pubsub.v1.ListSnapshotsRequest) obj; + com.google.pubsub.v1.ListSnapshotsRequest other = + (com.google.pubsub.v1.ListSnapshotsRequest) obj; - if (!getProject() - .equals(other.getProject())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getProject().equals(other.getProject())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,132 +276,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListSnapshotsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSnapshotsRequest 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.ListSnapshotsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListSnapshots` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsRequest) com.google.pubsub.v1.ListSnapshotsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSnapshotsRequest.class, com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); + com.google.pubsub.v1.ListSnapshotsRequest.class, + com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListSnapshotsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } @java.lang.Override @@ -403,8 +438,11 @@ public com.google.pubsub.v1.ListSnapshotsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { - com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListSnapshotsRequest result = + new com.google.pubsub.v1.ListSnapshotsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +464,39 @@ private void buildPartial0(com.google.pubsub.v1.ListSnapshotsRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListSnapshotsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest) other); } else { super.mergeFrom(other); return this; @@ -505,27 +544,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -535,23 +578,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object project_ = ""; /** + * + * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -560,21 +608,24 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -582,30 +633,41 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProject() { @@ -615,18 +677,24 @@ public Builder clearProject() { return this; } /** + * + * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -634,13 +702,16 @@ public Builder setProjectBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of snapshots to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -648,11 +719,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of snapshots to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -664,11 +738,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of snapshots to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -680,6 +757,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -687,13 +766,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -702,6 +781,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -709,15 +790,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -725,6 +805,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -732,18 +814,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -751,6 +837,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -760,6 +847,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -767,21 +856,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -791,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsRequest) private static final com.google.pubsub.v1.ListSnapshotsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSnapshotsRequest(); } @@ -805,27 +896,27 @@ public static com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotsRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsRequest 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; @@ -840,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 23b01443f..6add8724c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListSnapshotsRequestOrBuilder extends +public interface ListSnapshotsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project in which to list snapshots.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * Required. The name of the project in which to list snapshots.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Optional. Maximum number of snapshots to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -48,10 +78,13 @@ public interface ListSnapshotsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListSnapshots` call, and that the
@@ -59,8 +92,8 @@ public interface ListSnapshotsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 07f14c036..5fa3caa84 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ListSnapshots` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} */ -public final class ListSnapshotsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsResponse) ListSnapshotsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSnapshotsResponse.newBuilder() to construct. private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSnapshotsResponse() { snapshots_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,89 +45,113 @@ private ListSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSnapshotsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSnapshotsResponse.class, com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); + com.google.pubsub.v1.ListSnapshotsResponse.class, + com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); } public static final int SNAPSHOTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List snapshots_; /** + * + * *
    * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getSnapshotsList() { return snapshots_; } /** + * + * *
    * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getSnapshotsOrBuilderList() { return snapshots_; } /** + * + * *
    * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
    * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
    * Optional. The resulting snapshots.
    * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index) { + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { return snapshots_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Optional. If not empty, indicates that there may be more snapshot that
    * match the request; this value should be passed in a new
@@ -117,6 +159,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +168,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Optional. If not empty, indicates that there may be more snapshot that
    * match the request; this value should be passed in a new
@@ -140,16 +184,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { output.writeMessage(1, snapshots_.get(i)); } @@ -187,8 +230,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < snapshots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, snapshots_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snapshots_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +243,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListSnapshotsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListSnapshotsResponse other = (com.google.pubsub.v1.ListSnapshotsResponse) obj; + com.google.pubsub.v1.ListSnapshotsResponse other = + (com.google.pubsub.v1.ListSnapshotsResponse) obj; - if (!getSnapshotsList() - .equals(other.getSnapshotsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSnapshotsList().equals(other.getSnapshotsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +275,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListSnapshotsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSnapshotsResponse 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.ListSnapshotsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListSnapshots` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsResponse) com.google.pubsub.v1.ListSnapshotsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSnapshotsResponse.class, com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); + com.google.pubsub.v1.ListSnapshotsResponse.class, + com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListSnapshotsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } @java.lang.Override @@ -397,9 +442,12 @@ public com.google.pubsub.v1.ListSnapshotsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { - com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this); + com.google.pubsub.v1.ListSnapshotsResponse result = + new com.google.pubsub.v1.ListSnapshotsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +475,39 @@ private void buildPartial0(com.google.pubsub.v1.ListSnapshotsResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListSnapshotsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +534,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) { snapshotsBuilder_ = null; snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); - snapshotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSnapshotsFieldBuilder() : null; + snapshotsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSnapshotsFieldBuilder() + : null; } else { snapshotsBuilder_.addAllMessages(other.snapshots_); } @@ -524,30 +574,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Snapshot m = - input.readMessage( - com.google.pubsub.v1.Snapshot.parser(), - extensionRegistry); - if (snapshotsBuilder_ == null) { - ensureSnapshotsIsMutable(); - snapshots_.add(m); - } else { - snapshotsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.pubsub.v1.Snapshot m = + input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry); + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.add(m); + } else { + snapshotsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -557,26 +608,35 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List snapshots_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSnapshotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { snapshots_ = new java.util.ArrayList(snapshots_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotsBuilder_; + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder> + snapshotsBuilder_; /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSnapshotsList() { if (snapshotsBuilder_ == null) { @@ -586,11 +646,15 @@ public java.util.List getSnapshotsList() { } } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getSnapshotsCount() { if (snapshotsBuilder_ == null) { @@ -600,11 +664,15 @@ public int getSnapshotsCount() { } } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { if (snapshotsBuilder_ == null) { @@ -614,14 +682,17 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { } } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSnapshots( - int index, com.google.pubsub.v1.Snapshot value) { + public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,14 +706,17 @@ public Builder setSnapshots( return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSnapshots( - int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.set(index, builderForValue.build()); @@ -653,11 +727,15 @@ public Builder setSnapshots( return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { @@ -673,14 +751,17 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addSnapshots( - int index, com.google.pubsub.v1.Snapshot value) { + public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +775,17 @@ public Builder addSnapshots( return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addSnapshots( - com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(builderForValue.build()); @@ -712,14 +796,17 @@ public Builder addSnapshots( return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addSnapshots( - int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(index, builderForValue.build()); @@ -730,18 +817,21 @@ public Builder addSnapshots( return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllSnapshots( java.lang.Iterable values) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, snapshots_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); onChanged(); } else { snapshotsBuilder_.addAllMessages(values); @@ -749,11 +839,15 @@ public Builder addAllSnapshots( return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSnapshots() { if (snapshotsBuilder_ == null) { @@ -766,11 +860,15 @@ public Builder clearSnapshots() { return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSnapshots(int index) { if (snapshotsBuilder_ == null) { @@ -783,39 +881,50 @@ public Builder removeSnapshots(int index) { return this; } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder( - int index) { + public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index) { + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { if (snapshotsBuilder_ == null) { - return snapshots_.get(index); } else { + return snapshots_.get(index); + } else { return snapshotsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSnapshotsOrBuilderList() { + public java.util.List + getSnapshotsOrBuilderList() { if (snapshotsBuilder_ != null) { return snapshotsBuilder_.getMessageOrBuilderList(); } else { @@ -823,49 +932,62 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( } } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { - return getSnapshotsFieldBuilder().addBuilder( - com.google.pubsub.v1.Snapshot.getDefaultInstance()); + return getSnapshotsFieldBuilder() + .addBuilder(com.google.pubsub.v1.Snapshot.getDefaultInstance()); } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder( - int index) { - return getSnapshotsFieldBuilder().addBuilder( - index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); + public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { + return getSnapshotsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); } /** + * + * *
      * Optional. The resulting snapshots.
      * 
* - * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSnapshotsBuilderList() { + public java.util.List getSnapshotsBuilderList() { return getSnapshotsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder> getSnapshotsFieldBuilder() { if (snapshotsBuilder_ == null) { - snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( - snapshots_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + snapshotsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder>( + snapshots_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); snapshots_ = null; } return snapshotsBuilder_; @@ -873,6 +995,8 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshot that
      * match the request; this value should be passed in a new
@@ -880,13 +1004,13 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +1019,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshot that
      * match the request; this value should be passed in a new
@@ -902,15 +1028,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +1043,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshot that
      * match the request; this value should be passed in a new
@@ -925,18 +1052,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshot that
      * match the request; this value should be passed in a new
@@ -944,6 +1075,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1085,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshot that
      * match the request; this value should be passed in a new
@@ -960,21 +1094,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1120,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsResponse) private static final com.google.pubsub.v1.ListSnapshotsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSnapshotsResponse(); } @@ -998,27 +1134,27 @@ public static com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotsResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsResponse 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; @@ -1033,6 +1169,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java new file mode 100644 index 000000000..3a0fc2f18 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface ListSnapshotsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The resulting snapshots.
+   * 
+ * + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSnapshotsList(); + /** + * + * + *
+   * Optional. The resulting snapshots.
+   * 
+ * + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.Snapshot getSnapshots(int index); + /** + * + * + *
+   * Optional. The resulting snapshots.
+   * 
+ * + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSnapshotsCount(); + /** + * + * + *
+   * Optional. The resulting snapshots.
+   * 
+ * + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSnapshotsOrBuilderList(); + /** + * + * + *
+   * Optional. The resulting snapshots.
+   * 
+ * + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); + + /** + * + * + *
+   * Optional. If not empty, indicates that there may be more snapshot that
+   * match the request; this value should be passed in a new
+   * `ListSnapshotsRequest`.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Optional. If not empty, indicates that there may be more snapshot that
+   * match the request; this value should be passed in a new
+   * `ListSnapshotsRequest`.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 35f84b630..0d1033830 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `ListSubscriptions` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSubscriptionsRequest} */ -public final class ListSubscriptionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSubscriptionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsRequest) ListSubscriptionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSubscriptionsRequest.newBuilder() to construct. private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSubscriptionsRequest() { project_ = ""; pageToken_ = ""; @@ -27,34 +45,41 @@ private ListSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsRequest.class, com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListSubscriptionsRequest.class, + com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** + * + * *
    * Required. The name of the project in which to list subscriptions.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which to list subscriptions.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -97,11 +124,14 @@ public java.lang.String getProject() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of subscriptions to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -110,9 +140,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListSubscriptionsResponse`;
    * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The value returned by the last `ListSubscriptionsResponse`;
    * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -143,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -196,8 +230,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -210,19 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListSubscriptionsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListSubscriptionsRequest other = (com.google.pubsub.v1.ListSubscriptionsRequest) obj; + com.google.pubsub.v1.ListSubscriptionsRequest other = + (com.google.pubsub.v1.ListSubscriptionsRequest) obj; - if (!getProject() - .equals(other.getProject())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getProject().equals(other.getProject())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,132 +276,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSubscriptionsRequest 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.ListSubscriptionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListSubscriptions` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSubscriptionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSubscriptionsRequest) com.google.pubsub.v1.ListSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsRequest.class, com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListSubscriptionsRequest.class, + com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListSubscriptionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override @@ -403,8 +438,11 @@ public com.google.pubsub.v1.ListSubscriptionsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { - com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListSubscriptionsRequest result = + new com.google.pubsub.v1.ListSubscriptionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +464,39 @@ private void buildPartial0(com.google.pubsub.v1.ListSubscriptionsRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; @@ -505,27 +544,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -535,23 +578,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object project_ = ""; /** + * + * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -560,21 +608,24 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -582,30 +633,41 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProject() { @@ -615,18 +677,24 @@ public Builder clearProject() { return this; } /** + * + * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -634,13 +702,16 @@ public Builder setProjectBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -648,11 +719,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -664,11 +738,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -680,6 +757,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -687,13 +766,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -702,6 +781,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -709,15 +790,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -725,6 +805,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -732,18 +814,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -751,6 +837,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -760,6 +847,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -767,21 +856,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -791,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsRequest) private static final com.google.pubsub.v1.ListSubscriptionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSubscriptionsRequest(); } @@ -805,27 +896,27 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubscriptionsRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubscriptionsRequest 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; @@ -840,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 46375638b..cf0a23a85 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListSubscriptionsRequestOrBuilder extends +public interface ListSubscriptionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project in which to list subscriptions.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * Required. The name of the project in which to list subscriptions.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Optional. Maximum number of subscriptions to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListSubscriptionsResponse`;
    * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -48,10 +78,13 @@ public interface ListSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListSubscriptionsResponse`;
    * indicates that this is a continuation of a prior `ListSubscriptions` call,
@@ -59,8 +92,8 @@ public interface ListSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 7d4cb3ed9..38bcdaa7b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ListSubscriptions` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSubscriptionsResponse} */ -public final class ListSubscriptionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSubscriptionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsResponse) ListSubscriptionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSubscriptionsResponse.newBuilder() to construct. private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSubscriptionsResponse() { subscriptions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,89 +45,113 @@ private ListSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsResponse.class, com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListSubscriptionsResponse.class, + com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List subscriptions_; /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getSubscriptionsList() { return subscriptions_; } /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getSubscriptionsOrBuilderList() { return subscriptions_; } /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( - int index) { + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { return subscriptions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Optional. If not empty, indicates that there may be more subscriptions that
    * match the request; this value should be passed in a new
@@ -117,6 +159,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +168,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Optional. If not empty, indicates that there may be more subscriptions that
    * match the request; this value should be passed in a new
@@ -140,16 +184,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { output.writeMessage(1, subscriptions_.get(i)); } @@ -187,8 +230,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < subscriptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, subscriptions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subscriptions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +243,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListSubscriptionsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListSubscriptionsResponse other = (com.google.pubsub.v1.ListSubscriptionsResponse) obj; + com.google.pubsub.v1.ListSubscriptionsResponse other = + (com.google.pubsub.v1.ListSubscriptionsResponse) obj; - if (!getSubscriptionsList() - .equals(other.getSubscriptionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +275,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSubscriptionsResponse 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.ListSubscriptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListSubscriptions` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSubscriptionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSubscriptionsResponse) com.google.pubsub.v1.ListSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsResponse.class, com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListSubscriptionsResponse.class, + com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListSubscriptionsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override @@ -397,9 +442,12 @@ public com.google.pubsub.v1.ListSubscriptionsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { - com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); + com.google.pubsub.v1.ListSubscriptionsResponse result = + new com.google.pubsub.v1.ListSubscriptionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +475,39 @@ private void buildPartial0(com.google.pubsub.v1.ListSubscriptionsResponse result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +534,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { subscriptionsBuilder_ = null; subscriptions_ = other.subscriptions_; bitField0_ = (bitField0_ & ~0x00000001); - subscriptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubscriptionsFieldBuilder() : null; + subscriptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubscriptionsFieldBuilder() + : null; } else { subscriptionsBuilder_.addAllMessages(other.subscriptions_); } @@ -524,30 +574,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Subscription m = - input.readMessage( - com.google.pubsub.v1.Subscription.parser(), - extensionRegistry); - if (subscriptionsBuilder_ == null) { - ensureSubscriptionsIsMutable(); - subscriptions_.add(m); - } else { - subscriptionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.pubsub.v1.Subscription m = + input.readMessage( + com.google.pubsub.v1.Subscription.parser(), extensionRegistry); + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.add(m); + } else { + subscriptionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -557,26 +609,35 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List subscriptions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { subscriptions_ = new java.util.ArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionsBuilder_; + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder> + subscriptionsBuilder_; /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSubscriptionsList() { if (subscriptionsBuilder_ == null) { @@ -586,11 +647,15 @@ public java.util.List getSubscriptionsList() } } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getSubscriptionsCount() { if (subscriptionsBuilder_ == null) { @@ -600,11 +665,15 @@ public int getSubscriptionsCount() { } } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { if (subscriptionsBuilder_ == null) { @@ -614,14 +683,17 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { } } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSubscriptions( - int index, com.google.pubsub.v1.Subscription value) { + public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,11 +707,15 @@ public Builder setSubscriptions( return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubscriptions( int index, com.google.pubsub.v1.Subscription.Builder builderForValue) { @@ -653,11 +729,15 @@ public Builder setSubscriptions( return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { @@ -673,14 +753,17 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addSubscriptions( - int index, com.google.pubsub.v1.Subscription value) { + public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +777,17 @@ public Builder addSubscriptions( return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addSubscriptions( - com.google.pubsub.v1.Subscription.Builder builderForValue) { + public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionsBuilder_ == null) { ensureSubscriptionsIsMutable(); subscriptions_.add(builderForValue.build()); @@ -712,11 +798,15 @@ public Builder addSubscriptions( return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions( int index, com.google.pubsub.v1.Subscription.Builder builderForValue) { @@ -730,18 +820,21 @@ public Builder addSubscriptions( return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllSubscriptions( java.lang.Iterable values) { if (subscriptionsBuilder_ == null) { ensureSubscriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subscriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_); onChanged(); } else { subscriptionsBuilder_.addAllMessages(values); @@ -749,11 +842,15 @@ public Builder addAllSubscriptions( return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSubscriptions() { if (subscriptionsBuilder_ == null) { @@ -766,11 +863,15 @@ public Builder clearSubscriptions() { return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSubscriptions(int index) { if (subscriptionsBuilder_ == null) { @@ -783,39 +884,50 @@ public Builder removeSubscriptions(int index) { return this; } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder( - int index) { + public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( - int index) { + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { if (subscriptionsBuilder_ == null) { - return subscriptions_.get(index); } else { + return subscriptions_.get(index); + } else { return subscriptionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSubscriptionsOrBuilderList() { + public java.util.List + getSubscriptionsOrBuilderList() { if (subscriptionsBuilder_ != null) { return subscriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -823,45 +935,61 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( } } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { - return getSubscriptionsFieldBuilder().addBuilder( - com.google.pubsub.v1.Subscription.getDefaultInstance()); + return getSubscriptionsFieldBuilder() + .addBuilder(com.google.pubsub.v1.Subscription.getDefaultInstance()); } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( - int index) { - return getSubscriptionsFieldBuilder().addBuilder( - index, com.google.pubsub.v1.Subscription.getDefaultInstance()); + public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int index) { + return getSubscriptionsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } /** + * + * *
      * Optional. The subscriptions that match the request.
      * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSubscriptionsBuilderList() { + public java.util.List getSubscriptionsBuilderList() { return getSubscriptionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder> getSubscriptionsFieldBuilder() { if (subscriptionsBuilder_ == null) { - subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( + subscriptionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder>( subscriptions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -873,6 +1001,8 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -880,13 +1010,13 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +1025,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -902,15 +1034,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +1049,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -925,18 +1058,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -944,6 +1081,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1091,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -960,21 +1100,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1126,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsResponse) private static final com.google.pubsub.v1.ListSubscriptionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSubscriptionsResponse(); } @@ -998,27 +1140,27 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubscriptionsResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubscriptionsResponse 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; @@ -1033,6 +1175,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index dfc3d3ea0..9702ee6a8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,58 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListSubscriptionsResponseOrBuilder extends +public interface ListSubscriptionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getSubscriptionsList(); + java.util.List getSubscriptionsList(); /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.Subscription getSubscriptions(int index); /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getSubscriptionsCount(); /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getSubscriptionsOrBuilderList(); /** + * + * *
    * Optional. The subscriptions that match the request.
    * 
* - * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( - int index); + com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index); /** + * + * *
    * Optional. If not empty, indicates that there may be more subscriptions that
    * match the request; this value should be passed in a new
@@ -60,10 +96,13 @@ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Optional. If not empty, indicates that there may be more subscriptions that
    * match the request; this value should be passed in a new
@@ -71,8 +110,8 @@ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 6c1fa0e61..04d59ac07 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `ListTopicSnapshots` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} */ -public final class ListTopicSnapshotsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsRequest) ListTopicSnapshotsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicSnapshotsRequest.newBuilder() to construct. private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicSnapshotsRequest() { topic_ = ""; pageToken_ = ""; @@ -27,34 +45,41 @@ private ListTopicSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSnapshotsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSnapshotsRequest.class, com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSnapshotsRequest.class, + com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Required. The name of the topic that snapshots are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
    * Required. The name of the topic that snapshots are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -97,11 +124,14 @@ public java.lang.String getTopic() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of snapshot names to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -110,9 +140,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -143,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -196,8 +230,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -210,19 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListTopicSnapshotsRequest other = (com.google.pubsub.v1.ListTopicSnapshotsRequest) obj; + com.google.pubsub.v1.ListTopicSnapshotsRequest other = + (com.google.pubsub.v1.ListTopicSnapshotsRequest) obj; - if (!getTopic() - .equals(other.getTopic())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,132 +276,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListTopicSnapshotsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest 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.ListTopicSnapshotsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListTopicSnapshots` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsRequest) com.google.pubsub.v1.ListTopicSnapshotsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSnapshotsRequest.class, com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSnapshotsRequest.class, + com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSnapshotsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } @java.lang.Override @@ -403,8 +438,11 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { - com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListTopicSnapshotsRequest result = + new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +464,39 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicSnapshotsRequest result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListTopicSnapshotsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest) other); } else { super.mergeFrom(other); return this; @@ -505,27 +544,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -535,23 +578,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -560,21 +608,24 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -582,30 +633,41 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -615,18 +677,24 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -634,13 +702,16 @@ public Builder setTopicBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -648,11 +719,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -664,11 +738,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -680,6 +757,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -687,13 +766,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -702,6 +781,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -709,15 +790,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -725,6 +805,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -732,18 +814,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -751,6 +837,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -760,6 +847,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -767,21 +856,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -791,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsRequest) private static final com.google.pubsub.v1.ListTopicSnapshotsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSnapshotsRequest(); } @@ -805,27 +896,27 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSnapshotsRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSnapshotsRequest 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; @@ -840,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 1a18994d4..ed7e3b6ba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListTopicSnapshotsRequestOrBuilder extends +public interface ListTopicSnapshotsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the topic that snapshots are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
    * Required. The name of the topic that snapshots are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); /** + * + * *
    * Optional. Maximum number of snapshot names to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -48,10 +78,13 @@ public interface ListTopicSnapshotsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
@@ -59,8 +92,8 @@ public interface ListTopicSnapshotsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index f514e0603..9e0ddfe5a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,80 +20,92 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ListTopicSnapshots` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} */ -public final class ListTopicSnapshotsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsResponse) ListTopicSnapshotsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicSnapshotsResponse.newBuilder() to construct. private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicSnapshotsResponse() { - snapshots_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSnapshotsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSnapshotsResponse.class, com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSnapshotsResponse.class, + com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); } public static final int SNAPSHOTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the snapshots. */ - public com.google.protobuf.ProtocolStringList - getSnapshotsList() { + public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_; } /** + * + * *
    * Optional. The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
    * Optional. The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The snapshots at the given index. */ @@ -86,23 +113,28 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
    * Optional. The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. */ - public com.google.protobuf.ByteString - getSnapshotsBytes(int index) { + public com.google.protobuf.ByteString getSnapshotsBytes(int index) { return snapshots_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Optional. If not empty, indicates that there may be more snapshots that
    * match the request; this value should be passed in a new
@@ -110,6 +142,7 @@ public java.lang.String getSnapshots(int index) {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ @java.lang.Override @@ -118,14 +151,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Optional. If not empty, indicates that there may be more snapshots that
    * match the request; this value should be passed in a new
@@ -133,16 +167,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -151,6 +184,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,8 +196,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshots_.getRaw(i)); } @@ -198,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListTopicSnapshotsResponse other = (com.google.pubsub.v1.ListTopicSnapshotsResponse) obj; + com.google.pubsub.v1.ListTopicSnapshotsResponse other = + (com.google.pubsub.v1.ListTopicSnapshotsResponse) obj; - if (!getSnapshotsList() - .equals(other.getSnapshotsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSnapshotsList().equals(other.getSnapshotsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,146 +263,149 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListTopicSnapshotsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse 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.ListTopicSnapshotsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListTopicSnapshots` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsResponse) com.google.pubsub.v1.ListTopicSnapshotsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSnapshotsResponse.class, com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSnapshotsResponse.class, + com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSnapshotsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - snapshots_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } @java.lang.Override @@ -389,8 +424,11 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { - com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListTopicSnapshotsResponse result = + new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -410,38 +448,39 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicSnapshotsResponse resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListTopicSnapshotsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse) other); } else { super.mergeFrom(other); return this; @@ -449,7 +488,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) { - if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()) + return this; if (!other.snapshots_.isEmpty()) { if (snapshots_.isEmpty()) { snapshots_ = other.snapshots_; @@ -491,23 +531,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSnapshotsIsMutable(); - snapshots_.add(s); - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSnapshotsIsMutable(); + snapshots_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -517,10 +560,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSnapshotsIsMutable() { if (!snapshots_.isModifiable()) { snapshots_ = new com.google.protobuf.LazyStringArrayList(snapshots_); @@ -528,35 +573,43 @@ private void ensureSnapshotsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the snapshots. */ - public com.google.protobuf.ProtocolStringList - getSnapshotsList() { + public com.google.protobuf.ProtocolStringList getSnapshotsList() { snapshots_.makeImmutable(); return snapshots_; } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The snapshots at the given index. */ @@ -564,31 +617,37 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. */ - public com.google.protobuf.ByteString - getSnapshotsBytes(int index) { + public com.google.protobuf.ByteString getSnapshotsBytes(int index) { return snapshots_.getByteString(index); } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The snapshots to set. * @return This builder for chaining. */ - public Builder setSnapshots( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnapshots(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSnapshotsIsMutable(); snapshots_.set(index, value); bitField0_ |= 0x00000001; @@ -596,17 +655,21 @@ public Builder setSnapshots( return this; } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The snapshots to add. * @return This builder for chaining. */ - public Builder addSnapshots( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSnapshots(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSnapshotsIsMutable(); snapshots_.add(value); bitField0_ |= 0x00000001; @@ -614,50 +677,58 @@ public Builder addSnapshots( return this; } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The snapshots to add. * @return This builder for chaining. */ - public Builder addAllSnapshots( - java.lang.Iterable values) { + public Builder addAllSnapshots(java.lang.Iterable values) { ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, snapshots_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSnapshots() { - snapshots_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Optional. The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the snapshots to add. * @return This builder for chaining. */ - public Builder addSnapshotsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSnapshotsIsMutable(); snapshots_.add(value); @@ -668,6 +739,8 @@ public Builder addSnapshotsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshots that
      * match the request; this value should be passed in a new
@@ -675,13 +748,13 @@ public Builder addSnapshotsBytes(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -690,6 +763,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshots that
      * match the request; this value should be passed in a new
@@ -697,15 +772,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -713,6 +787,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshots that
      * match the request; this value should be passed in a new
@@ -720,18 +796,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshots that
      * match the request; this value should be passed in a new
@@ -739,6 +819,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -748,6 +829,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more snapshots that
      * match the request; this value should be passed in a new
@@ -755,21 +838,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -779,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsResponse) private static final com.google.pubsub.v1.ListTopicSnapshotsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSnapshotsResponse(); } @@ -793,27 +878,27 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSnapshotsResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSnapshotsResponse 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; @@ -828,6 +913,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index cf45307e8..d8fa52928 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,55 +1,83 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListTopicSnapshotsResponseOrBuilder extends +public interface ListTopicSnapshotsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the snapshots. */ - java.util.List - getSnapshotsList(); + java.util.List getSnapshotsList(); /** + * + * *
    * Optional. The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of snapshots. */ int getSnapshotsCount(); /** + * + * *
    * Optional. The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The snapshots at the given index. */ java.lang.String getSnapshots(int index); /** + * + * *
    * Optional. The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. */ - com.google.protobuf.ByteString - getSnapshotsBytes(int index); + com.google.protobuf.ByteString getSnapshotsBytes(int index); /** + * + * *
    * Optional. If not empty, indicates that there may be more snapshots that
    * match the request; this value should be passed in a new
@@ -57,10 +85,13 @@ public interface ListTopicSnapshotsResponseOrBuilder extends
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Optional. If not empty, indicates that there may be more snapshots that
    * match the request; this value should be passed in a new
@@ -68,8 +99,8 @@ public interface ListTopicSnapshotsResponseOrBuilder extends
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index aad56afb6..1cd0ec4d9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `ListTopicSubscriptions` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsRequest} */ -public final class ListTopicSubscriptionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicSubscriptionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) ListTopicSubscriptionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicSubscriptionsRequest.newBuilder() to construct. private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicSubscriptionsRequest() { topic_ = ""; pageToken_ = ""; @@ -27,34 +45,41 @@ private ListTopicSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, + com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Required. The name of the topic that subscriptions are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
    * Required. The name of the topic that subscriptions are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -97,11 +124,14 @@ public java.lang.String getTopic() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of subscription names to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -110,9 +140,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -143,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -196,8 +230,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -210,19 +243,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListTopicSubscriptionsRequest other = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) obj; + com.google.pubsub.v1.ListTopicSubscriptionsRequest other = + (com.google.pubsub.v1.ListTopicSubscriptionsRequest) obj; - if (!getTopic() - .equals(other.getTopic())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,131 +277,135 @@ public int hashCode() { } public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest 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.ListTopicSubscriptionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListTopicSubscriptions` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) com.google.pubsub.v1.ListTopicSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, + com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSubscriptionsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override @@ -403,8 +438,11 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { - com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListTopicSubscriptionsRequest result = + new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +464,39 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicSubscriptionsRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest other) { - if (other == com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()) + return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -505,27 +545,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -535,23 +579,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -560,21 +609,24 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -582,30 +634,41 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -615,18 +678,24 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -634,13 +703,16 @@ public Builder setTopicBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of subscription names to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -648,11 +720,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of subscription names to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -664,11 +739,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of subscription names to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -680,6 +758,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -687,13 +767,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -702,6 +782,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -709,15 +791,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -725,6 +806,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -732,18 +815,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -751,6 +838,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -760,6 +848,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
      * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -767,21 +857,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -791,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) private static final com.google.pubsub.v1.ListTopicSubscriptionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(); } @@ -805,27 +897,27 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSubscriptionsRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSubscriptionsRequest 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; @@ -840,6 +932,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 6ed783e15..f566e81cf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListTopicSubscriptionsRequestOrBuilder extends +public interface ListTopicSubscriptionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the topic that subscriptions are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
    * Required. The name of the topic that subscriptions are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); /** + * + * *
    * Optional. Maximum number of subscription names to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -48,10 +78,13 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    * indicates that this is a continuation of a prior `ListTopicSubscriptions`
@@ -59,8 +92,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 7df52035d..3b1394a94 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,83 +20,102 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ListTopicSubscriptions` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsResponse} */ -public final class ListTopicSubscriptionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicSubscriptionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) ListTopicSubscriptionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicSubscriptionsResponse.newBuilder() to construct. - private ListTopicSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicSubscriptionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicSubscriptionsResponse() { - subscriptions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSubscriptionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, + com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. The names of subscriptions attached to the topic specified in the
    * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList - getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_; } /** + * + * *
    * Optional. The names of subscriptions attached to the topic specified in the
    * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
    * Optional. The names of subscriptions attached to the topic specified in the
    * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -89,24 +123,31 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
    * Optional. The names of subscriptions attached to the topic specified in the
    * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. */ - public com.google.protobuf.ByteString - getSubscriptionsBytes(int index) { + public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Optional. If not empty, indicates that there may be more subscriptions that
    * match the request; this value should be passed in a new
@@ -114,6 +155,7 @@ public java.lang.String getSubscriptions(int index) {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ @java.lang.Override @@ -122,14 +164,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Optional. If not empty, indicates that there may be more subscriptions that
    * match the request; this value should be passed in a new
@@ -137,16 +180,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -155,6 +197,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptions_.getRaw(i)); } @@ -202,17 +244,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListTopicSubscriptionsResponse other = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) obj; + com.google.pubsub.v1.ListTopicSubscriptionsResponse other = + (com.google.pubsub.v1.ListTopicSubscriptionsResponse) obj; - if (!getSubscriptionsList() - .equals(other.getSubscriptionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,145 +277,148 @@ public int hashCode() { } public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse 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.ListTopicSubscriptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListTopicSubscriptions` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) com.google.pubsub.v1.ListTopicSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, + com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSubscriptionsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - subscriptions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override @@ -393,8 +437,11 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { - com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListTopicSubscriptionsResponse result = + new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -414,38 +461,39 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicSubscriptionsResponse r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListTopicSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse) other); } else { super.mergeFrom(other); return this; @@ -453,7 +501,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse other) { - if (other == com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()) + return this; if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { subscriptions_ = other.subscriptions_; @@ -495,23 +544,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubscriptionsIsMutable(); - subscriptions_.add(s); - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubscriptionsIsMutable(); + subscriptions_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -521,10 +573,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubscriptionsIsMutable() { if (!subscriptions_.isModifiable()) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); @@ -532,38 +586,52 @@ private void ensureSubscriptionsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList - getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList getSubscriptionsList() { subscriptions_.makeImmutable(); return subscriptions_; } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -571,33 +639,43 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. */ - public com.google.protobuf.ByteString - getSubscriptionsBytes(int index) { + public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The subscriptions to set. * @return This builder for chaining. */ - public Builder setSubscriptions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); bitField0_ |= 0x00000001; @@ -605,18 +683,24 @@ public Builder setSubscriptions( return this; } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubscriptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSubscriptionsIsMutable(); subscriptions_.add(value); bitField0_ |= 0x00000001; @@ -624,53 +708,67 @@ public Builder addSubscriptions( return this; } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param values The subscriptions to add. * @return This builder for chaining. */ - public Builder addAllSubscriptions( - java.lang.Iterable values) { + public Builder addAllSubscriptions(java.lang.Iterable values) { ensureSubscriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subscriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscriptions() { - subscriptions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Optional. The names of subscriptions attached to the topic specified in the
      * request.
      * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); @@ -681,6 +779,8 @@ public Builder addSubscriptionsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -688,13 +788,13 @@ public Builder addSubscriptionsBytes(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -703,6 +803,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -710,15 +812,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -726,6 +827,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -733,18 +836,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -752,6 +859,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -761,6 +869,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more subscriptions that
      * match the request; this value should be passed in a new
@@ -768,21 +878,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -792,12 +904,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) private static final com.google.pubsub.v1.ListTopicSubscriptionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(); } @@ -806,27 +918,27 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSubscriptionsResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSubscriptionsResponse 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; @@ -841,6 +953,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 69260221e..b1d983699 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,59 +1,95 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListTopicSubscriptionsResponseOrBuilder extends +public interface ListTopicSubscriptionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The names of subscriptions attached to the topic specified in the
    * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the subscriptions. */ - java.util.List - getSubscriptionsList(); + java.util.List getSubscriptionsList(); /** + * + * *
    * Optional. The names of subscriptions attached to the topic specified in the
    * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The count of subscriptions. */ int getSubscriptionsCount(); /** + * + * *
    * Optional. The names of subscriptions attached to the topic specified in the
    * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The subscriptions at the given index. */ java.lang.String getSubscriptions(int index); /** + * + * *
    * Optional. The names of subscriptions attached to the topic specified in the
    * request.
    * 
* - * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. */ - com.google.protobuf.ByteString - getSubscriptionsBytes(int index); + com.google.protobuf.ByteString getSubscriptionsBytes(int index); /** + * + * *
    * Optional. If not empty, indicates that there may be more subscriptions that
    * match the request; this value should be passed in a new
@@ -61,10 +97,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder extends
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Optional. If not empty, indicates that there may be more subscriptions that
    * match the request; this value should be passed in a new
@@ -72,8 +111,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder extends
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 87d622bb2..49f2b04d7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `ListTopics` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListTopicsRequest} */ -public final class ListTopicsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsRequest) ListTopicsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicsRequest.newBuilder() to construct. private ListTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicsRequest() { project_ = ""; pageToken_ = ""; @@ -27,34 +45,41 @@ private ListTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsRequest.class, com.google.pubsub.v1.ListTopicsRequest.Builder.class); + com.google.pubsub.v1.ListTopicsRequest.class, + com.google.pubsub.v1.ListTopicsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** + * + * *
    * Required. The name of the project in which to list topics.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which to list topics.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -97,11 +124,14 @@ public java.lang.String getProject() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of topics to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -110,9 +140,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. The value returned by the last `ListTopicsResponse`; indicates
    * that this is a continuation of a prior `ListTopics` call, and that the
@@ -120,6 +153,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,14 +162,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. The value returned by the last `ListTopicsResponse`; indicates
    * that this is a continuation of a prior `ListTopics` call, and that the
@@ -143,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -161,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -196,8 +230,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -210,19 +243,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListTopicsRequest)) { return super.equals(obj); } com.google.pubsub.v1.ListTopicsRequest other = (com.google.pubsub.v1.ListTopicsRequest) obj; - if (!getProject() - .equals(other.getProject())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getProject().equals(other.getProject())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,132 +275,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListTopicsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListTopicsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicsRequest 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.ListTopicsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListTopics` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListTopicsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicsRequest) com.google.pubsub.v1.ListTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsRequest.class, com.google.pubsub.v1.ListTopicsRequest.Builder.class); + com.google.pubsub.v1.ListTopicsRequest.class, + com.google.pubsub.v1.ListTopicsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override @@ -403,8 +437,11 @@ public com.google.pubsub.v1.ListTopicsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest buildPartial() { - com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ListTopicsRequest result = + new com.google.pubsub.v1.ListTopicsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +463,39 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicsRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListTopicsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListTopicsRequest) other); } else { super.mergeFrom(other); return this; @@ -505,27 +543,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + 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) { @@ -535,23 +577,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object project_ = ""; /** + * + * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -560,21 +607,24 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -582,30 +632,41 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearProject() { @@ -615,18 +676,24 @@ public Builder clearProject() { return this; } /** + * + * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -634,13 +701,16 @@ public Builder setProjectBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of topics to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -648,11 +718,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of topics to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -664,11 +737,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of topics to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -680,6 +756,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. The value returned by the last `ListTopicsResponse`; indicates
      * that this is a continuation of a prior `ListTopics` call, and that the
@@ -687,13 +765,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -702,6 +780,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListTopicsResponse`; indicates
      * that this is a continuation of a prior `ListTopics` call, and that the
@@ -709,15 +789,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -725,6 +804,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. The value returned by the last `ListTopicsResponse`; indicates
      * that this is a continuation of a prior `ListTopics` call, and that the
@@ -732,18 +813,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The value returned by the last `ListTopicsResponse`; indicates
      * that this is a continuation of a prior `ListTopics` call, and that the
@@ -751,6 +836,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -760,6 +846,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. The value returned by the last `ListTopicsResponse`; indicates
      * that this is a continuation of a prior `ListTopics` call, and that the
@@ -767,21 +855,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -791,12 +881,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsRequest) private static final com.google.pubsub.v1.ListTopicsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicsRequest(); } @@ -805,27 +895,27 @@ public static com.google.pubsub.v1.ListTopicsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicsRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicsRequest 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; @@ -840,6 +930,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index df4558a45..2207da516 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListTopicsRequestOrBuilder extends +public interface ListTopicsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project in which to list topics.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * Required. The name of the project in which to list topics.
    * Format is `projects/{project-id}`.
    * 
* - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Optional. Maximum number of topics to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. The value returned by the last `ListTopicsResponse`; indicates
    * that this is a continuation of a prior `ListTopics` call, and that the
@@ -48,10 +78,13 @@ public interface ListTopicsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. The value returned by the last `ListTopicsResponse`; indicates
    * that this is a continuation of a prior `ListTopics` call, and that the
@@ -59,8 +92,8 @@ public interface ListTopicsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index d5c5cb10a..1ddab4ffe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ListTopics` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListTopicsResponse} */ -public final class ListTopicsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsResponse) ListTopicsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicsResponse.newBuilder() to construct. private ListTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicsResponse() { topics_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,95 +45,114 @@ private ListTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsResponse.class, com.google.pubsub.v1.ListTopicsResponse.Builder.class); + com.google.pubsub.v1.ListTopicsResponse.class, + com.google.pubsub.v1.ListTopicsResponse.Builder.class); } public static final int TOPICS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List topics_; /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getTopicsList() { return topics_; } /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List - getTopicsOrBuilderList() { + public java.util.List getTopicsOrBuilderList() { return topics_; } /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getTopicsCount() { return topics_.size(); } /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Topic getTopics(int index) { return topics_.get(index); } /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( - int index) { + public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { return topics_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Optional. If not empty, indicates that there may be more topics that match
    * the request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +161,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Optional. If not empty, indicates that there may be more topics that match
    * the request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -156,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { output.writeMessage(1, topics_.get(i)); } @@ -185,8 +222,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < topics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, topics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +235,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ListTopicsResponse)) { return super.equals(obj); } com.google.pubsub.v1.ListTopicsResponse other = (com.google.pubsub.v1.ListTopicsResponse) obj; - if (!getTopicsList() - .equals(other.getTopicsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getTopicsList().equals(other.getTopicsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,132 +266,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListTopicsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListTopicsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ListTopicsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicsResponse 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.ListTopicsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListTopics` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListTopicsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicsResponse) com.google.pubsub.v1.ListTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsResponse.class, com.google.pubsub.v1.ListTopicsResponse.Builder.class); + com.google.pubsub.v1.ListTopicsResponse.class, + com.google.pubsub.v1.ListTopicsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override @@ -395,9 +433,12 @@ public com.google.pubsub.v1.ListTopicsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse buildPartial() { - com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); + com.google.pubsub.v1.ListTopicsResponse result = + new com.google.pubsub.v1.ListTopicsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -425,38 +466,39 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicsResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ListTopicsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListTopicsResponse) other); } else { super.mergeFrom(other); return this; @@ -483,9 +525,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { topicsBuilder_ = null; topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000001); - topicsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTopicsFieldBuilder() : null; + topicsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTopicsFieldBuilder() + : null; } else { topicsBuilder_.addAllMessages(other.topics_); } @@ -522,30 +565,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Topic m = - input.readMessage( - com.google.pubsub.v1.Topic.parser(), - extensionRegistry); - if (topicsBuilder_ == null) { - ensureTopicsIsMutable(); - topics_.add(m); - } else { - topicsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.pubsub.v1.Topic m = + input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + topics_.add(m); + } else { + topicsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -555,26 +599,33 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List topics_ = - java.util.Collections.emptyList(); + private java.util.List topics_ = java.util.Collections.emptyList(); + private void ensureTopicsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { topics_ = new java.util.ArrayList(topics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicsBuilder_; + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder> + topicsBuilder_; /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTopicsList() { if (topicsBuilder_ == null) { @@ -584,11 +635,14 @@ public java.util.List getTopicsList() { } } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getTopicsCount() { if (topicsBuilder_ == null) { @@ -598,11 +652,14 @@ public int getTopicsCount() { } } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic getTopics(int index) { if (topicsBuilder_ == null) { @@ -612,14 +669,16 @@ public com.google.pubsub.v1.Topic getTopics(int index) { } } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTopics( - int index, com.google.pubsub.v1.Topic value) { + public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,14 +692,16 @@ public Builder setTopics( return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTopics( - int index, com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.set(index, builderForValue.build()); @@ -651,11 +712,14 @@ public Builder setTopics( return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { @@ -671,14 +735,16 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addTopics( - int index, com.google.pubsub.v1.Topic value) { + public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,14 +758,16 @@ public Builder addTopics( return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addTopics( - com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(builderForValue.build()); @@ -710,14 +778,16 @@ public Builder addTopics( return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addTopics( - int index, com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(index, builderForValue.build()); @@ -728,18 +798,19 @@ public Builder addTopics( return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAllTopics( - java.lang.Iterable values) { + public Builder addAllTopics(java.lang.Iterable values) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); onChanged(); } else { topicsBuilder_.addAllMessages(values); @@ -747,11 +818,14 @@ public Builder addAllTopics( return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTopics() { if (topicsBuilder_ == null) { @@ -764,11 +838,14 @@ public Builder clearTopics() { return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { @@ -781,39 +858,46 @@ public Builder removeTopics(int index) { return this; } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.Topic.Builder getTopicsBuilder( - int index) { + public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { return getTopicsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( - int index) { + public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { if (topicsBuilder_ == null) { - return topics_.get(index); } else { + return topics_.get(index); + } else { return topicsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getTopicsOrBuilderList() { + public java.util.List getTopicsOrBuilderList() { if (topicsBuilder_ != null) { return topicsBuilder_.getMessageOrBuilderList(); } else { @@ -821,49 +905,58 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( } } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { - return getTopicsFieldBuilder().addBuilder( - com.google.pubsub.v1.Topic.getDefaultInstance()); + return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.Topic.Builder addTopicsBuilder( - int index) { - return getTopicsFieldBuilder().addBuilder( - index, com.google.pubsub.v1.Topic.getDefaultInstance()); + public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { + return getTopicsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Topic.getDefaultInstance()); } /** + * + * *
      * Optional. The resulting topics.
      * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getTopicsBuilderList() { + public java.util.List getTopicsBuilderList() { return getTopicsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder> getTopicsFieldBuilder() { if (topicsBuilder_ == null) { - topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( - topics_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + topicsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder>( + topics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); topics_ = null; } return topicsBuilder_; @@ -871,19 +964,21 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Optional. If not empty, indicates that there may be more topics that match
      * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -892,21 +987,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more topics that match
      * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -914,30 +1010,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. If not empty, indicates that there may be more topics that match
      * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more topics that match
      * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -947,27 +1050,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Optional. If not empty, indicates that there may be more topics that match
      * the request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1084,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsResponse) private static final com.google.pubsub.v1.ListTopicsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicsResponse(); } @@ -991,27 +1098,27 @@ public static com.google.pubsub.v1.ListTopicsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicsResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicsResponse 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; @@ -1026,6 +1133,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 3fd7d0329..fa0fc598b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,76 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ListTopicsResponseOrBuilder extends +public interface ListTopicsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getTopicsList(); + java.util.List getTopicsList(); /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.Topic getTopics(int index); /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getTopicsCount(); /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getTopicsOrBuilderList(); + java.util.List getTopicsOrBuilderList(); /** + * + * *
    * Optional. The resulting topics.
    * 
* - * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( - int index); + com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index); /** + * + * *
    * Optional. If not empty, indicates that there may be more topics that match
    * the request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Optional. If not empty, indicates that there may be more topics that match
    * the request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 7d595f7d5..8b59c4383 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,51 +20,57 @@ package com.google.pubsub.v1; /** + * + * *
  * A policy constraining the storage of messages published to the topic.
  * 
* * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */ -public final class MessageStoragePolicy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MessageStoragePolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageStoragePolicy) MessageStoragePolicyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MessageStoragePolicy.newBuilder() to construct. private MessageStoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MessageStoragePolicy() { - allowedPersistenceRegions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MessageStoragePolicy(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.MessageStoragePolicy.class, com.google.pubsub.v1.MessageStoragePolicy.Builder.class); + com.google.pubsub.v1.MessageStoragePolicy.class, + com.google.pubsub.v1.MessageStoragePolicy.Builder.class); } public static final int ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. A list of IDs of Google Cloud regions where messages that are
    * published to the topic may be persisted in storage. Messages published by
@@ -59,14 +80,18 @@ protected java.lang.Object newInstance(
    * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedPersistenceRegions. */ - public com.google.protobuf.ProtocolStringList - getAllowedPersistenceRegionsList() { + public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_; } /** + * + * *
    * Optional. A list of IDs of Google Cloud regions where messages that are
    * published to the topic may be persisted in storage. Messages published by
@@ -76,13 +101,18 @@ protected java.lang.Object newInstance(
    * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } /** + * + * *
    * Optional. A list of IDs of Google Cloud regions where messages that are
    * published to the topic may be persisted in storage. Messages published by
@@ -92,7 +122,10 @@ public int getAllowedPersistenceRegionsCount() {
    * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ @@ -100,6 +133,8 @@ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } /** + * + * *
    * Optional. A list of IDs of Google Cloud regions where messages that are
    * published to the topic may be persisted in storage. Messages published by
@@ -109,18 +144,22 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
    * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. */ - public com.google.protobuf.ByteString - getAllowedPersistenceRegionsBytes(int index) { + public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) { return allowedPersistenceRegions_.getByteString(index); } public static final int ENFORCE_IN_TRANSIT_FIELD_NUMBER = 2; private boolean enforceInTransit_ = false; /** + * + * *
    * Optional. If true, `allowed_persistence_regions` is also used to enforce
    * in-transit guarantees for messages. That is, Pub/Sub will fail
@@ -130,6 +169,7 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
    * 
* * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enforceInTransit. */ @java.lang.Override @@ -138,6 +178,7 @@ public boolean getEnforceInTransit() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,10 +190,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedPersistenceRegions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedPersistenceRegions_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, allowedPersistenceRegions_.getRaw(i)); } if (enforceInTransit_ != false) { output.writeBool(2, enforceInTransit_); @@ -175,8 +216,7 @@ public int getSerializedSize() { size += 1 * getAllowedPersistenceRegionsList().size(); } if (enforceInTransit_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enforceInTransit_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enforceInTransit_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,17 +226,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.MessageStoragePolicy)) { return super.equals(obj); } - com.google.pubsub.v1.MessageStoragePolicy other = (com.google.pubsub.v1.MessageStoragePolicy) obj; + com.google.pubsub.v1.MessageStoragePolicy other = + (com.google.pubsub.v1.MessageStoragePolicy) obj; - if (!getAllowedPersistenceRegionsList() - .equals(other.getAllowedPersistenceRegionsList())) return false; - if (getEnforceInTransit() - != other.getEnforceInTransit()) return false; + if (!getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList())) + return false; + if (getEnforceInTransit() != other.getEnforceInTransit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -213,153 +253,155 @@ public int hashCode() { hash = (53 * hash) + getAllowedPersistenceRegionsList().hashCode(); } hash = (37 * hash) + ENFORCE_IN_TRANSIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnforceInTransit()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnforceInTransit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.MessageStoragePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.MessageStoragePolicy 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.MessageStoragePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.MessageStoragePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A policy constraining the storage of messages published to the topic.
    * 
* * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageStoragePolicy) com.google.pubsub.v1.MessageStoragePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.MessageStoragePolicy.class, com.google.pubsub.v1.MessageStoragePolicy.Builder.class); + com.google.pubsub.v1.MessageStoragePolicy.class, + com.google.pubsub.v1.MessageStoragePolicy.Builder.class); } // Construct using com.google.pubsub.v1.MessageStoragePolicy.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - allowedPersistenceRegions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); enforceInTransit_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } @java.lang.Override @@ -378,8 +420,11 @@ public com.google.pubsub.v1.MessageStoragePolicy build() { @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { - com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.MessageStoragePolicy result = + new com.google.pubsub.v1.MessageStoragePolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -399,38 +444,39 @@ private void buildPartial0(com.google.pubsub.v1.MessageStoragePolicy result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.MessageStoragePolicy) { - return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other); + return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy) other); } else { super.mergeFrom(other); return this; @@ -478,23 +524,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedPersistenceRegionsIsMutable(); - allowedPersistenceRegions_.add(s); - break; - } // case 10 - case 16: { - enforceInTransit_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedPersistenceRegionsIsMutable(); + allowedPersistenceRegions_.add(s); + break; + } // case 10 + case 16: + { + enforceInTransit_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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) { @@ -504,17 +553,22 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAllowedPersistenceRegionsIsMutable() { if (!allowedPersistenceRegions_.isModifiable()) { - allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); + allowedPersistenceRegions_ = + new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); } bitField0_ |= 0x00000001; } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -524,15 +578,19 @@ private void ensureAllowedPersistenceRegionsIsMutable() {
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedPersistenceRegions. */ - public com.google.protobuf.ProtocolStringList - getAllowedPersistenceRegionsList() { + public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { allowedPersistenceRegions_.makeImmutable(); return allowedPersistenceRegions_; } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -542,13 +600,18 @@ private void ensureAllowedPersistenceRegionsIsMutable() {
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -558,7 +621,10 @@ public int getAllowedPersistenceRegionsCount() {
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ @@ -566,6 +632,8 @@ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -575,15 +643,19 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. */ - public com.google.protobuf.ByteString - getAllowedPersistenceRegionsBytes(int index) { + public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) { return allowedPersistenceRegions_.getByteString(index); } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -593,14 +665,18 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The allowedPersistenceRegions to set. * @return This builder for chaining. */ - public Builder setAllowedPersistenceRegions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.set(index, value); bitField0_ |= 0x00000001; @@ -608,6 +684,8 @@ public Builder setAllowedPersistenceRegions( return this; } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -617,13 +695,17 @@ public Builder setAllowedPersistenceRegions(
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllowedPersistenceRegions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedPersistenceRegions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(value); bitField0_ |= 0x00000001; @@ -631,6 +713,8 @@ public Builder addAllowedPersistenceRegions( return this; } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -640,20 +724,23 @@ public Builder addAllowedPersistenceRegions(
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllAllowedPersistenceRegions( - java.lang.Iterable values) { + public Builder addAllAllowedPersistenceRegions(java.lang.Iterable values) { ensureAllowedPersistenceRegionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedPersistenceRegions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedPersistenceRegions_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -663,17 +750,22 @@ public Builder addAllAllowedPersistenceRegions(
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowedPersistenceRegions() { - allowedPersistenceRegions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Optional. A list of IDs of Google Cloud regions where messages that are
      * published to the topic may be persisted in storage. Messages published by
@@ -683,13 +775,17 @@ public Builder clearAllowedPersistenceRegions() {
      * valid configuration.
      * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllowedPersistenceRegionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(value); @@ -698,8 +794,10 @@ public Builder addAllowedPersistenceRegionsBytes( return this; } - private boolean enforceInTransit_ ; + private boolean enforceInTransit_; /** + * + * *
      * Optional. If true, `allowed_persistence_regions` is also used to enforce
      * in-transit guarantees for messages. That is, Pub/Sub will fail
@@ -709,6 +807,7 @@ public Builder addAllowedPersistenceRegionsBytes(
      * 
* * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enforceInTransit. */ @java.lang.Override @@ -716,6 +815,8 @@ public boolean getEnforceInTransit() { return enforceInTransit_; } /** + * + * *
      * Optional. If true, `allowed_persistence_regions` is also used to enforce
      * in-transit guarantees for messages. That is, Pub/Sub will fail
@@ -725,6 +826,7 @@ public boolean getEnforceInTransit() {
      * 
* * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enforceInTransit to set. * @return This builder for chaining. */ @@ -736,6 +838,8 @@ public Builder setEnforceInTransit(boolean value) { return this; } /** + * + * *
      * Optional. If true, `allowed_persistence_regions` is also used to enforce
      * in-transit guarantees for messages. That is, Pub/Sub will fail
@@ -745,6 +849,7 @@ public Builder setEnforceInTransit(boolean value) {
      * 
* * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnforceInTransit() { @@ -753,9 +858,9 @@ public Builder clearEnforceInTransit() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -765,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.MessageStoragePolicy) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageStoragePolicy) private static final com.google.pubsub.v1.MessageStoragePolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.MessageStoragePolicy(); } @@ -779,27 +884,27 @@ public static com.google.pubsub.v1.MessageStoragePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageStoragePolicy 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageStoragePolicy 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; @@ -814,6 +919,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 0860ce0fb..50763bc80 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface MessageStoragePolicyOrBuilder extends +public interface MessageStoragePolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.MessageStoragePolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A list of IDs of Google Cloud regions where messages that are
    * published to the topic may be persisted in storage. Messages published by
@@ -18,12 +36,16 @@ public interface MessageStoragePolicyOrBuilder extends
    * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedPersistenceRegions. */ - java.util.List - getAllowedPersistenceRegionsList(); + java.util.List getAllowedPersistenceRegionsList(); /** + * + * *
    * Optional. A list of IDs of Google Cloud regions where messages that are
    * published to the topic may be persisted in storage. Messages published by
@@ -33,11 +55,16 @@ public interface MessageStoragePolicyOrBuilder extends
    * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedPersistenceRegions. */ int getAllowedPersistenceRegionsCount(); /** + * + * *
    * Optional. A list of IDs of Google Cloud regions where messages that are
    * published to the topic may be persisted in storage. Messages published by
@@ -47,12 +74,17 @@ public interface MessageStoragePolicyOrBuilder extends
    * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ java.lang.String getAllowedPersistenceRegions(int index); /** + * + * *
    * Optional. A list of IDs of Google Cloud regions where messages that are
    * published to the topic may be persisted in storage. Messages published by
@@ -62,14 +94,18 @@ public interface MessageStoragePolicyOrBuilder extends
    * valid configuration.
    * 
* - * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. */ - com.google.protobuf.ByteString - getAllowedPersistenceRegionsBytes(int index); + com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index); /** + * + * *
    * Optional. If true, `allowed_persistence_regions` is also used to enforce
    * in-transit guarantees for messages. That is, Pub/Sub will fail
@@ -79,6 +115,7 @@ public interface MessageStoragePolicyOrBuilder extends
    * 
* * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enforceInTransit. */ boolean getEnforceInTransit(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 263ebd318..58c76b3cb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,57 +20,66 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the ModifyAckDeadline method.
  * 
* * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} */ -public final class ModifyAckDeadlineRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ModifyAckDeadlineRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyAckDeadlineRequest) ModifyAckDeadlineRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModifyAckDeadlineRequest.newBuilder() to construct. private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ModifyAckDeadlineRequest() { subscription_ = ""; - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModifyAckDeadlineRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyAckDeadlineRequest.class, com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); + com.google.pubsub.v1.ModifyAckDeadlineRequest.class, + com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -64,30 +88,32 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -96,38 +122,47 @@ public java.lang.String getSubscription() { } public static final int ACK_IDS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -135,22 +170,26 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 3; private int ackDeadlineSeconds_ = 0; /** + * + * *
    * Required. The new ack deadline with respect to the time this request was
    * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -164,6 +203,7 @@ public java.lang.String getAckIds(int index) {
    * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -172,6 +212,7 @@ public int getAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,8 +224,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -207,8 +247,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (ackDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, ackDeadlineSeconds_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, ackDeadlineSeconds_); } { int dataSize = 0; @@ -226,19 +265,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ModifyAckDeadlineRequest other = (com.google.pubsub.v1.ModifyAckDeadlineRequest) obj; + com.google.pubsub.v1.ModifyAckDeadlineRequest other = + (com.google.pubsub.v1.ModifyAckDeadlineRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; - if (!getAckIdsList() - .equals(other.getAckIdsList())) return false; - if (getAckDeadlineSeconds() - != other.getAckDeadlineSeconds()) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,147 +300,150 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ModifyAckDeadlineRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest 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.ModifyAckDeadlineRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ModifyAckDeadlineRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the ModifyAckDeadline method.
    * 
* * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyAckDeadlineRequest) com.google.pubsub.v1.ModifyAckDeadlineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyAckDeadlineRequest.class, com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); + com.google.pubsub.v1.ModifyAckDeadlineRequest.class, + com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); } // Construct using com.google.pubsub.v1.ModifyAckDeadlineRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; subscription_ = ""; - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); ackDeadlineSeconds_ = 0; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override @@ -422,8 +462,11 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { - com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ModifyAckDeadlineRequest result = + new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -446,38 +489,39 @@ private void buildPartial0(com.google.pubsub.v1.ModifyAckDeadlineRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ModifyAckDeadlineRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); + return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest) other); } else { super.mergeFrom(other); return this; @@ -530,28 +574,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: { - ackDeadlineSeconds_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAckIdsIsMutable(); - ackIds_.add(s); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + ackDeadlineSeconds_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAckIdsIsMutable(); + ackIds_.add(s); + break; + } // case 34 + 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) { @@ -561,23 +609,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -586,21 +639,24 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -608,30 +664,41 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -641,18 +708,24 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -662,6 +735,7 @@ public Builder setSubscriptionBytes( private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAckIdsIsMutable() { if (!ackIds_.isModifiable()) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); @@ -669,35 +743,43 @@ private void ensureAckIdsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -705,31 +787,37 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.set(index, value); bitField0_ |= 0x00000002; @@ -737,17 +825,21 @@ public Builder setAckIds( return this; } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.add(value); bitField0_ |= 0x00000002; @@ -755,50 +847,58 @@ public Builder addAckIds( return this; } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The ackIds to add. * @return This builder for chaining. */ - public Builder addAllAckIds( - java.lang.Iterable values) { + public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); @@ -807,8 +907,10 @@ public Builder addAckIdsBytes( return this; } - private int ackDeadlineSeconds_ ; + private int ackDeadlineSeconds_; /** + * + * *
      * Required. The new ack deadline with respect to the time this request was
      * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -822,6 +924,7 @@ public Builder addAckIdsBytes(
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -829,6 +932,8 @@ public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } /** + * + * *
      * Required. The new ack deadline with respect to the time this request was
      * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -842,6 +947,7 @@ public int getAckDeadlineSeconds() {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. */ @@ -853,6 +959,8 @@ public Builder setAckDeadlineSeconds(int value) { return this; } /** + * + * *
      * Required. The new ack deadline with respect to the time this request was
      * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -866,6 +974,7 @@ public Builder setAckDeadlineSeconds(int value) {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { @@ -874,9 +983,9 @@ public Builder clearAckDeadlineSeconds() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -886,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyAckDeadlineRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyAckDeadlineRequest) private static final com.google.pubsub.v1.ModifyAckDeadlineRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyAckDeadlineRequest(); } @@ -900,27 +1009,27 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyAckDeadlineRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyAckDeadlineRequest 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; @@ -935,6 +1044,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index a9527801e..3286db14c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,77 +1,114 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ModifyAckDeadlineRequestOrBuilder extends +public interface ModifyAckDeadlineRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyAckDeadlineRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the ackIds. */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of ackIds. */ int getAckIdsCount(); /** + * + * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** + * + * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - com.google.protobuf.ByteString - getAckIdsBytes(int index); + com.google.protobuf.ByteString getAckIdsBytes(int index); /** + * + * *
    * Required. The new ack deadline with respect to the time this request was
    * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -85,6 +122,7 @@ public interface ModifyAckDeadlineRequestOrBuilder extends
    * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index f51210efc..8cb3d6f3b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,56 +20,66 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the ModifyPushConfig method.
  * 
* * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} */ -public final class ModifyPushConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ModifyPushConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyPushConfigRequest) ModifyPushConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModifyPushConfigRequest.newBuilder() to construct. private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ModifyPushConfigRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModifyPushConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyPushConfigRequest.class, com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); + com.google.pubsub.v1.ModifyPushConfigRequest.class, + com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); } private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -97,6 +124,8 @@ public java.lang.String getSubscription() { public static final int PUSH_CONFIG_FIELD_NUMBER = 2; private com.google.pubsub.v1.PushConfig pushConfig_; /** + * + * *
    * Required. The push configuration for future deliveries.
    *
@@ -106,7 +135,9 @@ public java.lang.String getSubscription() {
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pushConfig field is set. */ @java.lang.Override @@ -114,6 +145,8 @@ public boolean hasPushConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The push configuration for future deliveries.
    *
@@ -123,7 +156,9 @@ public boolean hasPushConfig() {
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pushConfig. */ @java.lang.Override @@ -131,6 +166,8 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } /** + * + * *
    * Required. The push configuration for future deliveries.
    *
@@ -140,7 +177,8 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { @@ -148,6 +186,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +198,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -180,8 +218,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPushConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,19 +228,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ModifyPushConfigRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ModifyPushConfigRequest other = (com.google.pubsub.v1.ModifyPushConfigRequest) obj; + com.google.pubsub.v1.ModifyPushConfigRequest other = + (com.google.pubsub.v1.ModifyPushConfigRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; if (hasPushConfig() != other.hasPushConfig()) return false; if (hasPushConfig()) { - if (!getPushConfig() - .equals(other.getPushConfig())) return false; + if (!getPushConfig().equals(other.getPushConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -227,120 +263,127 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ModifyPushConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ModifyPushConfigRequest 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.ModifyPushConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ModifyPushConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the ModifyPushConfig method.
    * 
* * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyPushConfigRequest) com.google.pubsub.v1.ModifyPushConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyPushConfigRequest.class, com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); + com.google.pubsub.v1.ModifyPushConfigRequest.class, + com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); } // Construct using com.google.pubsub.v1.ModifyPushConfigRequest.newBuilder() @@ -348,17 +391,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPushConfigFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override @@ -394,8 +437,11 @@ public com.google.pubsub.v1.ModifyPushConfigRequest build() { @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { - com.google.pubsub.v1.ModifyPushConfigRequest result = new com.google.pubsub.v1.ModifyPushConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ModifyPushConfigRequest result = + new com.google.pubsub.v1.ModifyPushConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -407,9 +453,7 @@ private void buildPartial0(com.google.pubsub.v1.ModifyPushConfigRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.pushConfig_ = pushConfigBuilder_ == null - ? pushConfig_ - : pushConfigBuilder_.build(); + result.pushConfig_ = pushConfigBuilder_ == null ? pushConfig_ : pushConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -419,38 +463,39 @@ private void buildPartial0(com.google.pubsub.v1.ModifyPushConfigRequest result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ModifyPushConfigRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); + return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -493,24 +538,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getPushConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getPushConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -520,23 +566,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -545,21 +596,24 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -567,30 +621,41 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -600,18 +665,24 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -621,8 +692,13 @@ public Builder setSubscriptionBytes( private com.google.pubsub.v1.PushConfig pushConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; + com.google.pubsub.v1.PushConfig, + com.google.pubsub.v1.PushConfig.Builder, + com.google.pubsub.v1.PushConfigOrBuilder> + pushConfigBuilder_; /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -632,13 +708,17 @@ public Builder setSubscriptionBytes(
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -648,17 +728,23 @@ public boolean hasPushConfig() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pushConfig. */ public com.google.pubsub.v1.PushConfig getPushConfig() { if (pushConfigBuilder_ == null) { - return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; + return pushConfig_ == null + ? com.google.pubsub.v1.PushConfig.getDefaultInstance() + : pushConfig_; } else { return pushConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -668,7 +754,8 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -684,6 +771,8 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -693,10 +782,10 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPushConfig( - com.google.pubsub.v1.PushConfig.Builder builderForValue) { + public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) { if (pushConfigBuilder_ == null) { pushConfig_ = builderForValue.build(); } else { @@ -707,6 +796,8 @@ public Builder setPushConfig( return this; } /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -716,13 +807,14 @@ public Builder setPushConfig(
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - pushConfig_ != null && - pushConfig_ != com.google.pubsub.v1.PushConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && pushConfig_ != null + && pushConfig_ != com.google.pubsub.v1.PushConfig.getDefaultInstance()) { getPushConfigBuilder().mergeFrom(value); } else { pushConfig_ = value; @@ -737,6 +829,8 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -746,7 +840,8 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPushConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -759,6 +854,8 @@ public Builder clearPushConfig() { return this; } /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -768,7 +865,8 @@ public Builder clearPushConfig() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { bitField0_ |= 0x00000002; @@ -776,6 +874,8 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { return getPushConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -785,17 +885,21 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { if (pushConfigBuilder_ != null) { return pushConfigBuilder_.getMessageOrBuilder(); } else { - return pushConfig_ == null ? - com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; + return pushConfig_ == null + ? com.google.pubsub.v1.PushConfig.getDefaultInstance() + : pushConfig_; } } /** + * + * *
      * Required. The push configuration for future deliveries.
      *
@@ -805,24 +909,28 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> + com.google.pubsub.v1.PushConfig, + com.google.pubsub.v1.PushConfig.Builder, + com.google.pubsub.v1.PushConfigOrBuilder> getPushConfigFieldBuilder() { if (pushConfigBuilder_ == null) { - pushConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>( - getPushConfig(), - getParentForChildren(), - isClean()); + pushConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, + com.google.pubsub.v1.PushConfig.Builder, + com.google.pubsub.v1.PushConfigOrBuilder>( + getPushConfig(), getParentForChildren(), isClean()); pushConfig_ = null; } return pushConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -832,12 +940,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyPushConfigRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyPushConfigRequest) private static final com.google.pubsub.v1.ModifyPushConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyPushConfigRequest(); } @@ -846,27 +954,27 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyPushConfigRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyPushConfigRequest 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; @@ -881,6 +989,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 44989f240..15f80a19b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ModifyPushConfigRequestOrBuilder extends +public interface ModifyPushConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyPushConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * Required. The push configuration for future deliveries.
    *
@@ -40,11 +67,15 @@ public interface ModifyPushConfigRequestOrBuilder extends
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); /** + * + * *
    * Required. The push configuration for future deliveries.
    *
@@ -54,11 +85,15 @@ public interface ModifyPushConfigRequestOrBuilder extends
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); /** + * + * *
    * Required. The push configuration for future deliveries.
    *
@@ -68,7 +103,8 @@ public interface ModifyPushConfigRequestOrBuilder extends
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 549fcce77..0c0b2828a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the Publish method.
  * 
* * Protobuf type {@code google.pubsub.v1.PublishRequest} */ -public final class PublishRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishRequest) PublishRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishRequest.newBuilder() to construct. private PublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublishRequest() { topic_ = ""; messages_ = java.util.Collections.emptyList(); @@ -27,34 +45,41 @@ private PublishRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishRequest.class, com.google.pubsub.v1.PublishRequest.Builder.class); + com.google.pubsub.v1.PublishRequest.class, + com.google.pubsub.v1.PublishRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Required. The messages in the request will be published on this topic.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
    * Required. The messages in the request will be published on this topic.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -95,67 +122,88 @@ public java.lang.String getTopic() { } public static final int MESSAGES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List messages_; /** + * + * *
    * Required. The messages to publish.
    * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getMessagesList() { return messages_; } /** + * + * *
    * Required. The messages to publish.
    * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** + * + * *
    * Required. The messages to publish.
    * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * Required. The messages to publish.
    * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messages_.get(index); } /** + * + * *
    * Required. The messages to publish.
    * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { return messages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -188,8 +235,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messages_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -199,17 +245,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PublishRequest)) { return super.equals(obj); } com.google.pubsub.v1.PublishRequest other = (com.google.pubsub.v1.PublishRequest) obj; - if (!getTopic() - .equals(other.getTopic())) return false; - if (!getMessagesList() - .equals(other.getMessagesList())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,132 +276,135 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PublishRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PublishRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PublishRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.PublishRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishRequest 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.PublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PublishRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PublishRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PublishRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PublishRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PublishRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PublishRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PublishRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the Publish method.
    * 
* * Protobuf type {@code google.pubsub.v1.PublishRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PublishRequest) com.google.pubsub.v1.PublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishRequest.class, com.google.pubsub.v1.PublishRequest.Builder.class); + com.google.pubsub.v1.PublishRequest.class, + com.google.pubsub.v1.PublishRequest.Builder.class); } // Construct using com.google.pubsub.v1.PublishRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override @@ -397,7 +444,9 @@ public com.google.pubsub.v1.PublishRequest build() { public com.google.pubsub.v1.PublishRequest buildPartial() { com.google.pubsub.v1.PublishRequest result = new com.google.pubsub.v1.PublishRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -425,38 +474,39 @@ private void buildPartial0(com.google.pubsub.v1.PublishRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PublishRequest) { - return mergeFrom((com.google.pubsub.v1.PublishRequest)other); + return mergeFrom((com.google.pubsub.v1.PublishRequest) other); } else { super.mergeFrom(other); return this; @@ -488,9 +538,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000002); - messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessagesFieldBuilder() : null; + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessagesFieldBuilder() + : null; } else { messagesBuilder_.addAllMessages(other.messages_); } @@ -522,30 +573,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.pubsub.v1.PubsubMessage m = - input.readMessage( - com.google.pubsub.v1.PubsubMessage.parser(), - extensionRegistry); - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.add(m); - } else { - messagesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.pubsub.v1.PubsubMessage m = + input.readMessage( + com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 18 + 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) { @@ -555,23 +608,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -580,21 +638,24 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -602,30 +663,41 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -635,18 +707,24 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -655,23 +733,31 @@ public Builder setTopicBytes( } private java.util.List messages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messagesBuilder_; + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder> + messagesBuilder_; /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getMessagesList() { if (messagesBuilder_ == null) { @@ -681,11 +767,15 @@ public java.util.List getMessagesList() { } } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getMessagesCount() { if (messagesBuilder_ == null) { @@ -695,11 +785,15 @@ public int getMessagesCount() { } } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { if (messagesBuilder_ == null) { @@ -709,14 +803,17 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { } } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMessages( - int index, com.google.pubsub.v1.PubsubMessage value) { + public Builder setMessages(int index, com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -730,11 +827,15 @@ public Builder setMessages( return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMessages( int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { @@ -748,11 +849,15 @@ public Builder setMessages( return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { @@ -768,14 +873,17 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addMessages( - int index, com.google.pubsub.v1.PubsubMessage value) { + public Builder addMessages(int index, com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -789,14 +897,17 @@ public Builder addMessages( return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addMessages( - com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(builderForValue.build()); @@ -807,11 +918,15 @@ public Builder addMessages( return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMessages( int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { @@ -825,18 +940,21 @@ public Builder addMessages( return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); @@ -844,11 +962,15 @@ public Builder addAllMessages( return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMessages() { if (messagesBuilder_ == null) { @@ -861,11 +983,15 @@ public Builder clearMessages() { return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeMessages(int index) { if (messagesBuilder_ == null) { @@ -878,39 +1004,50 @@ public Builder removeMessages(int index) { return this; } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder( - int index) { + public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder(int index) { return getMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { if (messagesBuilder_ == null) { - return messages_.get(index); } else { + return messages_.get(index); + } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -918,56 +1055,69 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( } } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder().addBuilder( - com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); + return getMessagesFieldBuilder() + .addBuilder(com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder( - int index) { - return getMessagesFieldBuilder().addBuilder( - index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); + public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) { + return getMessagesFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } /** + * + * *
      * Required. The messages to publish.
      * 
* - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getMessagesBuilderList() { + public java.util.List getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( - messages_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder>( + messages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1127,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishRequest) private static final com.google.pubsub.v1.PublishRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PublishRequest(); } @@ -991,27 +1141,27 @@ public static com.google.pubsub.v1.PublishRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishRequest 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; @@ -1026,6 +1176,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java new file mode 100644 index 000000000..46faa9c93 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface PublishRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The messages in the request will be published on this topic.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
+   * Required. The messages in the request will be published on this topic.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
+   * Required. The messages to publish.
+   * 
+ * + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getMessagesList(); + /** + * + * + *
+   * Required. The messages to publish.
+   * 
+ * + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.pubsub.v1.PubsubMessage getMessages(int index); + /** + * + * + *
+   * Required. The messages to publish.
+   * 
+ * + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getMessagesCount(); + /** + * + * + *
+   * Required. The messages to publish.
+   * 
+ * + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getMessagesOrBuilderList(); + /** + * + * + *
+   * Required. The messages to publish.
+   * 
+ * + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 49b4f50e2..2d8fc0182 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,51 +20,57 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `Publish` method.
  * 
* * Protobuf type {@code google.pubsub.v1.PublishResponse} */ -public final class PublishResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishResponse) PublishResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishResponse.newBuilder() to construct. private PublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublishResponse() { - messageIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishResponse.class, com.google.pubsub.v1.PublishResponse.Builder.class); + com.google.pubsub.v1.PublishResponse.class, + com.google.pubsub.v1.PublishResponse.Builder.class); } public static final int MESSAGE_IDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. The server-assigned ID of each published message, in the same
    * order as the messages in the request. IDs are guaranteed to be unique
@@ -57,13 +78,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the messageIds. */ - public com.google.protobuf.ProtocolStringList - getMessageIdsList() { + public com.google.protobuf.ProtocolStringList getMessageIdsList() { return messageIds_; } /** + * + * *
    * Optional. The server-assigned ID of each published message, in the same
    * order as the messages in the request. IDs are guaranteed to be unique
@@ -71,12 +94,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); } /** + * + * *
    * Optional. The server-assigned ID of each published message, in the same
    * order as the messages in the request. IDs are guaranteed to be unique
@@ -84,6 +110,7 @@ public int getMessageIdsCount() {
    * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The messageIds at the given index. */ @@ -91,6 +118,8 @@ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } /** + * + * *
    * Optional. The server-assigned ID of each published message, in the same
    * order as the messages in the request. IDs are guaranteed to be unique
@@ -98,15 +127,16 @@ public java.lang.String getMessageIds(int index) {
    * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. */ - public com.google.protobuf.ByteString - getMessageIdsBytes(int index) { + public com.google.protobuf.ByteString getMessageIdsBytes(int index) { return messageIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < messageIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIds_.getRaw(i)); } @@ -148,15 +177,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PublishResponse)) { return super.equals(obj); } com.google.pubsub.v1.PublishResponse other = (com.google.pubsub.v1.PublishResponse) obj; - if (!getMessageIdsList() - .equals(other.getMessageIdsList())) return false; + if (!getMessageIdsList().equals(other.getMessageIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,145 +205,147 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PublishResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PublishResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PublishResponse parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.PublishResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishResponse 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.PublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PublishResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PublishResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PublishResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PublishResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PublishResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PublishResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PublishResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `Publish` method.
    * 
* * Protobuf type {@code google.pubsub.v1.PublishResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PublishResponse) com.google.pubsub.v1.PublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishResponse.class, com.google.pubsub.v1.PublishResponse.Builder.class); + com.google.pubsub.v1.PublishResponse.class, + com.google.pubsub.v1.PublishResponse.Builder.class); } // Construct using com.google.pubsub.v1.PublishResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - messageIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override @@ -335,7 +365,9 @@ public com.google.pubsub.v1.PublishResponse build() { @java.lang.Override public com.google.pubsub.v1.PublishResponse buildPartial() { com.google.pubsub.v1.PublishResponse result = new com.google.pubsub.v1.PublishResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -352,38 +384,39 @@ private void buildPartial0(com.google.pubsub.v1.PublishResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PublishResponse) { - return mergeFrom((com.google.pubsub.v1.PublishResponse)other); + return mergeFrom((com.google.pubsub.v1.PublishResponse) other); } else { super.mergeFrom(other); return this; @@ -428,18 +461,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureMessageIdsIsMutable(); - messageIds_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMessageIdsIsMutable(); + messageIds_.add(s); + break; + } // case 10 + 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) { @@ -449,10 +484,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMessageIdsIsMutable() { if (!messageIds_.isModifiable()) { messageIds_ = new com.google.protobuf.LazyStringArrayList(messageIds_); @@ -460,6 +497,8 @@ private void ensureMessageIdsIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -467,14 +506,16 @@ private void ensureMessageIdsIsMutable() {
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the messageIds. */ - public com.google.protobuf.ProtocolStringList - getMessageIdsList() { + public com.google.protobuf.ProtocolStringList getMessageIdsList() { messageIds_.makeImmutable(); return messageIds_; } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -482,12 +523,15 @@ private void ensureMessageIdsIsMutable() {
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -495,6 +539,7 @@ public int getMessageIdsCount() {
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The messageIds at the given index. */ @@ -502,6 +547,8 @@ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -509,14 +556,16 @@ public java.lang.String getMessageIds(int index) {
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. */ - public com.google.protobuf.ByteString - getMessageIdsBytes(int index) { + public com.google.protobuf.ByteString getMessageIdsBytes(int index) { return messageIds_.getByteString(index); } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -524,13 +573,15 @@ public java.lang.String getMessageIds(int index) {
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The messageIds to set. * @return This builder for chaining. */ - public Builder setMessageIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMessageIdsIsMutable(); messageIds_.set(index, value); bitField0_ |= 0x00000001; @@ -538,6 +589,8 @@ public Builder setMessageIds( return this; } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -545,12 +598,14 @@ public Builder setMessageIds(
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The messageIds to add. * @return This builder for chaining. */ - public Builder addMessageIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMessageIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMessageIdsIsMutable(); messageIds_.add(value); bitField0_ |= 0x00000001; @@ -558,6 +613,8 @@ public Builder addMessageIds( return this; } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -565,19 +622,20 @@ public Builder addMessageIds(
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The messageIds to add. * @return This builder for chaining. */ - public Builder addAllMessageIds( - java.lang.Iterable values) { + public Builder addAllMessageIds(java.lang.Iterable values) { ensureMessageIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, messageIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageIds_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -585,16 +643,19 @@ public Builder addAllMessageIds(
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMessageIds() { - messageIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Optional. The server-assigned ID of each published message, in the same
      * order as the messages in the request. IDs are guaranteed to be unique
@@ -602,12 +663,14 @@ public Builder clearMessageIds() {
      * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the messageIds to add. * @return This builder for chaining. */ - public Builder addMessageIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMessageIdsIsMutable(); messageIds_.add(value); @@ -615,9 +678,9 @@ public Builder addMessageIdsBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,12 +690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishResponse) private static final com.google.pubsub.v1.PublishResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PublishResponse(); } @@ -641,27 +704,27 @@ public static com.google.pubsub.v1.PublishResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishResponse 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; @@ -676,6 +739,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index ca64ed58e..1d7365285 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface PublishResponseOrBuilder extends +public interface PublishResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The server-assigned ID of each published message, in the same
    * order as the messages in the request. IDs are guaranteed to be unique
@@ -16,11 +34,13 @@ public interface PublishResponseOrBuilder extends
    * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the messageIds. */ - java.util.List - getMessageIdsList(); + java.util.List getMessageIdsList(); /** + * + * *
    * Optional. The server-assigned ID of each published message, in the same
    * order as the messages in the request. IDs are guaranteed to be unique
@@ -28,10 +48,13 @@ public interface PublishResponseOrBuilder extends
    * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of messageIds. */ int getMessageIdsCount(); /** + * + * *
    * Optional. The server-assigned ID of each published message, in the same
    * order as the messages in the request. IDs are guaranteed to be unique
@@ -39,11 +62,14 @@ public interface PublishResponseOrBuilder extends
    * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The messageIds at the given index. */ java.lang.String getMessageIds(int index); /** + * + * *
    * Optional. The server-assigned ID of each published message, in the same
    * order as the messages in the request. IDs are guaranteed to be unique
@@ -51,9 +77,9 @@ public interface PublishResponseOrBuilder extends
    * 
* * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. */ - com.google.protobuf.ByteString - getMessageIdsBytes(int index); + com.google.protobuf.ByteString getMessageIdsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index eae1989e3..493f01cce 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,6 +20,8 @@ package com.google.pubsub.v1; /** + * + * *
  * A message that is published by publishers and consumed by subscribers. The
  * message must contain either a non-empty data field or at least one attribute.
@@ -18,15 +35,16 @@
  *
  * Protobuf type {@code google.pubsub.v1.PubsubMessage}
  */
-public final class PubsubMessage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PubsubMessage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.PubsubMessage)
     PubsubMessageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PubsubMessage.newBuilder() to construct.
   private PubsubMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PubsubMessage() {
     data_ = com.google.protobuf.ByteString.EMPTY;
     messageId_ = "";
@@ -35,14 +53,13 @@ private PubsubMessage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PubsubMessage();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -53,28 +70,33 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
       case 2:
         return internalGetAttributes();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.PubsubMessage.class, com.google.pubsub.v1.PubsubMessage.Builder.class);
+            com.google.pubsub.v1.PubsubMessage.class,
+            com.google.pubsub.v1.PubsubMessage.Builder.class);
   }
 
   private int bitField0_;
   public static final int DATA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
   /**
+   *
+   *
    * 
    * Optional. The message data field. If this field is empty, the message must
    * contain at least one attribute.
    * 
* * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The data. */ @java.lang.Override @@ -83,102 +105,113 @@ public com.google.protobuf.ByteString getData() { } public static final int ATTRIBUTES_FIELD_NUMBER = 2; + private static final class AttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { + private com.google.protobuf.MapField attributes_; + + private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } + public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAttributes().getMap().containsKey(key); } - /** - * Use {@link #getAttributesMap()} instead. - */ + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAttributesOrDefault( + public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAttributes().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAttributes().getMap(); + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -186,9 +219,12 @@ public java.lang.String getAttributesOrThrow( } public static final int MESSAGE_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object messageId_ = ""; /** + * + * *
    * ID of this message, assigned by the server when the message is published.
    * Guaranteed to be unique within the topic. This value may be read by a
@@ -197,6 +233,7 @@ public java.lang.String getAttributesOrThrow(
    * 
* * string message_id = 3; + * * @return The messageId. */ @java.lang.Override @@ -205,14 +242,15 @@ public java.lang.String getMessageId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageId_ = s; return s; } } /** + * + * *
    * ID of this message, assigned by the server when the message is published.
    * Guaranteed to be unique within the topic. This value may be read by a
@@ -221,16 +259,15 @@ public java.lang.String getMessageId() {
    * 
* * string message_id = 3; + * * @return The bytes for messageId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageIdBytes() { + public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); messageId_ = b; return b; } else { @@ -241,6 +278,8 @@ public java.lang.String getMessageId() { public static final int PUBLISH_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp publishTime_; /** + * + * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -248,6 +287,7 @@ public java.lang.String getMessageId() {
    * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -255,6 +295,8 @@ public boolean hasPublishTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -262,6 +304,7 @@ public boolean hasPublishTime() {
    * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return The publishTime. */ @java.lang.Override @@ -269,6 +312,8 @@ public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } /** + * + * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -283,9 +328,12 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
   }
 
   public static final int ORDERING_KEY_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object orderingKey_ = "";
   /**
+   *
+   *
    * 
    * Optional. If non-empty, identifies related messages for which publish order
    * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -298,6 +346,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderingKey. */ @java.lang.Override @@ -306,14 +355,15 @@ public java.lang.String getOrderingKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderingKey_ = s; return s; } } /** + * + * *
    * Optional. If non-empty, identifies related messages for which publish order
    * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -326,16 +376,15 @@ public java.lang.String getOrderingKey() {
    * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderingKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderingKeyBytes() { + public com.google.protobuf.ByteString getOrderingKeyBytes() { java.lang.Object ref = orderingKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderingKey_ = b; return b; } else { @@ -344,6 +393,7 @@ public java.lang.String getOrderingKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,17 +405,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!data_.isEmpty()) { output.writeBytes(1, data_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAttributes(), - AttributesDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_); } @@ -385,25 +430,23 @@ public int getSerializedSize() { size = 0; if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, data_); - } - for (java.util.Map.Entry entry - : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry - attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attributes__); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, data_); + } + for (java.util.Map.Entry entry : + internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry attributes__ = + AttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPublishTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderingKey_); @@ -416,26 +459,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PubsubMessage)) { return super.equals(obj); } com.google.pubsub.v1.PubsubMessage other = (com.google.pubsub.v1.PubsubMessage) obj; - if (!getData() - .equals(other.getData())) return false; - if (!internalGetAttributes().equals( - other.internalGetAttributes())) return false; - if (!getMessageId() - .equals(other.getMessageId())) return false; + if (!getData().equals(other.getData())) return false; + if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; + if (!getMessageId().equals(other.getMessageId())) return false; if (hasPublishTime() != other.hasPublishTime()) return false; if (hasPublishTime()) { - if (!getPublishTime() - .equals(other.getPublishTime())) return false; + if (!getPublishTime().equals(other.getPublishTime())) return false; } - if (!getOrderingKey() - .equals(other.getOrderingKey())) return false; + if (!getOrderingKey().equals(other.getOrderingKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -466,99 +504,103 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PubsubMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PubsubMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PubsubMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PubsubMessage parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.PubsubMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PubsubMessage 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.PubsubMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PubsubMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PubsubMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PubsubMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PubsubMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PubsubMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PubsubMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PubsubMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PubsubMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A message that is published by publishers and consumed by subscribers. The
    * message must contain either a non-empty data field or at least one attribute.
@@ -572,13 +614,13 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.PubsubMessage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PubsubMessage)
       com.google.pubsub.v1.PubsubMessageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -588,10 +630,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
         case 2:
           return internalGetAttributes();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
     protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
         int number) {
@@ -599,16 +641,18 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
         case 2:
           return internalGetMutableAttributes();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.PubsubMessage.class, com.google.pubsub.v1.PubsubMessage.Builder.class);
+              com.google.pubsub.v1.PubsubMessage.class,
+              com.google.pubsub.v1.PubsubMessage.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.PubsubMessage.newBuilder()
@@ -616,17 +660,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPublishTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -644,9 +688,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
     }
 
     @java.lang.Override
@@ -666,7 +710,9 @@ public com.google.pubsub.v1.PubsubMessage build() {
     @java.lang.Override
     public com.google.pubsub.v1.PubsubMessage buildPartial() {
       com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -685,9 +731,8 @@ private void buildPartial0(com.google.pubsub.v1.PubsubMessage result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.publishTime_ = publishTimeBuilder_ == null
-            ? publishTime_
-            : publishTimeBuilder_.build();
+        result.publishTime_ =
+            publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
@@ -700,38 +745,39 @@ private void buildPartial0(com.google.pubsub.v1.PubsubMessage result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.PubsubMessage) {
-        return mergeFrom((com.google.pubsub.v1.PubsubMessage)other);
+        return mergeFrom((com.google.pubsub.v1.PubsubMessage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -743,8 +789,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) {
       if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
         setData(other.getData());
       }
-      internalGetMutableAttributes().mergeFrom(
-          other.internalGetAttributes());
+      internalGetMutableAttributes().mergeFrom(other.internalGetAttributes());
       bitField0_ |= 0x00000002;
       if (!other.getMessageId().isEmpty()) {
         messageId_ = other.messageId_;
@@ -785,43 +830,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              data_ = input.readBytes();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.protobuf.MapEntry
-              attributes__ = input.readMessage(
-                  AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAttributes().getMutableMap().put(
-                  attributes__.getKey(), attributes__.getValue());
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              messageId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getPublishTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              orderingKey_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                data_ = input.readBytes();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.protobuf.MapEntry attributes__ =
+                    input.readMessage(
+                        AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAttributes()
+                    .getMutableMap()
+                    .put(attributes__.getKey(), attributes__.getValue());
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                messageId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                orderingKey_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            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) {
@@ -831,16 +882,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * Optional. The message data field. If this field is empty, the message must
      * contain at least one attribute.
      * 
* * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The data. */ @java.lang.Override @@ -848,29 +903,37 @@ public com.google.protobuf.ByteString getData() { return data_; } /** + * + * *
      * Optional. The message data field. If this field is empty, the message must
      * contain at least one attribute.
      * 
* * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } data_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The message data field. If this field is empty, the message must
      * contain at least one attribute.
      * 
* * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearData() { @@ -880,8 +943,8 @@ public Builder clearData() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField attributes_; + private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { @@ -890,11 +953,12 @@ public Builder clearData() { } return attributes_; } + private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); + attributes_ = + com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); @@ -903,154 +967,173 @@ public Builder clearData() { onChanged(); return attributes_; } + public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
      * Optional. Attributes for this message. If this field is empty, the message
      * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAttributes().getMap().containsKey(key); } - /** - * Use {@link #getAttributesMap()} instead. - */ + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** + * + * *
      * Optional. Attributes for this message. If this field is empty, the message
      * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** + * + * *
      * Optional. Attributes for this message. If this field is empty, the message
      * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAttributesOrDefault( + public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAttributes().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Attributes for this message. If this field is empty, the message
      * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAttributes().getMap(); + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableAttributes().getMutableMap() - .clear(); + internalGetMutableAttributes().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Attributes for this message. If this field is empty, the message
      * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAttributes().getMutableMap() - .remove(key); + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAttributes().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAttributes() { + public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } /** + * + * *
      * Optional. Attributes for this message. If this field is empty, the message
      * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributes().getMutableMap() - .put(key, value); + public Builder putAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAttributes().getMutableMap().put(key, value); bitField0_ |= 0x00000002; return this; } /** + * + * *
      * Optional. Attributes for this message. If this field is empty, the message
      * must contain non-empty data. This can be used to filter messages on the
      * subscription.
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAttributes( - java.util.Map values) { - internalGetMutableAttributes().getMutableMap() - .putAll(values); + public Builder putAllAttributes(java.util.Map values) { + internalGetMutableAttributes().getMutableMap().putAll(values); bitField0_ |= 0x00000002; return this; } private java.lang.Object messageId_ = ""; /** + * + * *
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1059,13 +1142,13 @@ public Builder putAllAttributes(
      * 
* * string message_id = 3; + * * @return The messageId. */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageId_ = s; return s; @@ -1074,6 +1157,8 @@ public java.lang.String getMessageId() { } } /** + * + * *
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1082,15 +1167,14 @@ public java.lang.String getMessageId() {
      * 
* * string message_id = 3; + * * @return The bytes for messageId. */ - public com.google.protobuf.ByteString - getMessageIdBytes() { + public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); messageId_ = b; return b; } else { @@ -1098,6 +1182,8 @@ public java.lang.String getMessageId() { } } /** + * + * *
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1106,18 +1192,22 @@ public java.lang.String getMessageId() {
      * 
* * string message_id = 3; + * * @param value The messageId to set. * @return This builder for chaining. */ - public Builder setMessageId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } messageId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1126,6 +1216,7 @@ public Builder setMessageId(
      * 
* * string message_id = 3; + * * @return This builder for chaining. */ public Builder clearMessageId() { @@ -1135,6 +1226,8 @@ public Builder clearMessageId() { return this; } /** + * + * *
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1143,12 +1236,14 @@ public Builder clearMessageId() {
      * 
* * string message_id = 3; + * * @param value The bytes for messageId to set. * @return This builder for chaining. */ - public Builder setMessageIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); messageId_ = value; bitField0_ |= 0x00000004; @@ -1158,8 +1253,13 @@ public Builder setMessageIdBytes( private com.google.protobuf.Timestamp publishTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> publishTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + publishTimeBuilder_; /** + * + * *
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1167,12 +1267,15 @@ public Builder setMessageIdBytes(
      * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1180,16 +1283,21 @@ public boolean hasPublishTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return The publishTime. */ public com.google.protobuf.Timestamp getPublishTime() { if (publishTimeBuilder_ == null) { - return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; + return publishTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : publishTime_; } else { return publishTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1212,6 +1320,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1220,8 +1330,7 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp publish_time = 4;
      */
-    public Builder setPublishTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (publishTimeBuilder_ == null) {
         publishTime_ = builderForValue.build();
       } else {
@@ -1232,6 +1341,8 @@ public Builder setPublishTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1242,9 +1353,9 @@ public Builder setPublishTime(
      */
     public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          publishTime_ != null &&
-          publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && publishTime_ != null
+            && publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getPublishTimeBuilder().mergeFrom(value);
         } else {
           publishTime_ = value;
@@ -1259,6 +1370,8 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1278,6 +1391,8 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1292,6 +1407,8 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
       return getPublishTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1304,11 +1421,14 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
       if (publishTimeBuilder_ != null) {
         return publishTimeBuilder_.getMessageOrBuilder();
       } else {
-        return publishTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_;
+        return publishTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : publishTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1318,14 +1438,17 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp publish_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getPublishTimeFieldBuilder() {
       if (publishTimeBuilder_ == null) {
-        publishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getPublishTime(),
-                getParentForChildren(),
-                isClean());
+        publishTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getPublishTime(), getParentForChildren(), isClean());
         publishTime_ = null;
       }
       return publishTimeBuilder_;
@@ -1333,6 +1456,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
 
     private java.lang.Object orderingKey_ = "";
     /**
+     *
+     *
      * 
      * Optional. If non-empty, identifies related messages for which publish order
      * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -1345,13 +1470,13 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderingKey. */ public java.lang.String getOrderingKey() { java.lang.Object ref = orderingKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderingKey_ = s; return s; @@ -1360,6 +1485,8 @@ public java.lang.String getOrderingKey() { } } /** + * + * *
      * Optional. If non-empty, identifies related messages for which publish order
      * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -1372,15 +1499,14 @@ public java.lang.String getOrderingKey() {
      * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderingKey. */ - public com.google.protobuf.ByteString - getOrderingKeyBytes() { + public com.google.protobuf.ByteString getOrderingKeyBytes() { java.lang.Object ref = orderingKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderingKey_ = b; return b; } else { @@ -1388,6 +1514,8 @@ public java.lang.String getOrderingKey() { } } /** + * + * *
      * Optional. If non-empty, identifies related messages for which publish order
      * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -1400,18 +1528,22 @@ public java.lang.String getOrderingKey() {
      * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The orderingKey to set. * @return This builder for chaining. */ - public Builder setOrderingKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderingKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderingKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. If non-empty, identifies related messages for which publish order
      * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -1424,6 +1556,7 @@ public Builder setOrderingKey(
      * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderingKey() { @@ -1433,6 +1566,8 @@ public Builder clearOrderingKey() { return this; } /** + * + * *
      * Optional. If non-empty, identifies related messages for which publish order
      * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -1445,21 +1580,23 @@ public Builder clearOrderingKey() {
      * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for orderingKey to set. * @return This builder for chaining. */ - public Builder setOrderingKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderingKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1469,12 +1606,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PubsubMessage) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage) private static final com.google.pubsub.v1.PubsubMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PubsubMessage(); } @@ -1483,27 +1620,27 @@ public static com.google.pubsub.v1.PubsubMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubsubMessage 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubsubMessage 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; @@ -1518,6 +1655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 5720c82d3..1509232e7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,89 +1,119 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface PubsubMessageOrBuilder extends +public interface PubsubMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PubsubMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The message data field. If this field is empty, the message must
    * contain at least one attribute.
    * 
* * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The data. */ com.google.protobuf.ByteString getData(); /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAttributesCount(); /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAttributes( - java.lang.String key); - /** - * Use {@link #getAttributesMap()} instead. + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAttributes(); + java.util.Map getAttributes(); /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getAttributesMap(); + java.util.Map getAttributesMap(); /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getAttributesOrDefault( + java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Attributes for this message. If this field is empty, the message
    * must contain non-empty data. This can be used to filter messages on the
    * subscription.
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getAttributesOrThrow( - java.lang.String key); + java.lang.String getAttributesOrThrow(java.lang.String key); /** + * + * *
    * ID of this message, assigned by the server when the message is published.
    * Guaranteed to be unique within the topic. This value may be read by a
@@ -92,10 +122,13 @@ java.lang.String getAttributesOrThrow(
    * 
* * string message_id = 3; + * * @return The messageId. */ java.lang.String getMessageId(); /** + * + * *
    * ID of this message, assigned by the server when the message is published.
    * Guaranteed to be unique within the topic. This value may be read by a
@@ -104,12 +137,14 @@ java.lang.String getAttributesOrThrow(
    * 
* * string message_id = 3; + * * @return The bytes for messageId. */ - com.google.protobuf.ByteString - getMessageIdBytes(); + com.google.protobuf.ByteString getMessageIdBytes(); /** + * + * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -117,10 +152,13 @@ java.lang.String getAttributesOrThrow(
    * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** + * + * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -128,10 +166,13 @@ java.lang.String getAttributesOrThrow(
    * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** + * + * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -143,6 +184,8 @@ java.lang.String getAttributesOrThrow(
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. If non-empty, identifies related messages for which publish order
    * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -155,10 +198,13 @@ java.lang.String getAttributesOrThrow(
    * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderingKey. */ java.lang.String getOrderingKey(); /** + * + * *
    * Optional. If non-empty, identifies related messages for which publish order
    * should be respected. If a `Subscription` has `enable_message_ordering` set
@@ -171,8 +217,8 @@ java.lang.String getAttributesOrThrow(
    * 
* * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderingKey. */ - com.google.protobuf.ByteString - getOrderingKeyBytes(); + com.google.protobuf.ByteString getOrderingKeyBytes(); } 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 new file mode 100644 index 000000000..dd5b97cec --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -0,0 +1,1236 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public final class PubsubProto { + private PubsubProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SchemaSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Topic_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PubsubMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PublishRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PublishResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_RetryPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_BigQueryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PullRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PullResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Snapshot_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SeekRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SeekResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\035google/pubsub/v1/pubsub.proto\022\020google." + + "pubsub.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\036google/protobuf/duration.proto\032\033go" + + "ogle/protobuf/empty.proto\032 google/protob" + + "uf/field_mask.proto\032\037google/protobuf/tim" + + "estamp.proto\032\035google/pubsub/v1/schema.pr" + + "oto\"c\n\024MessageStoragePolicy\022)\n\033allowed_p" + + "ersistence_regions\030\001 \003(\tB\004\342A\001\001\022 \n\022enforc" + + "e_in_transit\030\002 \001(\010B\004\342A\001\001\"\274\001\n\016SchemaSetti" + + "ngs\0225\n\006schema\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.goo" + + "gleapis.com/Schema\0222\n\010encoding\030\002 \001(\0162\032.g" + + "oogle.pubsub.v1.EncodingB\004\342A\001\001\022\037\n\021first_" + + "revision_id\030\003 \001(\tB\004\342A\001\001\022\036\n\020last_revision" + + "_id\030\004 \001(\tB\004\342A\001\001\"\360\003\n\033IngestionDataSourceS" + + "ettings\022U\n\013aws_kinesis\030\001 \001(\01328.google.pu" + + "bsub.v1.IngestionDataSourceSettings.AwsK" + + "inesisB\004\342A\001\001H\000\032\357\002\n\nAwsKinesis\022S\n\005state\030\001" + + " \001(\0162>.google.pubsub.v1.IngestionDataSou" + + "rceSettings.AwsKinesis.StateB\004\342A\001\003\022\030\n\nst" + + "ream_arn\030\002 \001(\tB\004\342A\001\002\022\032\n\014consumer_arn\030\003 \001" + + "(\tB\004\342A\001\002\022\032\n\014aws_role_arn\030\004 \001(\tB\004\342A\001\002\022!\n\023" + + "gcp_service_account\030\005 \001(\tB\004\342A\001\002\"\226\001\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031" + + "KINESIS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" + + "ERMISSION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004" + + "\022\026\n\022CONSUMER_NOT_FOUND\020\005B\010\n\006source\"\303\005\n\005T" + + "opic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0229\n\006labels\030\002 \003(\013" + + "2#.google.pubsub.v1.Topic.LabelsEntryB\004\342" + + "A\001\001\022L\n\026message_storage_policy\030\003 \001(\0132&.go" + + "ogle.pubsub.v1.MessageStoragePolicyB\004\342A\001" + + "\001\022\032\n\014kms_key_name\030\005 \001(\tB\004\342A\001\001\022?\n\017schema_" + + "settings\030\006 \001(\0132 .google.pubsub.v1.Schema" + + "SettingsB\004\342A\001\001\022\033\n\rsatisfies_pzs\030\007 \001(\010B\004\342" + + "A\001\001\022C\n\032message_retention_duration\030\010 \001(\0132" + + "\031.google.protobuf.DurationB\004\342A\001\001\0222\n\005stat" + + "e\030\t \001(\0162\035.google.pubsub.v1.Topic.StateB\004" + + "\342A\001\003\022[\n\036ingestion_data_source_settings\030\n" + + " \001(\0132-.google.pubsub.v1.IngestionDataSou" + + "rceSettingsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTIO" + + "N_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.googleap" + + "is.com/Topic\022!projects/{project}/topics/" + + "{topic}\022\017_deleted-topic_\"\203\002\n\rPubsubMessa" + + "ge\022\022\n\004data\030\001 \001(\014B\004\342A\001\001\022I\n\nattributes\030\002 \003" + + "(\0132/.google.pubsub.v1.PubsubMessage.Attr" + + "ibutesEntryB\004\342A\001\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\032\n\014ordering_key\030\005 \001(\tB\004\342A\001\001\0321\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005topic\030\001 \001(\t" + + "B$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"y" + + "\n\022UpdateTopicRequest\022,\n\005topic\030\001 \001(\0132\027.go" + + "ogle.pubsub.v1.TopicB\004\342A\001\002\0225\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001" + + "\002\"~\n\016PublishRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002" + + "\372A\035\n\033pubsub.googleapis.com/Topic\0227\n\010mess" + + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" + + "ageB\004\342A\001\002\",\n\017PublishResponse\022\031\n\013message_" + + "ids\030\001 \003(\tB\004\342A\001\001\"\215\001\n\021ListTopicsRequest\022E\n" + + "\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022\027\n\tpage_siz" + + "e\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"" + + "b\n\022ListTopicsResponse\022-\n\006topics\030\001 \003(\0132\027." + + "google.pubsub.v1.TopicB\004\342A\001\001\022\035\n\017next_pag" + + "e_token\030\002 \001(\tB\004\342A\001\001\"\207\001\n\035ListTopicSubscri" + + "ptionsRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\022\027\n\tpage_size\030" + + "\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\203\001" + + "\n\036ListTopicSubscriptionsResponse\022B\n\rsubs" + + "criptions\030\001 \003(\tB+\342A\001\001\372A$\n\"pubsub.googlea" + + "pis.com/Subscription\022\035\n\017next_page_token\030" + + "\002 \001(\tB\004\342A\001\001\"\203\001\n\031ListTopicSnapshotsReques" + + "t\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.google" + + "apis.com/Topic\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"T\n\032ListTopicSn" + + "apshotsResponse\022\027\n\tsnapshots\030\001 \003(\tB\004\342A\001\001" + + "\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"I\n\022Delet" + + "eTopicRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\"^\n\031DetachSubs" + + "criptionRequest\022A\n\014subscription\030\001 \001(\tB+\342" + + "A\001\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\"\034\n\032DetachSubscriptionResponse\"\201\t\n\014Sub" + + "scription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\005topic\030\002" + + " \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Top" + + "ic\0227\n\013push_config\030\004 \001(\0132\034.google.pubsub." + + "v1.PushConfigB\004\342A\001\001\022?\n\017bigquery_config\030\022" + + " \001(\0132 .google.pubsub.v1.BigQueryConfigB\004" + + "\342A\001\001\022H\n\024cloud_storage_config\030\026 \001(\0132$.goo" + + "gle.pubsub.v1.CloudStorageConfigB\004\342A\001\001\022\"" + + "\n\024ack_deadline_seconds\030\005 \001(\005B\004\342A\001\001\022#\n\025re" + + "tain_acked_messages\030\007 \001(\010B\004\342A\001\001\022C\n\032messa" + + "ge_retention_duration\030\010 \001(\0132\031.google.pro" + + "tobuf.DurationB\004\342A\001\001\022@\n\006labels\030\t \003(\0132*.g" + + "oogle.pubsub.v1.Subscription.LabelsEntry" + + "B\004\342A\001\001\022%\n\027enable_message_ordering\030\n \001(\010B" + + "\004\342A\001\001\022C\n\021expiration_policy\030\013 \001(\0132\".googl" + + "e.pubsub.v1.ExpirationPolicyB\004\342A\001\001\022\024\n\006fi" + + "lter\030\014 \001(\tB\004\342A\001\001\022D\n\022dead_letter_policy\030\r" + + " \001(\0132\".google.pubsub.v1.DeadLetterPolicy" + + "B\004\342A\001\001\0229\n\014retry_policy\030\016 \001(\0132\035.google.pu" + + "bsub.v1.RetryPolicyB\004\342A\001\001\022\026\n\010detached\030\017 " + + "\001(\010B\004\342A\001\001\022*\n\034enable_exactly_once_deliver" + + "y\030\020 \001(\010B\004\342A\001\001\022I\n topic_message_retention" + + "_duration\030\021 \001(\0132\031.google.protobuf.Durati" + + "onB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google.pubsub." + + "v1.Subscription.StateB\004\342A\001\003\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022" + + "\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleap" + + "is.com/Subscription\022/projects/{project}/" + + "subscriptions/{subscription}\"\201\001\n\013RetryPo" + + "licy\0228\n\017minimum_backoff\030\001 \001(\0132\031.google.p" + + "rotobuf.DurationB\004\342A\001\001\0228\n\017maximum_backof" + + "f\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" + + "\"X\n\020DeadLetterPolicy\022\037\n\021dead_letter_topi" + + "c\030\001 \001(\tB\004\342A\001\001\022#\n\025max_delivery_attempts\030\002" + + " \001(\005B\004\342A\001\001\"@\n\020ExpirationPolicy\022,\n\003ttl\030\001 " + + "\001(\0132\031.google.protobuf.DurationB\004\342A\001\001\"\242\004\n" + + "\nPushConfig\022\033\n\rpush_endpoint\030\001 \001(\tB\004\342A\001\001" + + "\022F\n\nattributes\030\002 \003(\0132,.google.pubsub.v1." + + "PushConfig.AttributesEntryB\004\342A\001\001\022B\n\noidc" + + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" + + "ig.OidcTokenB\004\342A\001\001H\000\022J\n\016pubsub_wrapper\030\004" + + " \001(\0132*.google.pubsub.v1.PushConfig.Pubsu" + + "bWrapperB\004\342A\001\001H\001\022B\n\nno_wrapper\030\005 \001(\0132&.g" + + "oogle.pubsub.v1.PushConfig.NoWrapperB\004\342A" + + "\001\001H\001\032H\n\tOidcToken\022#\n\025service_account_ema" + + "il\030\001 \001(\tB\004\342A\001\001\022\026\n\010audience\030\002 \001(\tB\004\342A\001\001\032\017" + + "\n\rPubsubWrapper\032)\n\tNoWrapper\022\034\n\016write_me" + + "tadata\030\001 \001(\010B\004\342A\001\001\0321\n\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authent" + + "ication_methodB\t\n\007wrapper\"\360\002\n\016BigQueryCo" + + "nfig\022\023\n\005table\030\001 \001(\tB\004\342A\001\001\022\036\n\020use_topic_s" + + "chema\030\002 \001(\010B\004\342A\001\001\022\034\n\016write_metadata\030\003 \001(" + + "\010B\004\342A\001\001\022!\n\023drop_unknown_fields\030\004 \001(\010B\004\342A" + + "\001\001\022;\n\005state\030\005 \001(\0162&.google.pubsub.v1.Big" + + "QueryConfig.StateB\004\342A\001\003\022\036\n\020use_table_sch" + + "ema\030\006 \001(\010B\004\342A\001\001\"\212\001\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIE" + + "D\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022" + + "#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\327\004\n" + + "\022CloudStorageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001" + + "\002\022\035\n\017filename_prefix\030\002 \001(\tB\004\342A\001\001\022\035\n\017file" + + "name_suffix\030\003 \001(\tB\004\342A\001\001\022L\n\013text_config\030\004" + + " \001(\0132/.google.pubsub.v1.CloudStorageConf" + + "ig.TextConfigB\004\342A\001\001H\000\022L\n\013avro_config\030\005 \001" + + "(\0132/.google.pubsub.v1.CloudStorageConfig" + + ".AvroConfigB\004\342A\001\001H\000\0225\n\014max_duration\030\006 \001(" + + "\0132\031.google.protobuf.DurationB\004\342A\001\001\022\027\n\tma" + + "x_bytes\030\007 \001(\003B\004\342A\001\001\022?\n\005state\030\t \001(\0162*.goo" + + "gle.pubsub.v1.CloudStorageConfig.StateB\004" + + "\342A\001\003\032\014\n\nTextConfig\032*\n\nAvroConfig\022\034\n\016writ" + + "e_metadata\030\001 \001(\010B\004\342A\001\001\"u\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION" + + "_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_L" + + "OCATION_RESTRICTION\020\004B\017\n\routput_format\"\177" + + "\n\017ReceivedMessage\022\024\n\006ack_id\030\001 \001(\tB\004\342A\001\001\022" + + "6\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pubs" + + "ubMessageB\004\342A\001\001\022\036\n\020delivery_attempt\030\003 \001(" + + "\005B\004\342A\001\001\"[\n\026GetSubscriptionRequest\022A\n\014sub" + + "scription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googlea" + + "pis.com/Subscription\"\216\001\n\031UpdateSubscript" + + "ionRequest\022:\n\014subscription\030\001 \001(\0132\036.googl" + + "e.pubsub.v1.SubscriptionB\004\342A\001\002\0225\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\004\342A\001\002\"\224\001\n\030ListSubscriptionsRequest\022E\n\007pr" + + "oject\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanag" + + "er.googleapis.com/Project\022\027\n\tpage_size\030\002" + + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"w\n\031" + + "ListSubscriptionsResponse\022;\n\rsubscriptio" + + "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" + + "B\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"^\n" + + "\031DeleteSubscriptionRequest\022A\n\014subscripti" + + "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\"\225\001\n\027ModifyPushConfigReques" + + "t\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub" + + ".googleapis.com/Subscription\0227\n\013push_con" + + "fig\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB" + + "\004\342A\001\002\"\220\001\n\013PullRequest\022A\n\014subscription\030\001 " + + "\001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\022\"\n\022return_immediately\030\002 \001(\010B\006\030\001" + + "\342A\001\001\022\032\n\014max_messages\030\003 \001(\005B\004\342A\001\002\"R\n\014Pull" + + "Response\022B\n\021received_messages\030\001 \003(\0132!.go" + + "ogle.pubsub.v1.ReceivedMessageB\004\342A\001\001\"\230\001\n" + + "\030ModifyAckDeadlineRequest\022A\n\014subscriptio" + + "n\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/" + + "Subscription\022\025\n\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024a" + + "ck_deadline_seconds\030\003 \001(\005B\004\342A\001\002\"n\n\022Ackno" + + "wledgeRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\022\025\n\007ack_ids\030\002 \003(\tB\004\342A\001\002\"\317\002\n\024StreamingPul" + + "lRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\025\n\007a" + + "ck_ids\030\002 \003(\tB\004\342A\001\001\022%\n\027modify_deadline_se" + + "conds\030\003 \003(\005B\004\342A\001\001\022%\n\027modify_deadline_ack" + + "_ids\030\004 \003(\tB\004\342A\001\001\022)\n\033stream_ack_deadline_" + + "seconds\030\005 \001(\005B\004\342A\001\002\022\027\n\tclient_id\030\006 \001(\tB\004" + + "\342A\001\001\022&\n\030max_outstanding_messages\030\007 \001(\003B\004" + + "\342A\001\001\022#\n\025max_outstanding_bytes\030\010 \001(\003B\004\342A\001" + + "\001\"\253\006\n\025StreamingPullResponse\022B\n\021received_" + + "messages\030\001 \003(\0132!.google.pubsub.v1.Receiv" + + "edMessageB\004\342A\001\001\022g\n\030acknowledge_confirmat" + + "ion\030\005 \001(\0132?.google.pubsub.v1.StreamingPu" + + "llResponse.AcknowledgeConfirmationB\004\342A\001\001" + + "\022u\n modify_ack_deadline_confirmation\030\003 \001" + + "(\0132E.google.pubsub.v1.StreamingPullRespo" + + "nse.ModifyAckDeadlineConfirmationB\004\342A\001\001\022" + + "e\n\027subscription_properties\030\004 \001(\0132>.googl" + + "e.pubsub.v1.StreamingPullResponse.Subscr" + + "iptionPropertiesB\004\342A\001\001\032\230\001\n\027AcknowledgeCo" + + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" + + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022\037\n\021unordered_ac" + + "k_ids\030\003 \003(\tB\004\342A\001\001\022&\n\030temporary_failed_ac" + + "k_ids\030\004 \003(\tB\004\342A\001\001\032}\n\035ModifyAckDeadlineCo" + + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" + + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022&\n\030temporary_fa" + + "iled_ack_ids\030\003 \003(\tB\004\342A\001\001\032m\n\026Subscription" + + "Properties\022+\n\035exactly_once_delivery_enab" + + "led\030\001 \001(\010B\004\342A\001\001\022&\n\030message_ordering_enab" + + "led\030\002 \001(\010B\004\342A\001\001\"\213\002\n\025CreateSnapshotReques" + + "t\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googlea" + + "pis.com/Snapshot\022A\n\014subscription\030\002 \001(\tB+" + + "\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022I\n\006labels\030\003 \003(\01323.google.pubsub.v1.C" + + "reateSnapshotRequest.LabelsEntryB\004\342A\001\001\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"\202\001\n\025UpdateSnapshotRequest\0222\n\010snaps" + + "hot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\004\342" + + "A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\004\342A\001\002\"\305\002\n\010Snapshot\022\022\n\004name\030" + + "\001 \001(\tB\004\342A\001\001\0223\n\005topic\030\002 \001(\tB$\342A\001\001\372A\035\n\033pub" + + "sub.googleapis.com/Topic\0225\n\013expire_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\022" + + "<\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Snaps" + + "hot.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsu" + + "b.googleapis.com/Snapshot\022\'projects/{pro" + + "ject}/snapshots/{snapshot}\"O\n\022GetSnapsho" + + "tRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pub" + + "sub.googleapis.com/Snapshot\"\220\001\n\024ListSnap" + + "shotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + + "en\030\003 \001(\tB\004\342A\001\001\"k\n\025ListSnapshotsResponse\022" + + "3\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" + + "apshotB\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342" + + "A\001\001\"R\n\025DeleteSnapshotRequest\0229\n\010snapshot" + + "\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com/S" + + "napshot\"\311\001\n\013SeekRequest\022A\n\014subscription\030" + + "\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\0220\n\004time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\001H\000\022;\n\010snapshot\030\003 \001(\tB\'" + + "\342A\001\001\372A \n\036pubsub.googleapis.com/SnapshotH" + + "\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublishe" + + "r\022q\n\013CreateTopic\022\027.google.pubsub.v1.Topi" + + "c\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.UpdateTo" + + "picRequest\032\027.google.pubsub.v1.Topic\"C\332A\021" + + "topic,update_mask\202\323\344\223\002)2$/v1/{topic.name" + + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" + + "oogle.pubsub.v1.PublishRequest\032!.google." + + "pubsub.v1.PublishResponse\"C\332A\016topic,mess" + + "ages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + + "/*}:publish:\001*\022w\n\010GetTopic\022!.google.pubs" + + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + + ".Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=proje" + + "cts/*/topics/*}\022\212\001\n\nListTopics\022#.google." + + "pubsub.v1.ListTopicsRequest\032$.google.pub" + + "sub.v1.ListTopicsResponse\"1\332A\007project\202\323\344" + + "\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub." + + "v1.ListTopicSubscriptionsRequest\0320.googl" + + "e.pubsub.v1.ListTopicSubscriptionsRespon" + + "se\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/" + + "*/topics/*}/subscriptions\022\252\001\n\022ListTopicS" + + "napshots\022+.google.pubsub.v1.ListTopicSna" + + "pshotsRequest\032,.google.pubsub.v1.ListTop" + + "icSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1" + + "/{topic=projects/*/topics/*}/snapshots\022|" + + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" + + "opicRequest\032\026.google.protobuf.Empty\"/\332A\005" + + "topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topic" + + "s/*}\022\255\001\n\022DetachSubscription\022+.google.pub" + + "sub.v1.DetachSubscriptionRequest\032,.googl" + + "e.pubsub.v1.DetachSubscriptionResponse\"<" + + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" + + "scriptions/*}:detach\032p\312A\025pubsub.googleap" + + "is.com\322AUhttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Create" + + "Subscription\022\036.google.pubsub.v1.Subscrip" + + "tion\032\036.google.pubsub.v1.Subscription\"^\332A" + + "+name,topic,push_config,ack_deadline_sec" + + "onds\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" + + "ptions/*}:\001*\022\241\001\n\017GetSubscription\022(.googl" + + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" + + "gle.pubsub.v1.Subscription\"D\332A\014subscript" + + "ion\202\323\344\223\002/\022-/v1/{subscription=projects/*/" + + "subscriptions/*}\022\273\001\n\022UpdateSubscription\022" + + "+.google.pubsub.v1.UpdateSubscriptionReq" + + "uest\032\036.google.pubsub.v1.Subscription\"X\332A" + + "\030subscription,update_mask\202\323\344\223\002722/v1/{su" + + "bscription.name=projects/*/subscriptions" + + "/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google.pu" + + "bsub.v1.ListSubscriptionsRequest\032+.googl" + + "e.pubsub.v1.ListSubscriptionsResponse\"8\332" + + "A\007project\202\323\344\223\002(\022&/v1/{project=projects/*" + + "}/subscriptions\022\237\001\n\022DeleteSubscription\022+" + + ".google.pubsub.v1.DeleteSubscriptionRequ" + + "est\032\026.google.protobuf.Empty\"D\332A\014subscrip" + + "tion\202\323\344\223\002/*-/v1/{subscription=projects/*" + + "/subscriptions/*}\022\317\001\n\021ModifyAckDeadline\022" + + "*.google.pubsub.v1.ModifyAckDeadlineRequ" + + "est\032\026.google.protobuf.Empty\"v\332A)subscrip" + + "tion,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"" + + "?/v1/{subscription=projects/*/subscripti" + + "ons/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowle" + + "dge\022$.google.pubsub.v1.AcknowledgeReques" + + "t\032\026.google.protobuf.Empty\"[\332A\024subscripti" + + "on,ack_ids\202\323\344\223\002>\"9/v1/{subscription=proj" + + "ects/*/subscriptions/*}:acknowledge:\001*\022\320" + + "\001\n\004Pull\022\035.google.pubsub.v1.PullRequest\032\036" + + ".google.pubsub.v1.PullResponse\"\210\001\332A,subs" + + "cription,return_immediately,max_messages" + + "\332A\031subscription,max_messages\202\323\344\223\0027\"2/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}:pull:\001*\022f\n\rStreamingPull\022&.google.pubs" + + "ub.v1.StreamingPullRequest\032\'.google.pubs" + + "ub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Mo" + + "difyPushConfig\022).google.pubsub.v1.Modify" + + "PushConfigRequest\032\026.google.protobuf.Empt" + + "y\"d\332A\030subscription,push_config\202\323\344\223\002C\">/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:modifyPushConfig:\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/{snapshot=projects/*/snapshots" + + "/*}\022\226\001\n\rListSnapshots\022&.google.pubsub.v1" + + ".ListSnapshotsRequest\032\'.google.pubsub.v1" + + ".ListSnapshotsResponse\"4\332A\007project\202\323\344\223\002$" + + "\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.Creat" + + "eSnapshotRequest\032\032.google.pubsub.v1.Snap" + + "shot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{n" + + "ame=projects/*/snapshots/*}:\001*\022\243\001\n\016Updat" + + "eSnapshot\022\'.google.pubsub.v1.UpdateSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"L" + + "\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{snap" + + "shot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.Delet" + + "eSnapshotRequest\032\026.google.protobuf.Empty" + + "\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=proje" + + "cts/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pub" + + "sub.v1.SeekRequest\032\036.google.pubsub.v1.Se" + + "ekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:seek:\001*\032p\312A\025pu" + + "bsub.googleapis.com\322AUhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" + + "le.pubsub.v1B\013PubsubProtoP\001Z2cloud.googl" + + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" + + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" + + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.pubsub.v1.SchemaProto.getDescriptor(), + }); + internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor, + new java.lang.String[] { + "AllowedPersistenceRegions", "EnforceInTransit", + }); + internal_static_google_pubsub_v1_SchemaSettings_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SchemaSettings_descriptor, + new java.lang.String[] { + "Schema", "Encoding", "FirstRevisionId", "LastRevisionId", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, + new java.lang.String[] { + "AwsKinesis", "Source", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor, + new java.lang.String[] { + "State", "StreamArn", "ConsumerArn", "AwsRoleArn", "GcpServiceAccount", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_Topic_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Topic_descriptor, + new java.lang.String[] { + "Name", + "Labels", + "MessageStoragePolicy", + "KmsKeyName", + "SchemaSettings", + "SatisfiesPzs", + "MessageRetentionDuration", + "State", + "IngestionDataSourceSettings", + }); + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_pubsub_v1_PubsubMessage_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PubsubMessage_descriptor, + new java.lang.String[] { + "Data", "Attributes", "MessageId", "PublishTime", "OrderingKey", + }); + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_pubsub_v1_GetTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetTopicRequest_descriptor, + new java.lang.String[] { + "Topic", + }); + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, + new java.lang.String[] { + "Topic", "UpdateMask", + }); + internal_static_google_pubsub_v1_PublishRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PublishRequest_descriptor, + new java.lang.String[] { + "Topic", "Messages", + }); + internal_static_google_pubsub_v1_PublishResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PublishResponse_descriptor, + new java.lang.String[] { + "MessageIds", + }); + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, + new java.lang.String[] { + "Project", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, + new java.lang.String[] { + "Topics", "NextPageToken", + }); + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, + new java.lang.String[] { + "Topic", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, + new java.lang.String[] { + "Subscriptions", "NextPageToken", + }); + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, + new java.lang.String[] { + "Topic", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, + new java.lang.String[] { + "Snapshots", "NextPageToken", + }); + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, + new java.lang.String[] { + "Topic", + }); + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, + new java.lang.String[] { + "Subscription", + }); + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_descriptor, + new java.lang.String[] { + "Name", + "Topic", + "PushConfig", + "BigqueryConfig", + "CloudStorageConfig", + "AckDeadlineSeconds", + "RetainAckedMessages", + "MessageRetentionDuration", + "Labels", + "EnableMessageOrdering", + "ExpirationPolicy", + "Filter", + "DeadLetterPolicy", + "RetryPolicy", + "Detached", + "EnableExactlyOnceDelivery", + "TopicMessageRetentionDuration", + "State", + }); + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_pubsub_v1_RetryPolicy_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_RetryPolicy_descriptor, + new java.lang.String[] { + "MinimumBackoff", "MaximumBackoff", + }); + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, + new java.lang.String[] { + "DeadLetterTopic", "MaxDeliveryAttempts", + }); + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, + new java.lang.String[] { + "Ttl", + }); + internal_static_google_pubsub_v1_PushConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_descriptor, + new java.lang.String[] { + "PushEndpoint", + "Attributes", + "OidcToken", + "PubsubWrapper", + "NoWrapper", + "AuthenticationMethod", + "Wrapper", + }); + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor, + new java.lang.String[] { + "ServiceAccountEmail", "Audience", + }); + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor, + new java.lang.String[] { + "WriteMetadata", + }); + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_pubsub_v1_BigQueryConfig_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_BigQueryConfig_descriptor, + new java.lang.String[] { + "Table", + "UseTopicSchema", + "WriteMetadata", + "DropUnknownFields", + "State", + "UseTableSchema", + }); + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, + new java.lang.String[] { + "Bucket", + "FilenamePrefix", + "FilenameSuffix", + "TextConfig", + "AvroConfig", + "MaxDuration", + "MaxBytes", + "State", + "OutputFormat", + }); + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor = + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor = + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor, + new java.lang.String[] { + "WriteMetadata", + }); + internal_static_google_pubsub_v1_ReceivedMessage_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ReceivedMessage_descriptor, + new java.lang.String[] { + "AckId", "Message", "DeliveryAttempt", + }); + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, + new java.lang.String[] { + "Subscription", + }); + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, + new java.lang.String[] { + "Subscription", "UpdateMask", + }); + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, + new java.lang.String[] { + "Project", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, + new java.lang.String[] { + "Subscriptions", "NextPageToken", + }); + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, + new java.lang.String[] { + "Subscription", + }); + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, + new java.lang.String[] { + "Subscription", "PushConfig", + }); + internal_static_google_pubsub_v1_PullRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PullRequest_descriptor, + new java.lang.String[] { + "Subscription", "ReturnImmediately", "MaxMessages", + }); + internal_static_google_pubsub_v1_PullResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PullResponse_descriptor, + new java.lang.String[] { + "ReceivedMessages", + }); + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, + new java.lang.String[] { + "Subscription", "AckIds", "AckDeadlineSeconds", + }); + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, + new java.lang.String[] { + "Subscription", "AckIds", + }); + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, + new java.lang.String[] { + "Subscription", + "AckIds", + "ModifyDeadlineSeconds", + "ModifyDeadlineAckIds", + "StreamAckDeadlineSeconds", + "ClientId", + "MaxOutstandingMessages", + "MaxOutstandingBytes", + }); + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, + new java.lang.String[] { + "ReceivedMessages", + "AcknowledgeConfirmation", + "ModifyAckDeadlineConfirmation", + "SubscriptionProperties", + }); + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor = + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor, + new java.lang.String[] { + "AckIds", "InvalidAckIds", "UnorderedAckIds", "TemporaryFailedAckIds", + }); + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor = + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor, + new java.lang.String[] { + "AckIds", "InvalidAckIds", "TemporaryFailedAckIds", + }); + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor = + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor, + new java.lang.String[] { + "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", + }); + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, + new java.lang.String[] { + "Name", "Subscription", "Labels", + }); + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, + new java.lang.String[] { + "Snapshot", "UpdateMask", + }); + internal_static_google_pubsub_v1_Snapshot_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Snapshot_descriptor, + new java.lang.String[] { + "Name", "Topic", "ExpireTime", "Labels", + }); + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, + new java.lang.String[] { + "Snapshot", + }); + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, + new java.lang.String[] { + "Project", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, + new java.lang.String[] { + "Snapshots", "NextPageToken", + }); + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, + new java.lang.String[] { + "Snapshot", + }); + internal_static_google_pubsub_v1_SeekRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SeekRequest_descriptor, + new java.lang.String[] { + "Subscription", "Time", "Snapshot", "Target", + }); + internal_static_google_pubsub_v1_SeekResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.pubsub.v1.SchemaProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/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 similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 1aa13be1d..e953adb95 100644 --- a/owl-bot-staging/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,63 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `Pull` method.
  * 
* * Protobuf type {@code google.pubsub.v1.PullRequest} */ -public final class PullRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PullRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullRequest) PullRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PullRequest.newBuilder() to construct. private PullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PullRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PullRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PullRequest.class, com.google.pubsub.v1.PullRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The subscription from which messages should be pulled.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -62,30 +85,32 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The subscription from which messages should be pulled.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -96,6 +121,8 @@ public java.lang.String getSubscription() { public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2; private boolean returnImmediately_ = false; /** + * + * *
    * Optional. If this field set to true, the system will respond immediately
    * even if it there are no messages available to return in the `Pull`
@@ -106,19 +133,24 @@ public java.lang.String getSubscription() {
    * not set this field.
    * 
* - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. - * See google/pubsub/v1/pubsub.proto;l=1359 + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ @java.lang.Override - @java.lang.Deprecated public boolean getReturnImmediately() { + @java.lang.Deprecated + public boolean getReturnImmediately() { return returnImmediately_; } public static final int MAX_MESSAGES_FIELD_NUMBER = 3; private int maxMessages_ = 0; /** + * + * *
    * Required. The maximum number of messages to return for this request. Must
    * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -126,6 +158,7 @@ public java.lang.String getSubscription() {
    * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxMessages. */ @java.lang.Override @@ -134,6 +167,7 @@ public int getMaxMessages() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -169,12 +202,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (returnImmediately_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, returnImmediately_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, returnImmediately_); } if (maxMessages_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxMessages_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxMessages_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -184,19 +215,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PullRequest)) { return super.equals(obj); } com.google.pubsub.v1.PullRequest other = (com.google.pubsub.v1.PullRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; - if (getReturnImmediately() - != other.getReturnImmediately()) return false; - if (getMaxMessages() - != other.getMaxMessages()) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (getReturnImmediately() != other.getReturnImmediately()) return false; + if (getMaxMessages() != other.getMaxMessages()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -211,8 +239,7 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + RETURN_IMMEDIATELY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReturnImmediately()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnImmediately()); hash = (37 * hash) + MAX_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMaxMessages(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -220,132 +247,135 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PullRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PullRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PullRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PullRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.PullRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PullRequest 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.PullRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PullRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PullRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PullRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PullRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PullRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PullRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PullRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `Pull` method.
    * 
* * Protobuf type {@code google.pubsub.v1.PullRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullRequest) com.google.pubsub.v1.PullRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullRequest.class, com.google.pubsub.v1.PullRequest.Builder.class); + com.google.pubsub.v1.PullRequest.class, + com.google.pubsub.v1.PullRequest.Builder.class); } // Construct using com.google.pubsub.v1.PullRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +387,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override @@ -379,7 +409,9 @@ public com.google.pubsub.v1.PullRequest build() { @java.lang.Override public com.google.pubsub.v1.PullRequest buildPartial() { com.google.pubsub.v1.PullRequest result = new com.google.pubsub.v1.PullRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -401,38 +433,39 @@ private void buildPartial0(com.google.pubsub.v1.PullRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PullRequest) { - return mergeFrom((com.google.pubsub.v1.PullRequest)other); + return mergeFrom((com.google.pubsub.v1.PullRequest) other); } else { super.mergeFrom(other); return this; @@ -478,27 +511,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - returnImmediately_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - maxMessages_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + returnImmediately_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxMessages_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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) { @@ -508,23 +545,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -533,21 +575,24 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -555,30 +600,41 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -588,18 +644,24 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -607,8 +669,10 @@ public Builder setSubscriptionBytes( return this; } - private boolean returnImmediately_ ; + private boolean returnImmediately_; /** + * + * *
      * Optional. If this field set to true, the system will respond immediately
      * even if it there are no messages available to return in the `Pull`
@@ -619,16 +683,22 @@ public Builder setSubscriptionBytes(
      * not set this field.
      * 
* - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. - * See google/pubsub/v1/pubsub.proto;l=1359 + * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ @java.lang.Override - @java.lang.Deprecated public boolean getReturnImmediately() { + @java.lang.Deprecated + public boolean getReturnImmediately() { return returnImmediately_; } /** + * + * *
      * Optional. If this field set to true, the system will respond immediately
      * even if it there are no messages available to return in the `Pull`
@@ -639,13 +709,17 @@ public Builder setSubscriptionBytes(
      * not set this field.
      * 
* - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. - * See google/pubsub/v1/pubsub.proto;l=1359 + * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1359 * @param value The returnImmediately to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setReturnImmediately(boolean value) { + @java.lang.Deprecated + public Builder setReturnImmediately(boolean value) { returnImmediately_ = value; bitField0_ |= 0x00000002; @@ -653,6 +727,8 @@ public Builder setSubscriptionBytes( return this; } /** + * + * *
      * Optional. If this field set to true, the system will respond immediately
      * even if it there are no messages available to return in the `Pull`
@@ -663,20 +739,26 @@ public Builder setSubscriptionBytes(
      * not set this field.
      * 
* - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. - * See google/pubsub/v1/pubsub.proto;l=1359 + * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1359 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearReturnImmediately() { + @java.lang.Deprecated + public Builder clearReturnImmediately() { bitField0_ = (bitField0_ & ~0x00000002); returnImmediately_ = false; onChanged(); return this; } - private int maxMessages_ ; + private int maxMessages_; /** + * + * *
      * Required. The maximum number of messages to return for this request. Must
      * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -684,6 +766,7 @@ public Builder setSubscriptionBytes(
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxMessages. */ @java.lang.Override @@ -691,6 +774,8 @@ public int getMaxMessages() { return maxMessages_; } /** + * + * *
      * Required. The maximum number of messages to return for this request. Must
      * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -698,6 +783,7 @@ public int getMaxMessages() {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The maxMessages to set. * @return This builder for chaining. */ @@ -709,6 +795,8 @@ public Builder setMaxMessages(int value) { return this; } /** + * + * *
      * Required. The maximum number of messages to return for this request. Must
      * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -716,6 +804,7 @@ public Builder setMaxMessages(int value) {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMaxMessages() { @@ -724,9 +813,9 @@ public Builder clearMaxMessages() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -736,12 +825,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PullRequest) private static final com.google.pubsub.v1.PullRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PullRequest(); } @@ -750,27 +839,27 @@ public static com.google.pubsub.v1.PullRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PullRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PullRequest 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; @@ -785,6 +874,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/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 similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index b3f0dc695..5be8f70aa 100644 --- a/owl-bot-staging/v1/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 @@ -1,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface PullRequestOrBuilder extends +public interface PullRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The subscription from which messages should be pulled.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * Required. The subscription from which messages should be pulled.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * Optional. If this field set to true, the system will respond immediately
    * even if it there are no messages available to return in the `Pull`
@@ -41,14 +68,19 @@ public interface PullRequestOrBuilder extends
    * not set this field.
    * 
* - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. - * See google/pubsub/v1/pubsub.proto;l=1359 + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ - @java.lang.Deprecated boolean getReturnImmediately(); + @java.lang.Deprecated + boolean getReturnImmediately(); /** + * + * *
    * Required. The maximum number of messages to return for this request. Must
    * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -56,6 +88,7 @@ public interface PullRequestOrBuilder extends
    * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxMessages. */ int getMaxMessages(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index c9711bd8f..f63d9e26b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,49 +20,56 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `Pull` method.
  * 
* * Protobuf type {@code google.pubsub.v1.PullResponse} */ -public final class PullResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PullResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullResponse) PullResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PullResponse.newBuilder() to construct. private PullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PullResponse() { receivedMessages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PullResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullResponse.class, com.google.pubsub.v1.PullResponse.Builder.class); + com.google.pubsub.v1.PullResponse.class, + com.google.pubsub.v1.PullResponse.Builder.class); } public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List receivedMessages_; /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -56,13 +78,17 @@ protected java.lang.Object newInstance(
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getReceivedMessagesList() { return receivedMessages_; } /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -71,14 +97,18 @@ public java.util.List getReceivedMessagesL
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getReceivedMessagesOrBuilderList() { return receivedMessages_; } /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -87,13 +117,17 @@ public java.util.List getReceivedMessagesL
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getReceivedMessagesCount() { return receivedMessages_.size(); } /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -102,13 +136,17 @@ public int getReceivedMessagesCount() {
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -117,15 +155,17 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { return receivedMessages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { output.writeMessage(1, receivedMessages_.get(i)); } @@ -152,8 +191,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < receivedMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, receivedMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -163,15 +201,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PullResponse)) { return super.equals(obj); } com.google.pubsub.v1.PullResponse other = (com.google.pubsub.v1.PullResponse) obj; - if (!getReceivedMessagesList() - .equals(other.getReceivedMessagesList())) return false; + if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -192,132 +229,135 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PullResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PullResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PullResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PullResponse parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.PullResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PullResponse 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.PullResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PullResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PullResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PullResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PullResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PullResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PullResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PullResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `Pull` method.
    * 
* * Protobuf type {@code google.pubsub.v1.PullResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullResponse) com.google.pubsub.v1.PullResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullResponse.class, com.google.pubsub.v1.PullResponse.Builder.class); + com.google.pubsub.v1.PullResponse.class, + com.google.pubsub.v1.PullResponse.Builder.class); } // Construct using com.google.pubsub.v1.PullResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -333,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override @@ -356,7 +396,9 @@ public com.google.pubsub.v1.PullResponse build() { public com.google.pubsub.v1.PullResponse buildPartial() { com.google.pubsub.v1.PullResponse result = new com.google.pubsub.v1.PullResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,38 +423,39 @@ private void buildPartial0(com.google.pubsub.v1.PullResponse result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PullResponse) { - return mergeFrom((com.google.pubsub.v1.PullResponse)other); + return mergeFrom((com.google.pubsub.v1.PullResponse) other); } else { super.mergeFrom(other); return this; @@ -439,9 +482,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) { receivedMessagesBuilder_ = null; receivedMessages_ = other.receivedMessages_; bitField0_ = (bitField0_ & ~0x00000001); - receivedMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReceivedMessagesFieldBuilder() : null; + receivedMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReceivedMessagesFieldBuilder() + : null; } else { receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); } @@ -473,25 +517,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.ReceivedMessage m = - input.readMessage( - com.google.pubsub.v1.ReceivedMessage.parser(), - extensionRegistry); - if (receivedMessagesBuilder_ == null) { - ensureReceivedMessagesIsMutable(); - receivedMessages_.add(m); - } else { - receivedMessagesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.pubsub.v1.ReceivedMessage m = + input.readMessage( + com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry); + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(m); + } else { + receivedMessagesBuilder_.addMessage(m); + } + break; + } // case 10 + 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) { @@ -501,21 +546,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List receivedMessages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureReceivedMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - receivedMessages_ = new java.util.ArrayList(receivedMessages_); + receivedMessages_ = + new java.util.ArrayList(receivedMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> receivedMessagesBuilder_; + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder> + receivedMessagesBuilder_; /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -524,7 +577,9 @@ private void ensureReceivedMessagesIsMutable() {
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesList() { if (receivedMessagesBuilder_ == null) { @@ -534,6 +589,8 @@ public java.util.List getReceivedMessagesL } } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -542,7 +599,9 @@ public java.util.List getReceivedMessagesL
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getReceivedMessagesCount() { if (receivedMessagesBuilder_ == null) { @@ -552,6 +611,8 @@ public int getReceivedMessagesCount() { } } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -560,7 +621,9 @@ public int getReceivedMessagesCount() {
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -570,6 +633,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { } } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -578,10 +643,11 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReceivedMessages( - int index, com.google.pubsub.v1.ReceivedMessage value) { + public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -595,6 +661,8 @@ public Builder setReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -603,7 +671,9 @@ public Builder setReceivedMessages(
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -617,6 +687,8 @@ public Builder setReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -625,7 +697,9 @@ public Builder setReceivedMessages(
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -641,6 +715,8 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -649,10 +725,11 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addReceivedMessages( - int index, com.google.pubsub.v1.ReceivedMessage value) { + public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -666,6 +743,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -674,7 +753,9 @@ public Builder addReceivedMessages(
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -688,6 +769,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -696,7 +779,9 @@ public Builder addReceivedMessages(
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -710,6 +795,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -718,14 +805,15 @@ public Builder addReceivedMessages(
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllReceivedMessages( java.lang.Iterable values) { if (receivedMessagesBuilder_ == null) { ensureReceivedMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, receivedMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receivedMessages_); onChanged(); } else { receivedMessagesBuilder_.addAllMessages(values); @@ -733,6 +821,8 @@ public Builder addAllReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -741,7 +831,9 @@ public Builder addAllReceivedMessages(
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReceivedMessages() { if (receivedMessagesBuilder_ == null) { @@ -754,6 +846,8 @@ public Builder clearReceivedMessages() { return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -762,7 +856,9 @@ public Builder clearReceivedMessages() {
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -775,6 +871,8 @@ public Builder removeReceivedMessages(int index) { return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -783,13 +881,16 @@ public Builder removeReceivedMessages(int index) {
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -798,16 +899,20 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { if (receivedMessagesBuilder_ == null) { - return receivedMessages_.get(index); } else { + return receivedMessages_.get(index); + } else { return receivedMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -816,10 +921,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getReceivedMessagesOrBuilderList() { + public java.util.List + getReceivedMessagesOrBuilderList() { if (receivedMessagesBuilder_ != null) { return receivedMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -827,6 +934,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -835,13 +944,17 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { - return getReceivedMessagesFieldBuilder().addBuilder( - com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + return getReceivedMessagesFieldBuilder() + .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -850,14 +963,17 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder()
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( - int index) { - return getReceivedMessagesFieldBuilder().addBuilder( - index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { + return getReceivedMessagesFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } /** + * + * *
      * Optional. Received Pub/Sub messages. The list will be empty if there are no
      * more messages available in the backlog, or if no messages could be returned
@@ -866,18 +982,26 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(
      * even if there are more messages available in the backlog.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getReceivedMessagesBuilderList() { + public java.util.List + getReceivedMessagesBuilderList() { return getReceivedMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder> getReceivedMessagesFieldBuilder() { if (receivedMessagesBuilder_ == null) { - receivedMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( + receivedMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder>( receivedMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -886,9 +1010,9 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } return receivedMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -898,12 +1022,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PullResponse) private static final com.google.pubsub.v1.PullResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PullResponse(); } @@ -912,27 +1036,27 @@ public static com.google.pubsub.v1.PullResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PullResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PullResponse 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; @@ -947,6 +1071,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 2b4f88fa8..dd54132aa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface PullResponseOrBuilder extends +public interface PullResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -17,11 +35,14 @@ public interface PullResponseOrBuilder extends
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getReceivedMessagesList(); + java.util.List getReceivedMessagesList(); /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -30,10 +51,14 @@ public interface PullResponseOrBuilder extends
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -42,10 +67,14 @@ public interface PullResponseOrBuilder extends
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getReceivedMessagesCount(); /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -54,11 +83,15 @@ public interface PullResponseOrBuilder extends
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getReceivedMessagesOrBuilderList(); /** + * + * *
    * Optional. Received Pub/Sub messages. The list will be empty if there are no
    * more messages available in the backlog, or if no messages could be returned
@@ -67,8 +100,9 @@ public interface PullResponseOrBuilder extends
    * even if there are more messages available in the backlog.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index); + com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index db743c6ee..01c977f88 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,34 +20,35 @@ package com.google.pubsub.v1; /** + * + * *
  * Configuration for a push delivery endpoint.
  * 
* * Protobuf type {@code google.pubsub.v1.PushConfig} */ -public final class PushConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PushConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig) PushConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PushConfig.newBuilder() to construct. private PushConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PushConfig() { pushEndpoint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PushConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } @@ -44,23 +60,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 2: return internalGetAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); } - public interface OidcTokenOrBuilder extends + public interface OidcTokenOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.OidcToken) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -70,10 +90,13 @@ public interface OidcTokenOrBuilder extends
      * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** + * + * *
      * Optional. [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -83,12 +106,14 @@ public interface OidcTokenOrBuilder extends
      * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
      * Optional. Audience to be used when generating OIDC token. The audience
      * claim identifies the recipients that the JWT is intended for. The
@@ -100,10 +125,13 @@ public interface OidcTokenOrBuilder extends
      * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The audience. */ java.lang.String getAudience(); /** + * + * *
      * Optional. Audience to be used when generating OIDC token. The audience
      * claim identifies the recipients that the JWT is intended for. The
@@ -115,12 +143,14 @@ public interface OidcTokenOrBuilder extends
      * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for audience. */ - com.google.protobuf.ByteString - getAudienceBytes(); + com.google.protobuf.ByteString getAudienceBytes(); } /** + * + * *
    * Contains information needed for generating an
    * [OpenID Connect
@@ -129,15 +159,16 @@ public interface OidcTokenOrBuilder extends
    *
    * Protobuf type {@code google.pubsub.v1.PushConfig.OidcToken}
    */
-  public static final class OidcToken extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class OidcToken extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.OidcToken)
       OidcTokenOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use OidcToken.newBuilder() to construct.
     private OidcToken(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private OidcToken() {
       serviceAccountEmail_ = "";
       audience_ = "";
@@ -145,28 +176,32 @@ private OidcToken() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new OidcToken();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.PushConfig.OidcToken.class, com.google.pubsub.v1.PushConfig.OidcToken.Builder.class);
+              com.google.pubsub.v1.PushConfig.OidcToken.class,
+              com.google.pubsub.v1.PushConfig.OidcToken.Builder.class);
     }
 
     public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object serviceAccountEmail_ = "";
     /**
+     *
+     *
      * 
      * Optional. [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -176,6 +211,7 @@ protected java.lang.Object newInstance(
      * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -184,14 +220,15 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** + * + * *
      * Optional. [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -201,16 +238,15 @@ public java.lang.String getServiceAccountEmail() {
      * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -219,9 +255,12 @@ public java.lang.String getServiceAccountEmail() { } public static final int AUDIENCE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object audience_ = ""; /** + * + * *
      * Optional. Audience to be used when generating OIDC token. The audience
      * claim identifies the recipients that the JWT is intended for. The
@@ -233,6 +272,7 @@ public java.lang.String getServiceAccountEmail() {
      * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The audience. */ @java.lang.Override @@ -241,14 +281,15 @@ public java.lang.String getAudience() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audience_ = s; return s; } } /** + * + * *
      * Optional. Audience to be used when generating OIDC token. The audience
      * claim identifies the recipients that the JWT is intended for. The
@@ -260,16 +301,15 @@ public java.lang.String getAudience() {
      * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for audience. */ @java.lang.Override - public com.google.protobuf.ByteString - getAudienceBytes() { + public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audience_ = b; return b; } else { @@ -278,6 +318,7 @@ public java.lang.String getAudience() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); } @@ -320,17 +360,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PushConfig.OidcToken)) { return super.equals(obj); } - com.google.pubsub.v1.PushConfig.OidcToken other = (com.google.pubsub.v1.PushConfig.OidcToken) obj; + com.google.pubsub.v1.PushConfig.OidcToken other = + (com.google.pubsub.v1.PushConfig.OidcToken) obj; - if (!getServiceAccountEmail() - .equals(other.getServiceAccountEmail())) return false; - if (!getAudience() - .equals(other.getAudience())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (!getAudience().equals(other.getAudience())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -351,90 +390,94 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PushConfig.OidcToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig.OidcToken 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.PushConfig.OidcToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PushConfig.OidcToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -444,6 +487,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Contains information needed for generating an
      * [OpenID Connect
@@ -452,33 +497,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.pubsub.v1.PushConfig.OidcToken}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.OidcToken)
         com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.pubsub.v1.PushConfig.OidcToken.class, com.google.pubsub.v1.PushConfig.OidcToken.Builder.class);
+                com.google.pubsub.v1.PushConfig.OidcToken.class,
+                com.google.pubsub.v1.PushConfig.OidcToken.Builder.class);
       }
 
       // Construct using com.google.pubsub.v1.PushConfig.OidcToken.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -489,9 +534,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
       }
 
       @java.lang.Override
@@ -510,8 +555,11 @@ public com.google.pubsub.v1.PushConfig.OidcToken build() {
 
       @java.lang.Override
       public com.google.pubsub.v1.PushConfig.OidcToken buildPartial() {
-        com.google.pubsub.v1.PushConfig.OidcToken result = new com.google.pubsub.v1.PushConfig.OidcToken(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.pubsub.v1.PushConfig.OidcToken result =
+            new com.google.pubsub.v1.PushConfig.OidcToken(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -530,38 +578,41 @@ private void buildPartial0(com.google.pubsub.v1.PushConfig.OidcToken result) {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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.PushConfig.OidcToken) {
-          return mergeFrom((com.google.pubsub.v1.PushConfig.OidcToken)other);
+          return mergeFrom((com.google.pubsub.v1.PushConfig.OidcToken) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -606,22 +657,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                serviceAccountEmail_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                audience_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  serviceAccountEmail_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  audience_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              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) {
@@ -631,10 +685,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object serviceAccountEmail_ = "";
       /**
+       *
+       *
        * 
        * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -644,13 +701,13 @@ public Builder mergeFrom(
        * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -659,6 +716,8 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
        * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -668,15 +727,14 @@ public java.lang.String getServiceAccountEmail() {
        * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString - getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -684,6 +742,8 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
        * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -693,18 +753,22 @@ public java.lang.String getServiceAccountEmail() {
        * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccountEmail_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -714,6 +778,7 @@ public Builder setServiceAccountEmail(
        * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { @@ -723,6 +788,8 @@ public Builder clearServiceAccountEmail() { return this; } /** + * + * *
        * Optional. [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -732,12 +799,14 @@ public Builder clearServiceAccountEmail() {
        * 
* * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; bitField0_ |= 0x00000001; @@ -747,6 +816,8 @@ public Builder setServiceAccountEmailBytes( private java.lang.Object audience_ = ""; /** + * + * *
        * Optional. Audience to be used when generating OIDC token. The audience
        * claim identifies the recipients that the JWT is intended for. The
@@ -758,13 +829,13 @@ public Builder setServiceAccountEmailBytes(
        * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The audience. */ public java.lang.String getAudience() { java.lang.Object ref = audience_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audience_ = s; return s; @@ -773,6 +844,8 @@ public java.lang.String getAudience() { } } /** + * + * *
        * Optional. Audience to be used when generating OIDC token. The audience
        * claim identifies the recipients that the JWT is intended for. The
@@ -784,15 +857,14 @@ public java.lang.String getAudience() {
        * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for audience. */ - public com.google.protobuf.ByteString - getAudienceBytes() { + public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audience_ = b; return b; } else { @@ -800,6 +872,8 @@ public java.lang.String getAudience() { } } /** + * + * *
        * Optional. Audience to be used when generating OIDC token. The audience
        * claim identifies the recipients that the JWT is intended for. The
@@ -811,18 +885,22 @@ public java.lang.String getAudience() {
        * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The audience to set. * @return This builder for chaining. */ - public Builder setAudience( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudience(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audience_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. Audience to be used when generating OIDC token. The audience
        * claim identifies the recipients that the JWT is intended for. The
@@ -834,6 +912,7 @@ public Builder setAudience(
        * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAudience() { @@ -843,6 +922,8 @@ public Builder clearAudience() { return this; } /** + * + * *
        * Optional. Audience to be used when generating OIDC token. The audience
        * claim identifies the recipients that the JWT is intended for. The
@@ -854,18 +935,21 @@ public Builder clearAudience() {
        * 
* * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for audience to set. * @return This builder for chaining. */ - public Builder setAudienceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudienceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audience_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -878,12 +962,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.OidcToken) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.OidcToken) private static final com.google.pubsub.v1.PushConfig.OidcToken DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig.OidcToken(); } @@ -892,27 +976,28 @@ public static com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OidcToken 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OidcToken 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; @@ -927,14 +1012,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PubsubWrapperOrBuilder extends + public interface PubsubWrapperOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.PubsubWrapper) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * The payload to the push endpoint is in the form of the JSON representation
    * of a PubsubMessage
@@ -943,39 +1029,41 @@ public interface PubsubWrapperOrBuilder extends
    *
    * Protobuf type {@code google.pubsub.v1.PushConfig.PubsubWrapper}
    */
-  public static final class PubsubWrapper extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class PubsubWrapper extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.PubsubWrapper)
       PubsubWrapperOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use PubsubWrapper.newBuilder() to construct.
     private PubsubWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private PubsubWrapper() {
-    }
+
+    private PubsubWrapper() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new PubsubWrapper();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.PushConfig.PubsubWrapper.class, com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder.class);
+              com.google.pubsub.v1.PushConfig.PubsubWrapper.class,
+              com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -987,8 +1075,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       getUnknownFields().writeTo(output);
     }
 
@@ -1006,12 +1093,13 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.pubsub.v1.PushConfig.PubsubWrapper)) {
         return super.equals(obj);
       }
-      com.google.pubsub.v1.PushConfig.PubsubWrapper other = (com.google.pubsub.v1.PushConfig.PubsubWrapper) obj;
+      com.google.pubsub.v1.PushConfig.PubsubWrapper other =
+          (com.google.pubsub.v1.PushConfig.PubsubWrapper) obj;
 
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -1029,90 +1117,94 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(
-        java.nio.ByteBuffer data)
+    public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        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.PushConfig.PubsubWrapper parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.pubsub.v1.PushConfig.PubsubWrapper 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.PushConfig.PubsubWrapper parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(java.io.InputStream input)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
+
     public static Builder newBuilder(com.google.pubsub.v1.PushConfig.PubsubWrapper prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -1122,6 +1214,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * The payload to the push endpoint is in the form of the JSON representation
      * of a PubsubMessage
@@ -1130,33 +1224,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.pubsub.v1.PushConfig.PubsubWrapper}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.PubsubWrapper)
         com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.pubsub.v1.PushConfig.PubsubWrapper.class, com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder.class);
+                com.google.pubsub.v1.PushConfig.PubsubWrapper.class,
+                com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder.class);
       }
 
       // Construct using com.google.pubsub.v1.PushConfig.PubsubWrapper.newBuilder()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1164,9 +1258,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor;
       }
 
       @java.lang.Override
@@ -1185,7 +1279,8 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper build() {
 
       @java.lang.Override
       public com.google.pubsub.v1.PushConfig.PubsubWrapper buildPartial() {
-        com.google.pubsub.v1.PushConfig.PubsubWrapper result = new com.google.pubsub.v1.PushConfig.PubsubWrapper(this);
+        com.google.pubsub.v1.PushConfig.PubsubWrapper result =
+            new com.google.pubsub.v1.PushConfig.PubsubWrapper(this);
         onBuilt();
         return result;
       }
@@ -1194,38 +1289,41 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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.PushConfig.PubsubWrapper) {
-          return mergeFrom((com.google.pubsub.v1.PushConfig.PubsubWrapper)other);
+          return mergeFrom((com.google.pubsub.v1.PushConfig.PubsubWrapper) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1233,7 +1331,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.pubsub.v1.PushConfig.PubsubWrapper other) {
-        if (other == com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance()) return this;
+        if (other == com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance())
+          return this;
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -1260,12 +1359,13 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -1275,6 +1375,7 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1287,12 +1388,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.PubsubWrapper)
     }
 
     // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.PubsubWrapper)
     private static final com.google.pubsub.v1.PushConfig.PubsubWrapper DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig.PubsubWrapper();
     }
@@ -1301,27 +1402,28 @@ public static com.google.pubsub.v1.PushConfig.PubsubWrapper getDefaultInstance()
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public PubsubWrapper 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();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public PubsubWrapper 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;
@@ -1336,14 +1438,16 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.pubsub.v1.PushConfig.PubsubWrapper getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface NoWrapperOrBuilder extends
+  public interface NoWrapperOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.NoWrapper)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. When true, writes the Pub/Sub message metadata to
      * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
@@ -1351,52 +1455,58 @@ public interface NoWrapperOrBuilder extends
      * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ boolean getWriteMetadata(); } /** + * + * *
    * Sets the `data` field as the HTTP body for delivery.
    * 
* * Protobuf type {@code google.pubsub.v1.PushConfig.NoWrapper} */ - public static final class NoWrapper extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class NoWrapper extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.NoWrapper) NoWrapperOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NoWrapper.newBuilder() to construct. private NoWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NoWrapper() { - } + + private NoWrapper() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NoWrapper(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PushConfig.NoWrapper.class, com.google.pubsub.v1.PushConfig.NoWrapper.Builder.class); + com.google.pubsub.v1.PushConfig.NoWrapper.class, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder.class); } public static final int WRITE_METADATA_FIELD_NUMBER = 1; private boolean writeMetadata_ = false; /** + * + * *
      * Optional. When true, writes the Pub/Sub message metadata to
      * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
@@ -1404,6 +1514,7 @@ protected java.lang.Object newInstance(
      * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ @java.lang.Override @@ -1412,6 +1523,7 @@ public boolean getWriteMetadata() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1423,8 +1535,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (writeMetadata_ != false) { output.writeBool(1, writeMetadata_); } @@ -1438,8 +1549,7 @@ public int getSerializedSize() { size = 0; if (writeMetadata_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, writeMetadata_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, writeMetadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1449,15 +1559,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PushConfig.NoWrapper)) { return super.equals(obj); } - com.google.pubsub.v1.PushConfig.NoWrapper other = (com.google.pubsub.v1.PushConfig.NoWrapper) obj; + com.google.pubsub.v1.PushConfig.NoWrapper other = + (com.google.pubsub.v1.PushConfig.NoWrapper) obj; - if (getWriteMetadata() - != other.getWriteMetadata()) return false; + if (getWriteMetadata() != other.getWriteMetadata()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1470,97 +1580,100 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWriteMetadata()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PushConfig.NoWrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig.NoWrapper 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.PushConfig.NoWrapper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.PushConfig.NoWrapper parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.PushConfig.NoWrapper parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.NoWrapper parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PushConfig.NoWrapper prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1570,39 +1683,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Sets the `data` field as the HTTP body for delivery.
      * 
* * Protobuf type {@code google.pubsub.v1.PushConfig.NoWrapper} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.NoWrapper) com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PushConfig.NoWrapper.class, com.google.pubsub.v1.PushConfig.NoWrapper.Builder.class); + com.google.pubsub.v1.PushConfig.NoWrapper.class, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder.class); } // Construct using com.google.pubsub.v1.PushConfig.NoWrapper.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1612,9 +1727,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; } @java.lang.Override @@ -1633,8 +1748,11 @@ public com.google.pubsub.v1.PushConfig.NoWrapper build() { @java.lang.Override public com.google.pubsub.v1.PushConfig.NoWrapper buildPartial() { - com.google.pubsub.v1.PushConfig.NoWrapper result = new com.google.pubsub.v1.PushConfig.NoWrapper(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.PushConfig.NoWrapper result = + new com.google.pubsub.v1.PushConfig.NoWrapper(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1650,38 +1768,41 @@ private void buildPartial0(com.google.pubsub.v1.PushConfig.NoWrapper result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PushConfig.NoWrapper) { - return mergeFrom((com.google.pubsub.v1.PushConfig.NoWrapper)other); + return mergeFrom((com.google.pubsub.v1.PushConfig.NoWrapper) other); } else { super.mergeFrom(other); return this; @@ -1719,17 +1840,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - writeMetadata_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + writeMetadata_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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) { @@ -1739,10 +1862,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean writeMetadata_ ; + private boolean writeMetadata_; /** + * + * *
        * Optional. When true, writes the Pub/Sub message metadata to
        * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
@@ -1750,6 +1876,7 @@ public Builder mergeFrom(
        * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The writeMetadata. */ @java.lang.Override @@ -1757,6 +1884,8 @@ public boolean getWriteMetadata() { return writeMetadata_; } /** + * + * *
        * Optional. When true, writes the Pub/Sub message metadata to
        * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
@@ -1764,6 +1893,7 @@ public boolean getWriteMetadata() {
        * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The writeMetadata to set. * @return This builder for chaining. */ @@ -1775,6 +1905,8 @@ public Builder setWriteMetadata(boolean value) { return this; } /** + * + * *
        * Optional. When true, writes the Pub/Sub message metadata to
        * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
@@ -1782,6 +1914,7 @@ public Builder setWriteMetadata(boolean value) {
        * 
* * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWriteMetadata() { @@ -1790,6 +1923,7 @@ public Builder clearWriteMetadata() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1802,12 +1936,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.NoWrapper) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.NoWrapper) private static final com.google.pubsub.v1.PushConfig.NoWrapper DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig.NoWrapper(); } @@ -1816,27 +1950,28 @@ public static com.google.pubsub.v1.PushConfig.NoWrapper getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NoWrapper 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NoWrapper 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; @@ -1851,18 +1986,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PushConfig.NoWrapper getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int authenticationMethodCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object authenticationMethod_; + public enum AuthenticationMethodCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { OIDC_TOKEN(3), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; + private AuthenticationMethodCase(int value) { this.value = value; } @@ -1878,32 +2016,38 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 3: return OIDC_TOKEN; - case 0: return AUTHENTICATIONMETHOD_NOT_SET; - default: return null; + case 3: + return OIDC_TOKEN; + case 0: + return AUTHENTICATIONMETHOD_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AuthenticationMethodCase - getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber( - authenticationMethodCase_); + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); } private int wrapperCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object wrapper_; + public enum WrapperCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_WRAPPER(4), NO_WRAPPER(5), WRAPPER_NOT_SET(0); private final int value; + private WrapperCase(int value) { this.value = value; } @@ -1919,33 +2063,40 @@ public static WrapperCase valueOf(int value) { public static WrapperCase forNumber(int value) { switch (value) { - case 4: return PUBSUB_WRAPPER; - case 5: return NO_WRAPPER; - case 0: return WRAPPER_NOT_SET; - default: return null; + case 4: + return PUBSUB_WRAPPER; + case 5: + return NO_WRAPPER; + case 0: + return WRAPPER_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public WrapperCase - getWrapperCase() { - return WrapperCase.forNumber( - wrapperCase_); + public WrapperCase getWrapperCase() { + return WrapperCase.forNumber(wrapperCase_); } public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object pushEndpoint_ = ""; /** + * + * *
    * Optional. A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pushEndpoint. */ @java.lang.Override @@ -1954,30 +2105,30 @@ public java.lang.String getPushEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pushEndpoint_ = s; return s; } } /** + * + * *
    * Optional. A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pushEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getPushEndpointBytes() { + public com.google.protobuf.ByteString getPushEndpointBytes() { java.lang.Object ref = pushEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pushEndpoint_ = b; return b; } else { @@ -1986,32 +2137,34 @@ public java.lang.String getPushEndpoint() { } public static final int ATTRIBUTES_FIELD_NUMBER = 2; + private static final class AttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { + private com.google.protobuf.MapField attributes_; + + private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } + public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -2036,23 +2189,25 @@ public int getAttributesCount() {
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAttributes().getMap().containsKey(key); } - /** - * Use {@link #getAttributesMap()} instead. - */ + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -2077,13 +2232,16 @@ public java.util.Map getAttributes() {
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -2108,20 +2266,23 @@ public java.util.Map getAttributesMap() {
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAttributesOrDefault( + public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAttributes().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -2146,14 +2307,15 @@ java.lang.String getAttributesOrDefault(
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAttributes().getMap(); + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2162,13 +2324,18 @@ public java.lang.String getAttributesOrThrow( public static final int OIDC_TOKEN_FIELD_NUMBER = 3; /** + * + * *
    * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    * token as an `Authorization` header in the HTTP request for every pushed
    * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the oidcToken field is set. */ @java.lang.Override @@ -2176,48 +2343,62 @@ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } /** + * + * *
    * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    * token as an `Authorization` header in the HTTP request for every pushed
    * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The oidcToken. */ @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { if (authenticationMethodCase_ == 3) { - return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; + return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; } return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); } /** + * + * *
    * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    * token as an `Authorization` header in the HTTP request for every pushed
    * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { if (authenticationMethodCase_ == 3) { - return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; + return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; } return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); } public static final int PUBSUB_WRAPPER_FIELD_NUMBER = 4; /** + * + * *
    * Optional. When set, the payload to the push endpoint is in the form of
    * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pubsubWrapper field is set. */ @java.lang.Override @@ -2225,46 +2406,60 @@ public boolean hasPubsubWrapper() { return wrapperCase_ == 4; } /** + * + * *
    * Optional. When set, the payload to the push endpoint is in the form of
    * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pubsubWrapper. */ @java.lang.Override public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { if (wrapperCase_ == 4) { - return (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_; + return (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_; } return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } /** + * + * *
    * Optional. When set, the payload to the push endpoint is in the form of
    * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder() { if (wrapperCase_ == 4) { - return (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_; + return (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_; } return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } public static final int NO_WRAPPER_FIELD_NUMBER = 5; /** + * + * *
    * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the noWrapper field is set. */ @java.lang.Override @@ -2272,36 +2467,46 @@ public boolean hasNoWrapper() { return wrapperCase_ == 5; } /** + * + * *
    * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The noWrapper. */ @java.lang.Override public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { if (wrapperCase_ == 5) { - return (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_; + return (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_; } return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } /** + * + * *
    * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder() { if (wrapperCase_ == 5) { - return (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_; + return (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_; } return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2313,17 +2518,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushEndpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAttributes(), - AttributesDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); if (authenticationMethodCase_ == 3) { output.writeMessage(3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); } @@ -2345,27 +2545,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushEndpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pushEndpoint_); } - for (java.util.Map.Entry entry - : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry - attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attributes__); + for (java.util.Map.Entry entry : + internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry attributes__ = + AttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__); } if (authenticationMethodCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); } if (wrapperCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_); } if (wrapperCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2375,22 +2578,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PushConfig)) { return super.equals(obj); } com.google.pubsub.v1.PushConfig other = (com.google.pubsub.v1.PushConfig) obj; - if (!getPushEndpoint() - .equals(other.getPushEndpoint())) return false; - if (!internalGetAttributes().equals( - other.internalGetAttributes())) return false; + if (!getPushEndpoint().equals(other.getPushEndpoint())) return false; + if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false; switch (authenticationMethodCase_) { case 3: - if (!getOidcToken() - .equals(other.getOidcToken())) return false; + if (!getOidcToken().equals(other.getOidcToken())) return false; break; case 0: default: @@ -2398,12 +2598,10 @@ public boolean equals(final java.lang.Object obj) { if (!getWrapperCase().equals(other.getWrapperCase())) return false; switch (wrapperCase_) { case 4: - if (!getPubsubWrapper() - .equals(other.getPubsubWrapper())) return false; + if (!getPubsubWrapper().equals(other.getPubsubWrapper())) return false; break; case 5: - if (!getNoWrapper() - .equals(other.getNoWrapper())) return false; + if (!getNoWrapper().equals(other.getNoWrapper())) return false; break; case 0: default: @@ -2450,112 +2648,116 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PushConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PushConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.PushConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.PushConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig 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.PushConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PushConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PushConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PushConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PushConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PushConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PushConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for a push delivery endpoint.
    * 
* * Protobuf type {@code google.pubsub.v1.PushConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig) com.google.pubsub.v1.PushConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -2565,10 +2767,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 2: return internalGetAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -2576,28 +2778,26 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 2: return internalGetMutableAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); } // Construct using com.google.pubsub.v1.PushConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2621,9 +2821,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_descriptor; } @java.lang.Override @@ -2643,7 +2843,9 @@ public com.google.pubsub.v1.PushConfig build() { @java.lang.Override public com.google.pubsub.v1.PushConfig buildPartial() { com.google.pubsub.v1.PushConfig result = new com.google.pubsub.v1.PushConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2663,18 +2865,15 @@ private void buildPartial0(com.google.pubsub.v1.PushConfig result) { private void buildPartialOneofs(com.google.pubsub.v1.PushConfig result) { result.authenticationMethodCase_ = authenticationMethodCase_; result.authenticationMethod_ = this.authenticationMethod_; - if (authenticationMethodCase_ == 3 && - oidcTokenBuilder_ != null) { + if (authenticationMethodCase_ == 3 && oidcTokenBuilder_ != null) { result.authenticationMethod_ = oidcTokenBuilder_.build(); } result.wrapperCase_ = wrapperCase_; result.wrapper_ = this.wrapper_; - if (wrapperCase_ == 4 && - pubsubWrapperBuilder_ != null) { + if (wrapperCase_ == 4 && pubsubWrapperBuilder_ != null) { result.wrapper_ = pubsubWrapperBuilder_.build(); } - if (wrapperCase_ == 5 && - noWrapperBuilder_ != null) { + if (wrapperCase_ == 5 && noWrapperBuilder_ != null) { result.wrapper_ = noWrapperBuilder_.build(); } } @@ -2683,38 +2882,39 @@ private void buildPartialOneofs(com.google.pubsub.v1.PushConfig result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.PushConfig) { - return mergeFrom((com.google.pubsub.v1.PushConfig)other); + return mergeFrom((com.google.pubsub.v1.PushConfig) other); } else { super.mergeFrom(other); return this; @@ -2728,30 +2928,34 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { bitField0_ |= 0x00000001; onChanged(); } - internalGetMutableAttributes().mergeFrom( - other.internalGetAttributes()); + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); bitField0_ |= 0x00000002; switch (other.getAuthenticationMethodCase()) { - case OIDC_TOKEN: { - mergeOidcToken(other.getOidcToken()); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: { - break; - } + case OIDC_TOKEN: + { + mergeOidcToken(other.getOidcToken()); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: + { + break; + } } switch (other.getWrapperCase()) { - case PUBSUB_WRAPPER: { - mergePubsubWrapper(other.getPubsubWrapper()); - break; - } - case NO_WRAPPER: { - mergeNoWrapper(other.getNoWrapper()); - break; - } - case WRAPPER_NOT_SET: { - break; - } + case PUBSUB_WRAPPER: + { + mergePubsubWrapper(other.getPubsubWrapper()); + break; + } + case NO_WRAPPER: + { + mergeNoWrapper(other.getNoWrapper()); + break; + } + case WRAPPER_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2779,47 +2983,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - pushEndpoint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - attributes__ = input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAttributes().getMutableMap().put( - attributes__.getKey(), attributes__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getOidcTokenFieldBuilder().getBuilder(), - extensionRegistry); - authenticationMethodCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getPubsubWrapperFieldBuilder().getBuilder(), - extensionRegistry); - wrapperCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getNoWrapperFieldBuilder().getBuilder(), - extensionRegistry); - wrapperCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + pushEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAttributes() + .getMutableMap() + .put(attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getOidcTokenFieldBuilder().getBuilder(), extensionRegistry); + authenticationMethodCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getPubsubWrapperFieldBuilder().getBuilder(), extensionRegistry); + wrapperCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getNoWrapperFieldBuilder().getBuilder(), extensionRegistry); + wrapperCase_ = 5; + break; + } // case 42 + 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) { @@ -2829,12 +3035,12 @@ public Builder mergeFrom( } // finally return this; } + private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public AuthenticationMethodCase - getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber( - authenticationMethodCase_); + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); } public Builder clearAuthenticationMethod() { @@ -2846,10 +3052,9 @@ public Builder clearAuthenticationMethod() { private int wrapperCase_ = 0; private java.lang.Object wrapper_; - public WrapperCase - getWrapperCase() { - return WrapperCase.forNumber( - wrapperCase_); + + public WrapperCase getWrapperCase() { + return WrapperCase.forNumber(wrapperCase_); } public Builder clearWrapper() { @@ -2863,19 +3068,21 @@ public Builder clearWrapper() { private java.lang.Object pushEndpoint_ = ""; /** + * + * *
      * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pushEndpoint. */ public java.lang.String getPushEndpoint() { java.lang.Object ref = pushEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pushEndpoint_ = s; return s; @@ -2884,21 +3091,22 @@ public java.lang.String getPushEndpoint() { } } /** + * + * *
      * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pushEndpoint. */ - public com.google.protobuf.ByteString - getPushEndpointBytes() { + public com.google.protobuf.ByteString getPushEndpointBytes() { java.lang.Object ref = pushEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pushEndpoint_ = b; return b; } else { @@ -2906,30 +3114,37 @@ public java.lang.String getPushEndpoint() { } } /** + * + * *
      * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pushEndpoint to set. * @return This builder for chaining. */ - public Builder setPushEndpoint( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPushEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pushEndpoint_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPushEndpoint() { @@ -2939,18 +3154,22 @@ public Builder clearPushEndpoint() { return this; } /** + * + * *
      * Optional. A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pushEndpoint to set. * @return This builder for chaining. */ - public Builder setPushEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pushEndpoint_ = value; bitField0_ |= 0x00000001; @@ -2958,8 +3177,8 @@ public Builder setPushEndpointBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField attributes_; + private com.google.protobuf.MapField internalGetAttributes() { if (attributes_ == null) { @@ -2968,11 +3187,12 @@ public Builder setPushEndpointBytes( } return attributes_; } + private com.google.protobuf.MapField internalGetMutableAttributes() { if (attributes_ == null) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); + attributes_ = + com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); @@ -2981,10 +3201,13 @@ public Builder setPushEndpointBytes( onChanged(); return attributes_; } + public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
      * Optional. Endpoint configuration attributes that can be used to control
      * different aspects of the message delivery.
@@ -3009,23 +3232,25 @@ public int getAttributesCount() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAttributes().getMap().containsKey(key); } - /** - * Use {@link #getAttributesMap()} instead. - */ + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** + * + * *
      * Optional. Endpoint configuration attributes that can be used to control
      * different aspects of the message delivery.
@@ -3050,13 +3275,16 @@ public java.util.Map getAttributes() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** + * + * *
      * Optional. Endpoint configuration attributes that can be used to control
      * different aspects of the message delivery.
@@ -3081,20 +3309,23 @@ public java.util.Map getAttributesMap() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAttributesOrDefault( + public /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAttributes().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Endpoint configuration attributes that can be used to control
      * different aspects of the message delivery.
@@ -3119,26 +3350,29 @@ java.lang.String getAttributesOrDefault(
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAttributes().getMap(); + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableAttributes().getMutableMap() - .clear(); + internalGetMutableAttributes().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Endpoint configuration attributes that can be used to control
      * different aspects of the message delivery.
@@ -3163,25 +3397,25 @@ public Builder clearAttributes() {
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAttributes().getMutableMap() - .remove(key); + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAttributes().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAttributes() { + public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } /** + * + * *
      * Optional. Endpoint configuration attributes that can be used to control
      * different aspects of the message delivery.
@@ -3206,19 +3440,23 @@ public Builder removeAttributes(
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributes().getMutableMap() - .put(key, value); + public Builder putAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAttributes().getMutableMap().put(key, value); bitField0_ |= 0x00000002; return this; } /** + * + * *
      * Optional. Endpoint configuration attributes that can be used to control
      * different aspects of the message delivery.
@@ -3243,26 +3481,33 @@ public Builder putAttributes(
      * `attributes { "x-goog-version": "v1" }`
      * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAttributes( - java.util.Map values) { - internalGetMutableAttributes().getMutableMap() - .putAll(values); + public Builder putAllAttributes(java.util.Map values) { + internalGetMutableAttributes().getMutableMap().putAll(values); bitField0_ |= 0x00000002; return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.OidcToken, com.google.pubsub.v1.PushConfig.OidcToken.Builder, com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder> oidcTokenBuilder_; + com.google.pubsub.v1.PushConfig.OidcToken, + com.google.pubsub.v1.PushConfig.OidcToken.Builder, + com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder> + oidcTokenBuilder_; /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the oidcToken field is set. */ @java.lang.Override @@ -3270,13 +3515,18 @@ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The oidcToken. */ @java.lang.Override @@ -3294,13 +3544,17 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { } } /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { if (oidcTokenBuilder_ == null) { @@ -3316,16 +3570,19 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { return this; } /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setOidcToken( - com.google.pubsub.v1.PushConfig.OidcToken.Builder builderForValue) { + public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder builderForValue) { if (oidcTokenBuilder_ == null) { authenticationMethod_ = builderForValue.build(); onChanged(); @@ -3336,20 +3593,28 @@ public Builder setOidcToken( return this; } /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { if (oidcTokenBuilder_ == null) { - if (authenticationMethodCase_ == 3 && - authenticationMethod_ != com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance()) { - authenticationMethod_ = com.google.pubsub.v1.PushConfig.OidcToken.newBuilder((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_) - .mergeFrom(value).buildPartial(); + if (authenticationMethodCase_ == 3 + && authenticationMethod_ + != com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance()) { + authenticationMethod_ = + com.google.pubsub.v1.PushConfig.OidcToken.newBuilder( + (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_) + .mergeFrom(value) + .buildPartial(); } else { authenticationMethod_ = value; } @@ -3365,13 +3630,17 @@ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { return this; } /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOidcToken() { if (oidcTokenBuilder_ == null) { @@ -3390,25 +3659,33 @@ public Builder clearOidcToken() { return this; } /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() { return getOidcTokenFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { @@ -3422,23 +3699,32 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( } } /** + * + * *
      * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
      * token as an `Authorization` header in the HTTP request for every pushed
      * message.
      * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.OidcToken, com.google.pubsub.v1.PushConfig.OidcToken.Builder, com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder> + com.google.pubsub.v1.PushConfig.OidcToken, + com.google.pubsub.v1.PushConfig.OidcToken.Builder, + com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder> getOidcTokenFieldBuilder() { if (oidcTokenBuilder_ == null) { if (!(authenticationMethodCase_ == 3)) { authenticationMethod_ = com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); } - oidcTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.OidcToken, com.google.pubsub.v1.PushConfig.OidcToken.Builder, com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder>( + oidcTokenBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.OidcToken, + com.google.pubsub.v1.PushConfig.OidcToken.Builder, + com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder>( (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_, getParentForChildren(), isClean()); @@ -3450,15 +3736,23 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.PubsubWrapper, com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder> pubsubWrapperBuilder_; + com.google.pubsub.v1.PushConfig.PubsubWrapper, + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, + com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder> + pubsubWrapperBuilder_; /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pubsubWrapper field is set. */ @java.lang.Override @@ -3466,13 +3760,18 @@ public boolean hasPubsubWrapper() { return wrapperCase_ == 4; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pubsubWrapper. */ @java.lang.Override @@ -3490,13 +3789,17 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { } } /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper value) { if (pubsubWrapperBuilder_ == null) { @@ -3512,13 +3815,17 @@ public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper va return this; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPubsubWrapper( com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder builderForValue) { @@ -3532,20 +3839,27 @@ public Builder setPubsubWrapper( return this; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper value) { if (pubsubWrapperBuilder_ == null) { - if (wrapperCase_ == 4 && - wrapper_ != com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance()) { - wrapper_ = com.google.pubsub.v1.PushConfig.PubsubWrapper.newBuilder((com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_) - .mergeFrom(value).buildPartial(); + if (wrapperCase_ == 4 + && wrapper_ != com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance()) { + wrapper_ = + com.google.pubsub.v1.PushConfig.PubsubWrapper.newBuilder( + (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_) + .mergeFrom(value) + .buildPartial(); } else { wrapper_ = value; } @@ -3561,13 +3875,17 @@ public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper return this; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPubsubWrapper() { if (pubsubWrapperBuilder_ == null) { @@ -3586,25 +3904,33 @@ public Builder clearPubsubWrapper() { return this; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBuilder() { return getPubsubWrapperFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder() { @@ -3618,23 +3944,32 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr } } /** + * + * *
      * Optional. When set, the payload to the push endpoint is in the form of
      * the JSON representation of a PubsubMessage
      * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
      * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.PubsubWrapper, com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder> + com.google.pubsub.v1.PushConfig.PubsubWrapper, + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, + com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder> getPubsubWrapperFieldBuilder() { if (pubsubWrapperBuilder_ == null) { if (!(wrapperCase_ == 4)) { wrapper_ = com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } - pubsubWrapperBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.PubsubWrapper, com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder>( + pubsubWrapperBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.PubsubWrapper, + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, + com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder>( (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_, getParentForChildren(), isClean()); @@ -3646,13 +3981,21 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.NoWrapper, com.google.pubsub.v1.PushConfig.NoWrapper.Builder, com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> noWrapperBuilder_; + com.google.pubsub.v1.PushConfig.NoWrapper, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder, + com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> + noWrapperBuilder_; /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the noWrapper field is set. */ @java.lang.Override @@ -3660,11 +4003,16 @@ public boolean hasNoWrapper() { return wrapperCase_ == 5; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The noWrapper. */ @java.lang.Override @@ -3682,11 +4030,15 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { } } /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { if (noWrapperBuilder_ == null) { @@ -3702,14 +4054,17 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { return this; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNoWrapper( - com.google.pubsub.v1.PushConfig.NoWrapper.Builder builderForValue) { + public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper.Builder builderForValue) { if (noWrapperBuilder_ == null) { wrapper_ = builderForValue.build(); onChanged(); @@ -3720,18 +4075,25 @@ public Builder setNoWrapper( return this; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { if (noWrapperBuilder_ == null) { - if (wrapperCase_ == 5 && - wrapper_ != com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance()) { - wrapper_ = com.google.pubsub.v1.PushConfig.NoWrapper.newBuilder((com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_) - .mergeFrom(value).buildPartial(); + if (wrapperCase_ == 5 + && wrapper_ != com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance()) { + wrapper_ = + com.google.pubsub.v1.PushConfig.NoWrapper.newBuilder( + (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_) + .mergeFrom(value) + .buildPartial(); } else { wrapper_ = value; } @@ -3747,11 +4109,15 @@ public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { return this; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNoWrapper() { if (noWrapperBuilder_ == null) { @@ -3770,21 +4136,29 @@ public Builder clearNoWrapper() { return this; } /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { return getNoWrapperFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder() { @@ -3798,21 +4172,30 @@ public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder( } } /** + * + * *
      * Optional. When set, the payload to the push endpoint is not wrapped.
      * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.NoWrapper, com.google.pubsub.v1.PushConfig.NoWrapper.Builder, com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> + com.google.pubsub.v1.PushConfig.NoWrapper, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder, + com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> getNoWrapperFieldBuilder() { if (noWrapperBuilder_ == null) { if (!(wrapperCase_ == 5)) { wrapper_ = com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } - noWrapperBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig.NoWrapper, com.google.pubsub.v1.PushConfig.NoWrapper.Builder, com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder>( + noWrapperBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.NoWrapper, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder, + com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder>( (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_, getParentForChildren(), isClean()); @@ -3822,9 +4205,9 @@ public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder( onChanged(); return noWrapperBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3834,12 +4217,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig) private static final com.google.pubsub.v1.PushConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig(); } @@ -3848,27 +4231,27 @@ public static com.google.pubsub.v1.PushConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PushConfig 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PushConfig 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; @@ -3883,6 +4266,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 9f3385b32..6fa337bfd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,36 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface PushConfigOrBuilder extends +public interface PushConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pushEndpoint. */ java.lang.String getPushEndpoint(); /** + * + * *
    * Optional. A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pushEndpoint. */ - com.google.protobuf.ByteString - getPushEndpointBytes(); + com.google.protobuf.ByteString getPushEndpointBytes(); /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -55,10 +78,13 @@ public interface PushConfigOrBuilder extends
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAttributesCount(); /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -83,17 +109,16 @@ public interface PushConfigOrBuilder extends
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAttributes( - java.lang.String key); - /** - * Use {@link #getAttributesMap()} instead. + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAttributes(); + java.util.Map getAttributes(); /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -118,11 +143,13 @@ boolean containsAttributes(
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getAttributesMap(); + java.util.Map getAttributesMap(); /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -147,14 +174,17 @@ boolean containsAttributes(
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getAttributesOrDefault( + java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Endpoint configuration attributes that can be used to control
    * different aspects of the message delivery.
@@ -179,101 +209,143 @@ java.lang.String getAttributesOrDefault(
    * `attributes { "x-goog-version": "v1" }`
    * 
* - * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getAttributesOrThrow( - java.lang.String key); + java.lang.String getAttributesOrThrow(java.lang.String key); /** + * + * *
    * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    * token as an `Authorization` header in the HTTP request for every pushed
    * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the oidcToken field is set. */ boolean hasOidcToken(); /** + * + * *
    * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    * token as an `Authorization` header in the HTTP request for every pushed
    * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The oidcToken. */ com.google.pubsub.v1.PushConfig.OidcToken getOidcToken(); /** + * + * *
    * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    * token as an `Authorization` header in the HTTP request for every pushed
    * message.
    * 
* - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(); /** + * + * *
    * Optional. When set, the payload to the push endpoint is in the form of
    * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pubsubWrapper field is set. */ boolean hasPubsubWrapper(); /** + * + * *
    * Optional. When set, the payload to the push endpoint is in the form of
    * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pubsubWrapper. */ com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper(); /** + * + * *
    * Optional. When set, the payload to the push endpoint is in the form of
    * the JSON representation of a PubsubMessage
    * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    * 
* - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder(); /** + * + * *
    * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the noWrapper field is set. */ boolean hasNoWrapper(); /** + * + * *
    * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The noWrapper. */ com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper(); /** + * + * *
    * Optional. When set, the payload to the push endpoint is not wrapped.
    * 
* - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 876e89a54..c29968fa1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,63 @@ package com.google.pubsub.v1; /** + * + * *
  * A message and its corresponding acknowledgment ID.
  * 
* * Protobuf type {@code google.pubsub.v1.ReceivedMessage} */ -public final class ReceivedMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReceivedMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ReceivedMessage) ReceivedMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReceivedMessage.newBuilder() to construct. private ReceivedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReceivedMessage() { ackId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReceivedMessage(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ReceivedMessage.class, com.google.pubsub.v1.ReceivedMessage.Builder.class); + com.google.pubsub.v1.ReceivedMessage.class, + com.google.pubsub.v1.ReceivedMessage.Builder.class); } private int bitField0_; public static final int ACK_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object ackId_ = ""; /** + * + * *
    * Optional. This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ackId. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getAckId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ackId_ = s; return s; } } /** + * + * *
    * Optional. This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ackId. */ @java.lang.Override - public com.google.protobuf.ByteString - getAckIdBytes() { + public com.google.protobuf.ByteString getAckIdBytes() { java.lang.Object ref = ackId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ackId_ = b; return b; } else { @@ -95,11 +118,15 @@ public java.lang.String getAckId() { public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.pubsub.v1.PubsubMessage message_; /** + * + * *
    * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the message field is set. */ @java.lang.Override @@ -107,11 +134,15 @@ public boolean hasMessage() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The message. */ @java.lang.Override @@ -119,11 +150,14 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } /** + * + * *
    * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { @@ -133,6 +167,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 3; private int deliveryAttempt_ = 0; /** + * + * *
    * Optional. The approximate number of times that Pub/Sub has attempted to
    * deliver the associated message to a subscriber.
@@ -153,6 +189,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
    * 
* * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The deliveryAttempt. */ @java.lang.Override @@ -161,6 +198,7 @@ public int getDeliveryAttempt() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackId_); } @@ -196,12 +233,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMessage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage()); } if (deliveryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, deliveryAttempt_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, deliveryAttempt_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,22 +246,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ReceivedMessage)) { return super.equals(obj); } com.google.pubsub.v1.ReceivedMessage other = (com.google.pubsub.v1.ReceivedMessage) obj; - if (!getAckId() - .equals(other.getAckId())) return false; + if (!getAckId().equals(other.getAckId())) return false; if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; } - if (getDeliveryAttempt() - != other.getDeliveryAttempt()) return false; + if (getDeliveryAttempt() != other.getDeliveryAttempt()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,120 +283,126 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ReceivedMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ReceivedMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ReceivedMessage parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.ReceivedMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ReceivedMessage 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.ReceivedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ReceivedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A message and its corresponding acknowledgment ID.
    * 
* * Protobuf type {@code google.pubsub.v1.ReceivedMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ReceivedMessage) com.google.pubsub.v1.ReceivedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ReceivedMessage.class, com.google.pubsub.v1.ReceivedMessage.Builder.class); + com.google.pubsub.v1.ReceivedMessage.class, + com.google.pubsub.v1.ReceivedMessage.Builder.class); } // Construct using com.google.pubsub.v1.ReceivedMessage.newBuilder() @@ -372,17 +410,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMessageFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +436,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override @@ -420,7 +458,9 @@ public com.google.pubsub.v1.ReceivedMessage build() { @java.lang.Override public com.google.pubsub.v1.ReceivedMessage buildPartial() { com.google.pubsub.v1.ReceivedMessage result = new com.google.pubsub.v1.ReceivedMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,9 +472,7 @@ private void buildPartial0(com.google.pubsub.v1.ReceivedMessage result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.message_ = messageBuilder_ == null - ? message_ - : messageBuilder_.build(); + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -447,38 +485,39 @@ private void buildPartial0(com.google.pubsub.v1.ReceivedMessage result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ReceivedMessage) { - return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); + return mergeFrom((com.google.pubsub.v1.ReceivedMessage) other); } else { super.mergeFrom(other); return this; @@ -524,29 +563,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - ackId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMessageFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - deliveryAttempt_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + ackId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + deliveryAttempt_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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) { @@ -556,22 +597,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object ackId_ = ""; /** + * + * *
      * Optional. This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ackId. */ public java.lang.String getAckId() { java.lang.Object ref = ackId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ackId_ = s; return s; @@ -580,20 +624,21 @@ public java.lang.String getAckId() { } } /** + * + * *
      * Optional. This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ackId. */ - public com.google.protobuf.ByteString - getAckIdBytes() { + public com.google.protobuf.ByteString getAckIdBytes() { java.lang.Object ref = ackId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ackId_ = b; return b; } else { @@ -601,28 +646,35 @@ public java.lang.String getAckId() { } } /** + * + * *
      * Optional. This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ackId to set. * @return This builder for chaining. */ - public Builder setAckId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAckId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ackId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAckId() { @@ -632,17 +684,21 @@ public Builder clearAckId() { return this; } /** + * + * *
      * Optional. This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for ackId to set. * @return This builder for chaining. */ - public Builder setAckIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAckIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ackId_ = value; bitField0_ |= 0x00000001; @@ -652,39 +708,55 @@ public Builder setAckIdBytes( private com.google.pubsub.v1.PubsubMessage message_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messageBuilder_; + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder> + messageBuilder_; /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The message. */ public com.google.pubsub.v1.PubsubMessage getMessage() { if (messageBuilder_ == null) { - return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; + return message_ == null + ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() + : message_; } else { return messageBuilder_.getMessage(); } } /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { @@ -700,14 +772,16 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMessage( - com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); } else { @@ -718,17 +792,20 @@ public Builder setMessage( return this; } /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - message_ != null && - message_ != com.google.pubsub.v1.PubsubMessage.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && message_ != null + && message_ != com.google.pubsub.v1.PubsubMessage.getDefaultInstance()) { getMessageBuilder().mergeFrom(value); } else { message_ = value; @@ -743,11 +820,14 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); @@ -760,11 +840,14 @@ public Builder clearMessage() { return this; } /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { bitField0_ |= 0x00000002; @@ -772,43 +855,55 @@ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { return getMessageFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { - return message_ == null ? - com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; + return message_ == null + ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() + : message_; } } /** + * + * *
      * Optional. The message.
      * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( - getMessage(), - getParentForChildren(), - isClean()); + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } - private int deliveryAttempt_ ; + private int deliveryAttempt_; /** + * + * *
      * Optional. The approximate number of times that Pub/Sub has attempted to
      * deliver the associated message to a subscriber.
@@ -829,6 +924,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
      * 
* * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The deliveryAttempt. */ @java.lang.Override @@ -836,6 +932,8 @@ public int getDeliveryAttempt() { return deliveryAttempt_; } /** + * + * *
      * Optional. The approximate number of times that Pub/Sub has attempted to
      * deliver the associated message to a subscriber.
@@ -856,6 +954,7 @@ public int getDeliveryAttempt() {
      * 
* * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The deliveryAttempt to set. * @return This builder for chaining. */ @@ -867,6 +966,8 @@ public Builder setDeliveryAttempt(int value) { return this; } /** + * + * *
      * Optional. The approximate number of times that Pub/Sub has attempted to
      * deliver the associated message to a subscriber.
@@ -887,6 +988,7 @@ public Builder setDeliveryAttempt(int value) {
      * 
* * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDeliveryAttempt() { @@ -895,9 +997,9 @@ public Builder clearDeliveryAttempt() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -907,12 +1009,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ReceivedMessage) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ReceivedMessage) private static final com.google.pubsub.v1.ReceivedMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ReceivedMessage(); } @@ -921,27 +1023,27 @@ public static com.google.pubsub.v1.ReceivedMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceivedMessage 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceivedMessage 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; @@ -956,6 +1058,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index ddac8233c..c264dbcff 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,61 +1,95 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ReceivedMessageOrBuilder extends +public interface ReceivedMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ReceivedMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ackId. */ java.lang.String getAckId(); /** + * + * *
    * Optional. This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ackId. */ - com.google.protobuf.ByteString - getAckIdBytes(); + com.google.protobuf.ByteString getAckIdBytes(); /** + * + * *
    * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the message field is set. */ boolean hasMessage(); /** + * + * *
    * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The message. */ com.google.pubsub.v1.PubsubMessage getMessage(); /** + * + * *
    * Optional. The message.
    * 
* - * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder(); /** + * + * *
    * Optional. The approximate number of times that Pub/Sub has attempted to
    * deliver the associated message to a subscriber.
@@ -76,6 +110,7 @@ public interface ReceivedMessageOrBuilder extends
    * 
* * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The deliveryAttempt. */ int getDeliveryAttempt(); diff --git a/owl-bot-staging/v1/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 similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 2755995a6..1d732b864 100644 --- a/owl-bot-staging/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,6 +20,8 @@ package com.google.pubsub.v1; /** + * + * *
  * A policy that specifies how Pub/Sub retries message delivery.
  *
@@ -21,34 +38,33 @@
  *
  * Protobuf type {@code google.pubsub.v1.RetryPolicy}
  */
-public final class RetryPolicy extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RetryPolicy extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.RetryPolicy)
     RetryPolicyOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RetryPolicy.newBuilder() to construct.
   private RetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RetryPolicy() {
-  }
+
+  private RetryPolicy() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RetryPolicy();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.pubsub.v1.RetryPolicy.class, com.google.pubsub.v1.RetryPolicy.Builder.class);
   }
@@ -57,12 +73,16 @@ protected java.lang.Object newInstance(
   public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration minimumBackoff_;
   /**
+   *
+   *
    * 
    * Optional. The minimum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the minimumBackoff field is set. */ @java.lang.Override @@ -70,41 +90,56 @@ public boolean hasMinimumBackoff() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. The minimum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The minimumBackoff. */ @java.lang.Override public com.google.protobuf.Duration getMinimumBackoff() { - return minimumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_; + return minimumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumBackoff_; } /** + * + * *
    * Optional. The minimum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { - return minimumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_; + return minimumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumBackoff_; } public static final int MAXIMUM_BACKOFF_FIELD_NUMBER = 2; private com.google.protobuf.Duration maximumBackoff_; /** + * + * *
    * Optional. The maximum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 600
    * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumBackoff field is set. */ @java.lang.Override @@ -112,34 +147,46 @@ public boolean hasMaximumBackoff() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. The maximum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 600
    * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumBackoff. */ @java.lang.Override public com.google.protobuf.Duration getMaximumBackoff() { - return maximumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_; + return maximumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumBackoff_; } /** + * + * *
    * Optional. The maximum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 600
    * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { - return maximumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_; + return maximumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumBackoff_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +198,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMinimumBackoff()); } @@ -169,12 +215,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMinimumBackoff()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinimumBackoff()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaximumBackoff()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumBackoff()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -184,7 +228,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.RetryPolicy)) { return super.equals(obj); @@ -193,13 +237,11 @@ public boolean equals(final java.lang.Object obj) { if (hasMinimumBackoff() != other.hasMinimumBackoff()) return false; if (hasMinimumBackoff()) { - if (!getMinimumBackoff() - .equals(other.getMinimumBackoff())) return false; + if (!getMinimumBackoff().equals(other.getMinimumBackoff())) return false; } if (hasMaximumBackoff() != other.hasMaximumBackoff()) return false; if (hasMaximumBackoff()) { - if (!getMaximumBackoff() - .equals(other.getMaximumBackoff())) return false; + if (!getMaximumBackoff().equals(other.getMaximumBackoff())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -225,99 +267,103 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.RetryPolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.RetryPolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.RetryPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RetryPolicy parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.RetryPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.RetryPolicy 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.RetryPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.RetryPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.RetryPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.RetryPolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.RetryPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.RetryPolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.RetryPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.RetryPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.RetryPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A policy that specifies how Pub/Sub retries message delivery.
    *
@@ -334,21 +380,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.RetryPolicy}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.RetryPolicy)
       com.google.pubsub.v1.RetryPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_RetryPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.RetryPolicy.class, com.google.pubsub.v1.RetryPolicy.Builder.class);
+              com.google.pubsub.v1.RetryPolicy.class,
+              com.google.pubsub.v1.RetryPolicy.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.RetryPolicy.newBuilder()
@@ -356,18 +404,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getMinimumBackoffFieldBuilder();
         getMaximumBackoffFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -386,9 +434,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_RetryPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -408,7 +456,9 @@ public com.google.pubsub.v1.RetryPolicy build() {
     @java.lang.Override
     public com.google.pubsub.v1.RetryPolicy buildPartial() {
       com.google.pubsub.v1.RetryPolicy result = new com.google.pubsub.v1.RetryPolicy(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -417,15 +467,13 @@ private void buildPartial0(com.google.pubsub.v1.RetryPolicy result) {
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.minimumBackoff_ = minimumBackoffBuilder_ == null
-            ? minimumBackoff_
-            : minimumBackoffBuilder_.build();
+        result.minimumBackoff_ =
+            minimumBackoffBuilder_ == null ? minimumBackoff_ : minimumBackoffBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.maximumBackoff_ = maximumBackoffBuilder_ == null
-            ? maximumBackoff_
-            : maximumBackoffBuilder_.build();
+        result.maximumBackoff_ =
+            maximumBackoffBuilder_ == null ? maximumBackoff_ : maximumBackoffBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -435,38 +483,39 @@ private void buildPartial0(com.google.pubsub.v1.RetryPolicy result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.RetryPolicy) {
-        return mergeFrom((com.google.pubsub.v1.RetryPolicy)other);
+        return mergeFrom((com.google.pubsub.v1.RetryPolicy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -507,26 +556,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getMinimumBackoffFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getMaximumBackoffFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getMinimumBackoffFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getMaximumBackoffFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            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) {
@@ -536,46 +584,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.Duration minimumBackoff_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minimumBackoffBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        minimumBackoffBuilder_;
     /**
+     *
+     *
      * 
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the minimumBackoff field is set. */ public boolean hasMinimumBackoff() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The minimumBackoff. */ public com.google.protobuf.Duration getMinimumBackoff() { if (minimumBackoffBuilder_ == null) { - return minimumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_; + return minimumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumBackoff_; } else { return minimumBackoffBuilder_.getMessage(); } } /** + * + * *
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMinimumBackoff(com.google.protobuf.Duration value) { if (minimumBackoffBuilder_ == null) { @@ -591,15 +659,18 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMinimumBackoff( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) { if (minimumBackoffBuilder_ == null) { minimumBackoff_ = builderForValue.build(); } else { @@ -610,18 +681,22 @@ public Builder setMinimumBackoff( return this; } /** + * + * *
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { if (minimumBackoffBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - minimumBackoff_ != null && - minimumBackoff_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && minimumBackoff_ != null + && minimumBackoff_ != com.google.protobuf.Duration.getDefaultInstance()) { getMinimumBackoffBuilder().mergeFrom(value); } else { minimumBackoff_ = value; @@ -636,12 +711,16 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMinimumBackoff() { bitField0_ = (bitField0_ & ~0x00000001); @@ -654,12 +733,16 @@ public Builder clearMinimumBackoff() { return this; } /** + * + * *
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { bitField0_ |= 0x00000001; @@ -667,38 +750,50 @@ public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { return getMinimumBackoffFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { if (minimumBackoffBuilder_ != null) { return minimumBackoffBuilder_.getMessageOrBuilder(); } else { - return minimumBackoff_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_; + return minimumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumBackoff_; } } /** + * + * *
      * Optional. The minimum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMinimumBackoffFieldBuilder() { if (minimumBackoffBuilder_ == null) { - minimumBackoffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMinimumBackoff(), - getParentForChildren(), - isClean()); + minimumBackoffBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinimumBackoff(), getParentForChildren(), isClean()); minimumBackoff_ = null; } return minimumBackoffBuilder_; @@ -706,45 +801,64 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { private com.google.protobuf.Duration maximumBackoff_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumBackoffBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maximumBackoffBuilder_; /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumBackoff field is set. */ public boolean hasMaximumBackoff() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumBackoff. */ public com.google.protobuf.Duration getMaximumBackoff() { if (maximumBackoffBuilder_ == null) { - return maximumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_; + return maximumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumBackoff_; } else { return maximumBackoffBuilder_.getMessage(); } } /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaximumBackoff(com.google.protobuf.Duration value) { if (maximumBackoffBuilder_ == null) { @@ -760,16 +874,19 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMaximumBackoff( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) { if (maximumBackoffBuilder_ == null) { maximumBackoff_ = builderForValue.build(); } else { @@ -780,19 +897,23 @@ public Builder setMaximumBackoff( return this; } /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { if (maximumBackoffBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - maximumBackoff_ != null && - maximumBackoff_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && maximumBackoff_ != null + && maximumBackoff_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaximumBackoffBuilder().mergeFrom(value); } else { maximumBackoff_ = value; @@ -807,13 +928,17 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaximumBackoff() { bitField0_ = (bitField0_ & ~0x00000002); @@ -826,13 +951,17 @@ public Builder clearMaximumBackoff() { return this; } /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { bitField0_ |= 0x00000002; @@ -840,47 +969,59 @@ public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { return getMaximumBackoffFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { if (maximumBackoffBuilder_ != null) { return maximumBackoffBuilder_.getMessageOrBuilder(); } else { - return maximumBackoff_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_; + return maximumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumBackoff_; } } /** + * + * *
      * Optional. The maximum delay between consecutive deliveries of a given
      * message. Value should be between 0 and 600 seconds. Defaults to 600
      * seconds.
      * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMaximumBackoffFieldBuilder() { if (maximumBackoffBuilder_ == null) { - maximumBackoffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMaximumBackoff(), - getParentForChildren(), - isClean()); + maximumBackoffBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaximumBackoff(), getParentForChildren(), isClean()); maximumBackoff_ = null; } return maximumBackoffBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -890,12 +1031,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.RetryPolicy) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.RetryPolicy) private static final com.google.pubsub.v1.RetryPolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.RetryPolicy(); } @@ -904,27 +1045,27 @@ public static com.google.pubsub.v1.RetryPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryPolicy 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryPolicy 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; @@ -939,6 +1080,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.RetryPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 0f76c0ec4..243fada30 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -1,73 +1,111 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface RetryPolicyOrBuilder extends +public interface RetryPolicyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.RetryPolicy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The minimum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the minimumBackoff field is set. */ boolean hasMinimumBackoff(); /** + * + * *
    * Optional. The minimum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The minimumBackoff. */ com.google.protobuf.Duration getMinimumBackoff(); /** + * + * *
    * Optional. The minimum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* - * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder(); /** + * + * *
    * Optional. The maximum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 600
    * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the maximumBackoff field is set. */ boolean hasMaximumBackoff(); /** + * + * *
    * Optional. The maximum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 600
    * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The maximumBackoff. */ com.google.protobuf.Duration getMaximumBackoff(); /** + * + * *
    * Optional. The maximum delay between consecutive deliveries of a given
    * message. Value should be between 0 and 600 seconds. Defaults to 600
    * seconds.
    * 
* - * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index e42b6ee83..c35c26333 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `RollbackSchema` method.
  * 
* * Protobuf type {@code google.pubsub.v1.RollbackSchemaRequest} */ -public final class RollbackSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RollbackSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.RollbackSchemaRequest) RollbackSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RollbackSchemaRequest.newBuilder() to construct. private RollbackSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RollbackSchemaRequest() { name_ = ""; revisionId_ = ""; @@ -27,33 +45,40 @@ private RollbackSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RollbackSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.RollbackSchemaRequest.class, com.google.pubsub.v1.RollbackSchemaRequest.Builder.class); + com.google.pubsub.v1.RollbackSchemaRequest.class, + com.google.pubsub.v1.RollbackSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The schema being rolled back with revision id.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The schema being rolled back with revision id.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,9 +120,12 @@ public java.lang.String getName() { } public static final int REVISION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** + * + * *
    * Required. The revision ID to roll back to.
    * It must be a revision of the same schema.
@@ -104,6 +134,7 @@ public java.lang.String getName() {
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The revisionId. */ @java.lang.Override @@ -112,14 +143,15 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** + * + * *
    * Required. The revision ID to roll back to.
    * It must be a revision of the same schema.
@@ -128,16 +160,15 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -146,6 +177,7 @@ public java.lang.String getRevisionId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,17 +219,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.RollbackSchemaRequest)) { return super.equals(obj); } - com.google.pubsub.v1.RollbackSchemaRequest other = (com.google.pubsub.v1.RollbackSchemaRequest) obj; + com.google.pubsub.v1.RollbackSchemaRequest other = + (com.google.pubsub.v1.RollbackSchemaRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRevisionId() - .equals(other.getRevisionId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -219,132 +249,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.RollbackSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.RollbackSchemaRequest 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.RollbackSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.RollbackSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.RollbackSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.RollbackSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.RollbackSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `RollbackSchema` method.
    * 
* * Protobuf type {@code google.pubsub.v1.RollbackSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.RollbackSchemaRequest) com.google.pubsub.v1.RollbackSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.RollbackSchemaRequest.class, com.google.pubsub.v1.RollbackSchemaRequest.Builder.class); + com.google.pubsub.v1.RollbackSchemaRequest.class, + com.google.pubsub.v1.RollbackSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.RollbackSchemaRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; } @java.lang.Override @@ -376,8 +410,11 @@ public com.google.pubsub.v1.RollbackSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.RollbackSchemaRequest buildPartial() { - com.google.pubsub.v1.RollbackSchemaRequest result = new com.google.pubsub.v1.RollbackSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.RollbackSchemaRequest result = + new com.google.pubsub.v1.RollbackSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -396,38 +433,39 @@ private void buildPartial0(com.google.pubsub.v1.RollbackSchemaRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.RollbackSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.RollbackSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.RollbackSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -472,22 +510,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - revisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -497,22 +538,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The schema being rolled back with revision id.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -521,20 +567,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The schema being rolled back with revision id.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -542,28 +591,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The schema being rolled back with revision id.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The schema being rolled back with revision id.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -573,17 +633,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The schema being rolled back with revision id.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -593,6 +659,8 @@ public Builder setNameBytes( private java.lang.Object revisionId_ = ""; /** + * + * *
      * Required. The revision ID to roll back to.
      * It must be a revision of the same schema.
@@ -601,13 +669,13 @@ public Builder setNameBytes(
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -616,6 +684,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Required. The revision ID to roll back to.
      * It must be a revision of the same schema.
@@ -624,15 +694,14 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -640,6 +709,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Required. The revision ID to roll back to.
      * It must be a revision of the same schema.
@@ -648,18 +719,22 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } revisionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The revision ID to roll back to.
      * It must be a revision of the same schema.
@@ -668,6 +743,7 @@ public Builder setRevisionId(
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRevisionId() { @@ -677,6 +753,8 @@ public Builder clearRevisionId() { return this; } /** + * + * *
      * Required. The revision ID to roll back to.
      * It must be a revision of the same schema.
@@ -685,21 +763,23 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -709,12 +789,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.RollbackSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.RollbackSchemaRequest) private static final com.google.pubsub.v1.RollbackSchemaRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.RollbackSchemaRequest(); } @@ -723,27 +803,27 @@ public static com.google.pubsub.v1.RollbackSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RollbackSchemaRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackSchemaRequest 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; @@ -758,6 +838,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.RollbackSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 6f217e32a..4ee8574d4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -1,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface RollbackSchemaRequestOrBuilder extends +public interface RollbackSchemaRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.RollbackSchemaRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The schema being rolled back with revision id.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The schema being rolled back with revision id.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The revision ID to roll back to.
    * It must be a revision of the same schema.
@@ -37,10 +64,13 @@ public interface RollbackSchemaRequestOrBuilder extends
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The revisionId. */ java.lang.String getRevisionId(); /** + * + * *
    * Required. The revision ID to roll back to.
    * It must be a revision of the same schema.
@@ -49,8 +79,8 @@ public interface RollbackSchemaRequestOrBuilder extends
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString - getRevisionIdBytes(); + com.google.protobuf.ByteString getRevisionIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 1f325e2e3..3966a39d4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * A schema resource.
  * 
* * Protobuf type {@code google.pubsub.v1.Schema} */ -public final class Schema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Schema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Schema) SchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Schema() { name_ = ""; type_ = 0; @@ -29,34 +47,36 @@ private Schema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Schema(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Schema.class, com.google.pubsub.v1.Schema.Builder.class); } /** + * + * *
    * Possible schema definition types.
    * 
* * Protobuf enum {@code google.pubsub.v1.Schema.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -65,6 +85,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * A Protocol Buffer schema definition.
      * 
@@ -73,6 +95,8 @@ public enum Type */ PROTOCOL_BUFFER(1), /** + * + * *
      * An Avro schema definition.
      * 
@@ -84,6 +108,8 @@ public enum Type ; /** + * + * *
      * Default value. This value is unused.
      * 
@@ -92,6 +118,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * A Protocol Buffer schema definition.
      * 
@@ -100,6 +128,8 @@ public enum Type */ public static final int PROTOCOL_BUFFER_VALUE = 1; /** + * + * *
      * An Avro schema definition.
      * 
@@ -108,7 +138,6 @@ public enum Type */ public static final int AVRO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -133,49 +162,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return PROTOCOL_BUFFER; - case 2: return AVRO; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return PROTOCOL_BUFFER; + case 2: + return AVRO; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.Schema.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -194,15 +223,19 @@ private Type(int value) { private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the schema.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -211,30 +244,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the schema.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -245,33 +278,44 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
    * The type of the schema definition.
    * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The type of the schema definition.
    * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return The type. */ - @java.lang.Override public com.google.pubsub.v1.Schema.Type getType() { + @java.lang.Override + public com.google.pubsub.v1.Schema.Type getType() { com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.forNumber(type_); return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; } public static final int DEFINITION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object definition_ = ""; /** + * + * *
    * The definition of the schema. This should contain a string representing
    * the full definition of the schema that is a valid schema definition of
@@ -279,6 +323,7 @@ public java.lang.String getName() {
    * 
* * string definition = 3; + * * @return The definition. */ @java.lang.Override @@ -287,14 +332,15 @@ public java.lang.String getDefinition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); definition_ = s; return s; } } /** + * + * *
    * The definition of the schema. This should contain a string representing
    * the full definition of the schema that is a valid schema definition of
@@ -302,16 +348,15 @@ public java.lang.String getDefinition() {
    * 
* * string definition = 3; + * * @return The bytes for definition. */ @java.lang.Override - public com.google.protobuf.ByteString - getDefinitionBytes() { + public com.google.protobuf.ByteString getDefinitionBytes() { java.lang.Object ref = definition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); definition_ = b; return b; } else { @@ -320,14 +365,20 @@ public java.lang.String getDefinition() { } public static final int REVISION_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** + * + * *
    * Output only. Immutable. The revision ID of the schema.
    * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionId. */ @java.lang.Override @@ -336,29 +387,31 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** + * + * *
    * Output only. Immutable. The revision ID of the schema.
    * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -369,11 +422,16 @@ public java.lang.String getRevisionId() { public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp revisionCreateTime_; /** + * + * *
    * Output only. The timestamp that the revision was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ @java.lang.Override @@ -381,30 +439,44 @@ public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The timestamp that the revision was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevisionCreateTime() { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } /** + * + * *
    * Output only. The timestamp that the revision was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -416,8 +488,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -446,8 +517,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, definition_); @@ -456,8 +526,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getRevisionCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRevisionCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -467,24 +536,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.Schema)) { return super.equals(obj); } com.google.pubsub.v1.Schema other = (com.google.pubsub.v1.Schema) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (!getDefinition() - .equals(other.getDefinition())) return false; - if (!getRevisionId() - .equals(other.getRevisionId())) return false; + if (!getDefinition().equals(other.getDefinition())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; if (hasRevisionCreateTime()) { - if (!getRevisionCreateTime() - .equals(other.getRevisionCreateTime())) return false; + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -514,118 +579,122 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.Schema parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.Schema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Schema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Schema parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.Schema parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Schema 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.Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Schema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.Schema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Schema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Schema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.Schema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.Schema parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.pubsub.v1.Schema parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Schema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.Schema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A schema resource.
    * 
* * Protobuf type {@code google.pubsub.v1.Schema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Schema) com.google.pubsub.v1.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Schema.class, com.google.pubsub.v1.Schema.Builder.class); } @@ -635,17 +704,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRevisionCreateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -663,8 +732,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; } @@ -685,7 +753,9 @@ public com.google.pubsub.v1.Schema build() { @java.lang.Override public com.google.pubsub.v1.Schema buildPartial() { com.google.pubsub.v1.Schema result = new com.google.pubsub.v1.Schema(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -706,9 +776,10 @@ private void buildPartial0(com.google.pubsub.v1.Schema result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.revisionCreateTime_ = revisionCreateTimeBuilder_ == null - ? revisionCreateTime_ - : revisionCreateTimeBuilder_.build(); + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -718,38 +789,39 @@ private void buildPartial0(com.google.pubsub.v1.Schema result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Schema) { - return mergeFrom((com.google.pubsub.v1.Schema)other); + return mergeFrom((com.google.pubsub.v1.Schema) other); } else { super.mergeFrom(other); return this; @@ -805,39 +877,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - definition_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - revisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: { - input.readMessage( - getRevisionCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + definition_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + 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) { @@ -847,23 +924,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -872,21 +952,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -894,30 +975,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -927,18 +1015,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -948,22 +1040,29 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -974,11 +1073,14 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return The type. */ @java.lang.Override @@ -987,11 +1089,14 @@ public com.google.pubsub.v1.Schema.Type getType() { return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; } /** + * + * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1005,11 +1110,14 @@ public Builder setType(com.google.pubsub.v1.Schema.Type value) { return this; } /** + * + * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1021,6 +1129,8 @@ public Builder clearType() { private java.lang.Object definition_ = ""; /** + * + * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1028,13 +1138,13 @@ public Builder clearType() {
      * 
* * string definition = 3; + * * @return The definition. */ public java.lang.String getDefinition() { java.lang.Object ref = definition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); definition_ = s; return s; @@ -1043,6 +1153,8 @@ public java.lang.String getDefinition() { } } /** + * + * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1050,15 +1162,14 @@ public java.lang.String getDefinition() {
      * 
* * string definition = 3; + * * @return The bytes for definition. */ - public com.google.protobuf.ByteString - getDefinitionBytes() { + public com.google.protobuf.ByteString getDefinitionBytes() { java.lang.Object ref = definition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); definition_ = b; return b; } else { @@ -1066,6 +1177,8 @@ public java.lang.String getDefinition() { } } /** + * + * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1073,18 +1186,22 @@ public java.lang.String getDefinition() {
      * 
* * string definition = 3; + * * @param value The definition to set. * @return This builder for chaining. */ - public Builder setDefinition( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDefinition(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } definition_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1092,6 +1209,7 @@ public Builder setDefinition(
      * 
* * string definition = 3; + * * @return This builder for chaining. */ public Builder clearDefinition() { @@ -1101,6 +1219,8 @@ public Builder clearDefinition() { return this; } /** + * + * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1108,12 +1228,14 @@ public Builder clearDefinition() {
      * 
* * string definition = 3; + * * @param value The bytes for definition to set. * @return This builder for chaining. */ - public Builder setDefinitionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDefinitionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); definition_ = value; bitField0_ |= 0x00000004; @@ -1123,18 +1245,22 @@ public Builder setDefinitionBytes( private java.lang.Object revisionId_ = ""; /** + * + * *
      * Output only. Immutable. The revision ID of the schema.
      * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -1143,20 +1269,23 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Output only. Immutable. The revision ID of the schema.
      * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -1164,28 +1293,39 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Output only. Immutable. The revision ID of the schema.
      * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } revisionId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Immutable. The revision ID of the schema.
      * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearRevisionId() { @@ -1195,17 +1335,23 @@ public Builder clearRevisionId() { return this; } /** + * + * *
      * Output only. Immutable. The revision ID of the schema.
      * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000008; @@ -1215,39 +1361,58 @@ public Builder setRevisionIdBytes( private com.google.protobuf.Timestamp revisionCreateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revisionCreateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ public com.google.protobuf.Timestamp getRevisionCreateTime() { if (revisionCreateTimeBuilder_ == null) { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } else { return revisionCreateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { @@ -1263,14 +1428,17 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setRevisionCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (revisionCreateTimeBuilder_ == null) { revisionCreateTime_ = builderForValue.build(); } else { @@ -1281,17 +1449,21 @@ public Builder setRevisionCreateTime( return this; } /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - revisionCreateTime_ != null && - revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getRevisionCreateTimeBuilder().mergeFrom(value); } else { revisionCreateTime_ = value; @@ -1306,11 +1478,15 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRevisionCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1323,11 +1499,15 @@ public Builder clearRevisionCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1335,43 +1515,55 @@ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { return getRevisionCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { if (revisionCreateTimeBuilder_ != null) { return revisionCreateTimeBuilder_.getMessageOrBuilder(); } else { - return revisionCreateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } } /** + * + * *
      * Output only. The timestamp that the revision was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getRevisionCreateTimeFieldBuilder() { if (revisionCreateTimeBuilder_ == null) { - revisionCreateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRevisionCreateTime(), - getParentForChildren(), - isClean()); + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); revisionCreateTime_ = null; } return revisionCreateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1381,12 +1573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Schema) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.Schema) private static final com.google.pubsub.v1.Schema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.Schema(); } @@ -1395,27 +1587,27 @@ public static com.google.pubsub.v1.Schema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema 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; @@ -1430,6 +1622,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 6e843ef3d..10e502b33 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,55 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface SchemaOrBuilder extends +public interface SchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Schema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the schema.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the schema.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The type of the schema definition.
    * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of the schema definition.
    * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return The type. */ com.google.pubsub.v1.Schema.Type getType(); /** + * + * *
    * The definition of the schema. This should contain a string representing
    * the full definition of the schema that is a valid schema definition of
@@ -57,10 +86,13 @@ public interface SchemaOrBuilder extends
    * 
* * string definition = 3; + * * @return The definition. */ java.lang.String getDefinition(); /** + * + * *
    * The definition of the schema. This should contain a string representing
    * the full definition of the schema that is a valid schema definition of
@@ -68,55 +100,78 @@ public interface SchemaOrBuilder extends
    * 
* * string definition = 3; + * * @return The bytes for definition. */ - com.google.protobuf.ByteString - getDefinitionBytes(); + com.google.protobuf.ByteString getDefinitionBytes(); /** + * + * *
    * Output only. Immutable. The revision ID of the schema.
    * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionId. */ java.lang.String getRevisionId(); /** + * + * *
    * Output only. Immutable. The revision ID of the schema.
    * 
* - * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString - getRevisionIdBytes(); + com.google.protobuf.ByteString getRevisionIdBytes(); /** + * + * *
    * Output only. The timestamp that the revision was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ boolean hasRevisionCreateTime(); /** + * + * *
    * Output only. The timestamp that the revision was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ com.google.protobuf.Timestamp getRevisionCreateTime(); /** + * + * *
    * Output only. The timestamp that the revision was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java new file mode 100644 index 000000000..499013ca6 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -0,0 +1,353 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public final class SchemaProto { + private SchemaProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Schema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Schema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\035google/pubsub/v1/schema.proto\022\020google." + + "pubsub.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\033google/protobuf/empty.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\276\002\n\006Schema\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022+\n\004type\030\002 \001(\0162\035.google" + + ".pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001" + + "(\t\022\032\n\013revision_id\030\004 \001(\tB\005\342A\002\005\003\022>\n\024revisi" + + "on_create_time\030\006 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC" + + "\n\034pubsub.googleapis.com/Schema\022#projects" + + "/{project}/schemas/{schema}\"\217\001\n\023CreateSc" + + "hemaRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\022\034pu" + + "bsub.googleapis.com/Schema\022.\n\006schema\030\002 \001" + + "(\0132\030.google.pubsub.v1.SchemaB\004\342A\001\002\022\021\n\tsc" + + "hema_id\030\003 \001(\t\"s\n\020GetSchemaRequest\0223\n\004nam" + + "e\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/" + + "Schema\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1." + + "SchemaView\"\255\001\n\022ListSchemasRequest\022D\n\006par" + + "ent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager" + + ".googleapis.com/Project\022*\n\004view\030\002 \001(\0162\034." + + "google.pubsub.v1.SchemaView\022\021\n\tpage_size" + + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchema" + + "sResponse\022)\n\007schemas\030\001 \003(\0132\030.google.pubs" + + "ub.v1.Schema\022\027\n\017next_page_token\030\002 \001(\t\"\244\001" + + "\n\032ListSchemaRevisionsRequest\0223\n\004name\030\001 \001" + + "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" + + "a\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Schem" + + "aView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004" + + " \001(\t\"a\n\033ListSchemaRevisionsResponse\022)\n\007s" + + "chemas\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027" + + "\n\017next_page_token\030\002 \001(\t\"z\n\023CommitSchemaR" + + "equest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.go" + + "ogleapis.com/Schema\022.\n\006schema\030\002 \001(\0132\030.go" + + "ogle.pubsub.v1.SchemaB\004\342A\001\002\"g\n\025RollbackS" + + "chemaRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pub" + + "sub.googleapis.com/Schema\022\031\n\013revision_id" + + "\030\002 \001(\tB\004\342A\001\002\"o\n\033DeleteSchemaRevisionRequ" + + "est\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022\033\n\013revision_id\030\002 \001(\tB\006\030" + + "\001\342A\001\001\"J\n\023DeleteSchemaRequest\0223\n\004name\030\001 \001" + + "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" + + "a\"\215\001\n\025ValidateSchemaRequest\022D\n\006parent\030\001 " + + "\001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.googl" + + "eapis.com/Project\022.\n\006schema\030\002 \001(\0132\030.goog" + + "le.pubsub.v1.SchemaB\004\342A\001\002\"\030\n\026ValidateSch" + + "emaResponse\"\213\002\n\026ValidateMessageRequest\022D" + + "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\0221\n\004name\030\002 \001" + + "(\tB!\372A\036\n\034pubsub.googleapis.com/SchemaH\000\022" + + "*\n\006schema\030\003 \001(\0132\030.google.pubsub.v1.Schem" + + "aH\000\022\017\n\007message\030\004 \001(\014\022,\n\010encoding\030\005 \001(\0162\032" + + ".google.pubsub.v1.EncodingB\r\n\013schema_spe" + + "c\"\031\n\027ValidateMessageResponse*>\n\nSchemaVi" + + "ew\022\033\n\027SCHEMA_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC" + + "\020\001\022\010\n\004FULL\020\002*:\n\010Encoding\022\030\n\024ENCODING_UNS" + + "PECIFIED\020\000\022\010\n\004JSON\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSch" + + "emaService\022\232\001\n\014CreateSchema\022%.google.pub" + + "sub.v1.CreateSchemaRequest\032\030.google.pubs" + + "ub.v1.Schema\"I\332A\027parent,schema,schema_id" + + "\202\323\344\223\002)\"\037/v1/{parent=projects/*}/schemas:" + + "\006schema\022y\n\tGetSchema\022\".google.pubsub.v1." + + "GetSchemaRequest\032\030.google.pubsub.v1.Sche" + + "ma\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=projects/*/" + + "schemas/*}\022\214\001\n\013ListSchemas\022$.google.pubs" + + "ub.v1.ListSchemasRequest\032%.google.pubsub" + + ".v1.ListSchemasResponse\"0\332A\006parent\202\323\344\223\002!" + + "\022\037/v1/{parent=projects/*}/schemas\022\260\001\n\023Li" + + "stSchemaRevisions\022,.google.pubsub.v1.Lis" + + "tSchemaRevisionsRequest\032-.google.pubsub." + + "v1.ListSchemaRevisionsResponse\"<\332A\004name\202" + + "\323\344\223\002/\022-/v1/{name=projects/*/schemas/*}:l" + + "istRevisions\022\220\001\n\014CommitSchema\022%.google.p" + + "ubsub.v1.CommitSchemaRequest\032\030.google.pu" + + "bsub.v1.Schema\"?\332A\013name,schema\202\323\344\223\002+\"&/v" + + "1/{name=projects/*/schemas/*}:commit:\001*\022" + + "\233\001\n\016RollbackSchema\022\'.google.pubsub.v1.Ro" + + "llbackSchemaRequest\032\030.google.pubsub.v1.S" + + "chema\"F\332A\020name,revision_id\202\323\344\223\002-\"(/v1/{n" + + "ame=projects/*/schemas/*}:rollback:\001*\022\252\001" + + "\n\024DeleteSchemaRevision\022-.google.pubsub.v" + + "1.DeleteSchemaRevisionRequest\032\030.google.p" + + "ubsub.v1.Schema\"I\332A\020name,revision_id\202\323\344\223" + + "\0020*./v1/{name=projects/*/schemas/*}:dele" + + "teRevision\022}\n\014DeleteSchema\022%.google.pubs" + + "ub.v1.DeleteSchemaRequest\032\026.google.proto" + + "buf.Empty\".\332A\004name\202\323\344\223\002!*\037/v1/{name=proj" + + "ects/*/schemas/*}\022\250\001\n\016ValidateSchema\022\'.g" + + "oogle.pubsub.v1.ValidateSchemaRequest\032(." + + "google.pubsub.v1.ValidateSchemaResponse\"" + + "C\332A\rparent,schema\202\323\344\223\002-\"(/v1/{parent=pro" + + "jects/*}/schemas:validate:\001*\022\242\001\n\017Validat" + + "eMessage\022(.google.pubsub.v1.ValidateMess" + + "ageRequest\032).google.pubsub.v1.ValidateMe" + + "ssageResponse\":\202\323\344\223\0024\"//v1/{parent=proje" + + "cts/*}/schemas:validateMessage:\001*\032p\312A\025pu" + + "bsub.googleapis.com\322AUhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" + + "le.pubsub.v1B\013SchemaProtoP\001Z2cloud.googl" + + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" + + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" + + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_pubsub_v1_Schema_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_pubsub_v1_Schema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Schema_descriptor, + new java.lang.String[] { + "Name", "Type", "Definition", "RevisionId", "RevisionCreateTime", + }); + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor, + new java.lang.String[] { + "Parent", "Schema", "SchemaId", + }); + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor, + new java.lang.String[] { + "Parent", "View", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor, + new java.lang.String[] { + "Schemas", "NextPageToken", + }); + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor, + new java.lang.String[] { + "Name", "View", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor, + new java.lang.String[] { + "Schemas", "NextPageToken", + }); + internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor, + new java.lang.String[] { + "Name", "Schema", + }); + internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor, + new java.lang.String[] { + "Name", "RevisionId", + }); + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor, + new java.lang.String[] { + "Name", "RevisionId", + }); + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor, + new java.lang.String[] { + "Parent", "Schema", + }); + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor, + new java.lang.String[] { + "Parent", "Name", "Schema", "Message", "Encoding", "SchemaSpec", + }); + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 3969b935c..6542c6f6a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Settings for validating messages published against a schema.
  * 
* * Protobuf type {@code google.pubsub.v1.SchemaSettings} */ -public final class SchemaSettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SchemaSettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.SchemaSettings) SchemaSettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SchemaSettings.newBuilder() to construct. private SchemaSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SchemaSettings() { schema_ = ""; encoding_ = 0; @@ -29,28 +47,32 @@ private SchemaSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SchemaSettings(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SchemaSettings.class, com.google.pubsub.v1.SchemaSettings.Builder.class); + com.google.pubsub.v1.SchemaSettings.class, + com.google.pubsub.v1.SchemaSettings.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
    * Required. The name of the schema that messages published should be
    * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    * deleted.
    * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The schema. */ @java.lang.Override @@ -67,14 +92,15 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
    * Required. The name of the schema that messages published should be
    * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -82,17 +108,18 @@ public java.lang.String getSchema() {
    * deleted.
    * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -103,33 +130,44 @@ public java.lang.String getSchema() { public static final int ENCODING_FIELD_NUMBER = 2; private int encoding_ = 0; /** + * + * *
    * Optional. The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
    * Optional. The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The encoding. */ - @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { + @java.lang.Override + public com.google.pubsub.v1.Encoding getEncoding() { com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } public static final int FIRST_REVISION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object firstRevisionId_ = ""; /** + * + * *
    * Optional. The minimum (inclusive) revision allowed for validating messages.
    * If empty or not present, allow any revision to be validated against
@@ -137,6 +175,7 @@ public java.lang.String getSchema() {
    * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The firstRevisionId. */ @java.lang.Override @@ -145,14 +184,15 @@ public java.lang.String getFirstRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); firstRevisionId_ = s; return s; } } /** + * + * *
    * Optional. The minimum (inclusive) revision allowed for validating messages.
    * If empty or not present, allow any revision to be validated against
@@ -160,16 +200,15 @@ public java.lang.String getFirstRevisionId() {
    * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for firstRevisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFirstRevisionIdBytes() { + public com.google.protobuf.ByteString getFirstRevisionIdBytes() { java.lang.Object ref = firstRevisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); firstRevisionId_ = b; return b; } else { @@ -178,9 +217,12 @@ public java.lang.String getFirstRevisionId() { } public static final int LAST_REVISION_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object lastRevisionId_ = ""; /** + * + * *
    * Optional. The maximum (inclusive) revision allowed for validating messages.
    * If empty or not present, allow any revision to be validated against
@@ -188,6 +230,7 @@ public java.lang.String getFirstRevisionId() {
    * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lastRevisionId. */ @java.lang.Override @@ -196,14 +239,15 @@ public java.lang.String getLastRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastRevisionId_ = s; return s; } } /** + * + * *
    * Optional. The maximum (inclusive) revision allowed for validating messages.
    * If empty or not present, allow any revision to be validated against
@@ -211,16 +255,15 @@ public java.lang.String getLastRevisionId() {
    * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lastRevisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLastRevisionIdBytes() { + public com.google.protobuf.ByteString getLastRevisionIdBytes() { java.lang.Object ref = lastRevisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastRevisionId_ = b; return b; } else { @@ -229,6 +272,7 @@ public java.lang.String getLastRevisionId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +284,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -267,8 +310,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); } if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, encoding_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, encoding_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstRevisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firstRevisionId_); @@ -284,20 +326,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.SchemaSettings)) { return super.equals(obj); } com.google.pubsub.v1.SchemaSettings other = (com.google.pubsub.v1.SchemaSettings) obj; - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; if (encoding_ != other.encoding_) return false; - if (!getFirstRevisionId() - .equals(other.getFirstRevisionId())) return false; - if (!getLastRevisionId() - .equals(other.getLastRevisionId())) return false; + if (!getFirstRevisionId().equals(other.getFirstRevisionId())) return false; + if (!getLastRevisionId().equals(other.getLastRevisionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -322,132 +361,135 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.SchemaSettings parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.SchemaSettings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SchemaSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SchemaSettings parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.SchemaSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SchemaSettings 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.SchemaSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SchemaSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.SchemaSettings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SchemaSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SchemaSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.SchemaSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.SchemaSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SchemaSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.SchemaSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Settings for validating messages published against a schema.
    * 
* * Protobuf type {@code google.pubsub.v1.SchemaSettings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SchemaSettings) com.google.pubsub.v1.SchemaSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SchemaSettings.class, com.google.pubsub.v1.SchemaSettings.Builder.class); + com.google.pubsub.v1.SchemaSettings.class, + com.google.pubsub.v1.SchemaSettings.Builder.class); } // Construct using com.google.pubsub.v1.SchemaSettings.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +502,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_descriptor; } @java.lang.Override @@ -482,7 +524,9 @@ public com.google.pubsub.v1.SchemaSettings build() { @java.lang.Override public com.google.pubsub.v1.SchemaSettings buildPartial() { com.google.pubsub.v1.SchemaSettings result = new com.google.pubsub.v1.SchemaSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -507,38 +551,39 @@ private void buildPartial0(com.google.pubsub.v1.SchemaSettings result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.SchemaSettings) { - return mergeFrom((com.google.pubsub.v1.SchemaSettings)other); + return mergeFrom((com.google.pubsub.v1.SchemaSettings) other); } else { super.mergeFrom(other); return this; @@ -591,32 +636,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - encoding_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - firstRevisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - lastRevisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + encoding_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + firstRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + lastRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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) { @@ -626,10 +676,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schema_ = ""; /** + * + * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -637,14 +690,16 @@ public Builder mergeFrom(
      * deleted.
      * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -653,6 +708,8 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -660,16 +717,17 @@ public java.lang.String getSchema() {
      * deleted.
      * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -677,6 +735,8 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -684,19 +744,25 @@ public java.lang.String getSchema() {
      * deleted.
      * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -704,7 +770,10 @@ public Builder setSchema(
      * deleted.
      * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -714,6 +783,8 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -721,13 +792,17 @@ public Builder clearSchema() {
      * deleted.
      * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -737,22 +812,31 @@ public Builder setSchemaBytes( private int encoding_ = 0; /** + * + * *
      * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
      * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ @@ -763,11 +847,15 @@ public Builder setEncodingValue(int value) { return this; } /** + * + * *
      * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encoding. */ @java.lang.Override @@ -776,11 +864,15 @@ public com.google.pubsub.v1.Encoding getEncoding() { return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The encoding to set. * @return This builder for chaining. */ @@ -794,11 +886,15 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { return this; } /** + * + * *
      * Optional. The encoding of messages validated against `schema`.
      * 
* - * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -810,6 +906,8 @@ public Builder clearEncoding() { private java.lang.Object firstRevisionId_ = ""; /** + * + * *
      * Optional. The minimum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -817,13 +915,13 @@ public Builder clearEncoding() {
      * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The firstRevisionId. */ public java.lang.String getFirstRevisionId() { java.lang.Object ref = firstRevisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); firstRevisionId_ = s; return s; @@ -832,6 +930,8 @@ public java.lang.String getFirstRevisionId() { } } /** + * + * *
      * Optional. The minimum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -839,15 +939,14 @@ public java.lang.String getFirstRevisionId() {
      * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for firstRevisionId. */ - public com.google.protobuf.ByteString - getFirstRevisionIdBytes() { + public com.google.protobuf.ByteString getFirstRevisionIdBytes() { java.lang.Object ref = firstRevisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); firstRevisionId_ = b; return b; } else { @@ -855,6 +954,8 @@ public java.lang.String getFirstRevisionId() { } } /** + * + * *
      * Optional. The minimum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -862,18 +963,22 @@ public java.lang.String getFirstRevisionId() {
      * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The firstRevisionId to set. * @return This builder for chaining. */ - public Builder setFirstRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFirstRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } firstRevisionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The minimum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -881,6 +986,7 @@ public Builder setFirstRevisionId(
      * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFirstRevisionId() { @@ -890,6 +996,8 @@ public Builder clearFirstRevisionId() { return this; } /** + * + * *
      * Optional. The minimum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -897,12 +1005,14 @@ public Builder clearFirstRevisionId() {
      * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for firstRevisionId to set. * @return This builder for chaining. */ - public Builder setFirstRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFirstRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); firstRevisionId_ = value; bitField0_ |= 0x00000004; @@ -912,6 +1022,8 @@ public Builder setFirstRevisionIdBytes( private java.lang.Object lastRevisionId_ = ""; /** + * + * *
      * Optional. The maximum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -919,13 +1031,13 @@ public Builder setFirstRevisionIdBytes(
      * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lastRevisionId. */ public java.lang.String getLastRevisionId() { java.lang.Object ref = lastRevisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastRevisionId_ = s; return s; @@ -934,6 +1046,8 @@ public java.lang.String getLastRevisionId() { } } /** + * + * *
      * Optional. The maximum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -941,15 +1055,14 @@ public java.lang.String getLastRevisionId() {
      * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lastRevisionId. */ - public com.google.protobuf.ByteString - getLastRevisionIdBytes() { + public com.google.protobuf.ByteString getLastRevisionIdBytes() { java.lang.Object ref = lastRevisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastRevisionId_ = b; return b; } else { @@ -957,6 +1070,8 @@ public java.lang.String getLastRevisionId() { } } /** + * + * *
      * Optional. The maximum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -964,18 +1079,22 @@ public java.lang.String getLastRevisionId() {
      * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The lastRevisionId to set. * @return This builder for chaining. */ - public Builder setLastRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLastRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } lastRevisionId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The maximum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -983,6 +1102,7 @@ public Builder setLastRevisionId(
      * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLastRevisionId() { @@ -992,6 +1112,8 @@ public Builder clearLastRevisionId() { return this; } /** + * + * *
      * Optional. The maximum (inclusive) revision allowed for validating messages.
      * If empty or not present, allow any revision to be validated against
@@ -999,21 +1121,23 @@ public Builder clearLastRevisionId() {
      * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for lastRevisionId to set. * @return This builder for chaining. */ - public Builder setLastRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLastRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); lastRevisionId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1023,12 +1147,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SchemaSettings) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.SchemaSettings) private static final com.google.pubsub.v1.SchemaSettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.SchemaSettings(); } @@ -1037,27 +1161,27 @@ public static com.google.pubsub.v1.SchemaSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaSettings 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaSettings 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; @@ -1072,6 +1196,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SchemaSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index d4585f62c..22df58e9d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface SchemaSettingsOrBuilder extends +public interface SchemaSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SchemaSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the schema that messages published should be
    * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -16,11 +34,16 @@ public interface SchemaSettingsOrBuilder extends
    * deleted.
    * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
    * Required. The name of the schema that messages published should be
    * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -28,32 +51,42 @@ public interface SchemaSettingsOrBuilder extends
    * deleted.
    * 
* - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); /** + * + * *
    * Optional. The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Optional. The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The encoding. */ com.google.pubsub.v1.Encoding getEncoding(); /** + * + * *
    * Optional. The minimum (inclusive) revision allowed for validating messages.
    * If empty or not present, allow any revision to be validated against
@@ -61,10 +94,13 @@ public interface SchemaSettingsOrBuilder extends
    * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The firstRevisionId. */ java.lang.String getFirstRevisionId(); /** + * + * *
    * Optional. The minimum (inclusive) revision allowed for validating messages.
    * If empty or not present, allow any revision to be validated against
@@ -72,12 +108,14 @@ public interface SchemaSettingsOrBuilder extends
    * 
* * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for firstRevisionId. */ - com.google.protobuf.ByteString - getFirstRevisionIdBytes(); + com.google.protobuf.ByteString getFirstRevisionIdBytes(); /** + * + * *
    * Optional. The maximum (inclusive) revision allowed for validating messages.
    * If empty or not present, allow any revision to be validated against
@@ -85,10 +123,13 @@ public interface SchemaSettingsOrBuilder extends
    * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lastRevisionId. */ java.lang.String getLastRevisionId(); /** + * + * *
    * Optional. The maximum (inclusive) revision allowed for validating messages.
    * If empty or not present, allow any revision to be validated against
@@ -96,8 +137,8 @@ public interface SchemaSettingsOrBuilder extends
    * 
* * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lastRevisionId. */ - com.google.protobuf.ByteString - getLastRevisionIdBytes(); + com.google.protobuf.ByteString getLastRevisionIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index a110dff62..83354637b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,15 +20,18 @@ package com.google.pubsub.v1; /** + * + * *
  * View of Schema object fields to be returned by GetSchema and ListSchemas.
  * 
* * Protobuf enum {@code google.pubsub.v1.SchemaView} */ -public enum SchemaView - implements com.google.protobuf.ProtocolMessageEnum { +public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The default / unset value.
    * The API will default to the BASIC view.
@@ -23,6 +41,8 @@ public enum SchemaView
    */
   SCHEMA_VIEW_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Include the name and type of the schema, but not the definition.
    * 
@@ -31,6 +51,8 @@ public enum SchemaView */ BASIC(1), /** + * + * *
    * Include all Schema object fields.
    * 
@@ -42,6 +64,8 @@ public enum SchemaView ; /** + * + * *
    * The default / unset value.
    * The API will default to the BASIC view.
@@ -51,6 +75,8 @@ public enum SchemaView
    */
   public static final int SCHEMA_VIEW_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * Include the name and type of the schema, but not the definition.
    * 
@@ -59,6 +85,8 @@ public enum SchemaView */ public static final int BASIC_VALUE = 1; /** + * + * *
    * Include all Schema object fields.
    * 
@@ -67,7 +95,6 @@ public enum SchemaView */ public static final int FULL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -92,49 +119,49 @@ public static SchemaView valueOf(int value) { */ public static SchemaView forNumber(int value) { switch (value) { - case 0: return SCHEMA_VIEW_UNSPECIFIED; - case 1: return BASIC; - case 2: return FULL; - default: return null; + case 0: + return SCHEMA_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return FULL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SchemaView> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaView findValueByNumber(int number) { - return SchemaView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaView findValueByNumber(int number) { + return SchemaView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto.getDescriptor().getEnumTypes().get(0); } private static final SchemaView[] VALUES = values(); - public static SchemaView valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SchemaView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -150,4 +177,3 @@ private SchemaView(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.SchemaView) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index e27852ada..732adf8b5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,55 +20,61 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `Seek` method.
  * 
* * Protobuf type {@code google.pubsub.v1.SeekRequest} */ -public final class SeekRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SeekRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekRequest) SeekRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SeekRequest.newBuilder() to construct. private SeekRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SeekRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SeekRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.SeekRequest.class, com.google.pubsub.v1.SeekRequest.Builder.class); } private int targetCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object target_; + public enum TargetCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIME(2), SNAPSHOT(3), TARGET_NOT_SET(0); private final int value; + private TargetCase(int value) { this.value = value; } @@ -69,32 +90,41 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 2: return TIME; - case 3: return SNAPSHOT; - case 0: return TARGET_NOT_SET; - default: return null; + case 2: + return TIME; + case 3: + return SNAPSHOT; + case 0: + return TARGET_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** + * + * *
    * Required. The subscription to affect.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -103,29 +133,31 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The subscription to affect.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -135,6 +167,8 @@ public java.lang.String getSubscription() { public static final int TIME_FIELD_NUMBER = 2; /** + * + * *
    * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -150,6 +184,7 @@ public java.lang.String getSubscription() {
    * 
* * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the time field is set. */ @java.lang.Override @@ -157,6 +192,8 @@ public boolean hasTime() { return targetCase_ == 2; } /** + * + * *
    * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -172,16 +209,19 @@ public boolean hasTime() {
    * 
* * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The time. */ @java.lang.Override public com.google.protobuf.Timestamp getTime() { if (targetCase_ == 2) { - return (com.google.protobuf.Timestamp) target_; + return (com.google.protobuf.Timestamp) target_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -201,33 +241,43 @@ public com.google.protobuf.Timestamp getTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
     if (targetCase_ == 2) {
-       return (com.google.protobuf.Timestamp) target_;
+      return (com.google.protobuf.Timestamp) target_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int SNAPSHOT_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Optional. The snapshot to seek to. The snapshot's topic must be the same
    * as that of the provided subscription. Format is
    * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return targetCase_ == 3; } /** + * + * *
    * Optional. The snapshot to seek to. The snapshot's topic must be the same
    * as that of the provided subscription. Format is
    * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The snapshot. */ public java.lang.String getSnapshot() { @@ -238,8 +288,7 @@ public java.lang.String getSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 3) { target_ = s; @@ -248,25 +297,28 @@ public java.lang.String getSnapshot() { } } /** + * + * *
    * Optional. The snapshot to seek to. The snapshot's topic must be the same
    * as that of the provided subscription. Format is
    * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for snapshot. */ - public com.google.protobuf.ByteString - getSnapshotBytes() { + public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = ""; if (targetCase_ == 3) { ref = target_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetCase_ == 3) { target_ = b; } @@ -277,6 +329,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -312,8 +364,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (targetCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.protobuf.Timestamp) target_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) target_); } if (targetCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -326,24 +379,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.SeekRequest)) { return super.equals(obj); } com.google.pubsub.v1.SeekRequest other = (com.google.pubsub.v1.SeekRequest) obj; - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: - if (!getTime() - .equals(other.getTime())) return false; + if (!getTime().equals(other.getTime())) return false; break; case 3: - if (!getSnapshot() - .equals(other.getSnapshot())) return false; + if (!getSnapshot().equals(other.getSnapshot())) return false; break; case 0: default: @@ -378,132 +428,135 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.SeekRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.SeekRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SeekRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.SeekRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekRequest 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.SeekRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.SeekRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SeekRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SeekRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.SeekRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.SeekRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SeekRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.SeekRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `Seek` method.
    * 
* * Protobuf type {@code google.pubsub.v1.SeekRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SeekRequest) com.google.pubsub.v1.SeekRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SeekRequest.class, com.google.pubsub.v1.SeekRequest.Builder.class); + com.google.pubsub.v1.SeekRequest.class, + com.google.pubsub.v1.SeekRequest.Builder.class); } // Construct using com.google.pubsub.v1.SeekRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekRequest_descriptor; } @java.lang.Override @@ -540,7 +593,9 @@ public com.google.pubsub.v1.SeekRequest build() { @java.lang.Override public com.google.pubsub.v1.SeekRequest buildPartial() { com.google.pubsub.v1.SeekRequest result = new com.google.pubsub.v1.SeekRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -556,8 +611,7 @@ private void buildPartial0(com.google.pubsub.v1.SeekRequest result) { private void buildPartialOneofs(com.google.pubsub.v1.SeekRequest result) { result.targetCase_ = targetCase_; result.target_ = this.target_; - if (targetCase_ == 2 && - timeBuilder_ != null) { + if (targetCase_ == 2 && timeBuilder_ != null) { result.target_ = timeBuilder_.build(); } } @@ -566,38 +620,39 @@ private void buildPartialOneofs(com.google.pubsub.v1.SeekRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.SeekRequest) { - return mergeFrom((com.google.pubsub.v1.SeekRequest)other); + return mergeFrom((com.google.pubsub.v1.SeekRequest) other); } else { super.mergeFrom(other); return this; @@ -612,19 +667,22 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) { onChanged(); } switch (other.getTargetCase()) { - case TIME: { - mergeTime(other.getTime()); - break; - } - case SNAPSHOT: { - targetCase_ = 3; - target_ = other.target_; - onChanged(); - break; - } - case TARGET_NOT_SET: { - break; - } + case TIME: + { + mergeTime(other.getTime()); + break; + } + case SNAPSHOT: + { + targetCase_ = 3; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -652,30 +710,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getTimeFieldBuilder().getBuilder(), - extensionRegistry); - targetCase_ = 2; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 3; - target_ = s; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTimeFieldBuilder().getBuilder(), extensionRegistry); + targetCase_ = 2; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 3; + target_ = s; + break; + } // case 26 + 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) { @@ -685,12 +745,12 @@ public Builder mergeFrom( } // finally return this; } + private int targetCase_ = 0; private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public Builder clearTarget() { @@ -704,18 +764,22 @@ public Builder clearTarget() { private java.lang.Object subscription_ = ""; /** + * + * *
      * Required. The subscription to affect.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -724,20 +788,23 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription to affect.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -745,28 +812,39 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription to affect.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The subscription to affect.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -776,17 +854,23 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The subscription to affect.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -795,8 +879,13 @@ public Builder setSubscriptionBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + timeBuilder_; /** + * + * *
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -812,6 +901,7 @@ public Builder setSubscriptionBytes(
      * 
* * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the time field is set. */ @java.lang.Override @@ -819,6 +909,8 @@ public boolean hasTime() { return targetCase_ == 2; } /** + * + * *
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -834,6 +926,7 @@ public boolean hasTime() {
      * 
* * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The time. */ @java.lang.Override @@ -851,6 +944,8 @@ public com.google.protobuf.Timestamp getTime() { } } /** + * + * *
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -881,6 +976,8 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -897,8 +994,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder setTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (timeBuilder_ == null) {
         target_ = builderForValue.build();
         onChanged();
@@ -909,6 +1005,8 @@ public Builder setTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -927,10 +1025,11 @@ public Builder setTime(
      */
     public Builder mergeTime(com.google.protobuf.Timestamp value) {
       if (timeBuilder_ == null) {
-        if (targetCase_ == 2 &&
-            target_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          target_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) target_)
-              .mergeFrom(value).buildPartial();
+        if (targetCase_ == 2 && target_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          target_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) target_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           target_ = value;
         }
@@ -946,6 +1045,8 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -979,6 +1080,8 @@ public Builder clearTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -999,6 +1102,8 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
       return getTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1027,6 +1132,8 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Optional. The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1044,17 +1151,20 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getTimeFieldBuilder() {
       if (timeBuilder_ == null) {
         if (!(targetCase_ == 2)) {
           target_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) target_,
-                getParentForChildren(),
-                isClean());
+        timeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) target_, getParentForChildren(), isClean());
         target_ = null;
       }
       targetCase_ = 2;
@@ -1063,13 +1173,18 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
     }
 
     /**
+     *
+     *
      * 
      * Optional. The snapshot to seek to. The snapshot's topic must be the same
      * as that of the provided subscription. Format is
      * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -1077,13 +1192,18 @@ public boolean hasSnapshot() { return targetCase_ == 3; } /** + * + * *
      * Optional. The snapshot to seek to. The snapshot's topic must be the same
      * as that of the provided subscription. Format is
      * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The snapshot. */ @java.lang.Override @@ -1093,8 +1213,7 @@ public java.lang.String getSnapshot() { ref = target_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 3) { target_ = s; @@ -1105,26 +1224,29 @@ public java.lang.String getSnapshot() { } } /** + * + * *
      * Optional. The snapshot to seek to. The snapshot's topic must be the same
      * as that of the provided subscription. Format is
      * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for snapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSnapshotBytes() { + public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = ""; if (targetCase_ == 3) { ref = target_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetCase_ == 3) { target_ = b; } @@ -1134,32 +1256,43 @@ public java.lang.String getSnapshot() { } } /** + * + * *
      * Optional. The snapshot to seek to. The snapshot's topic must be the same
      * as that of the provided subscription. Format is
      * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetCase_ = 3; target_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The snapshot to seek to. The snapshot's topic must be the same
      * as that of the provided subscription. Format is
      * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -1171,28 +1304,34 @@ public Builder clearSnapshot() { return this; } /** + * + * *
      * Optional. The snapshot to seek to. The snapshot's topic must be the same
      * as that of the provided subscription. Format is
      * `projects/{project}/snapshots/{snap}`.
      * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetCase_ = 3; target_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1202,12 +1341,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekRequest) private static final com.google.pubsub.v1.SeekRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.SeekRequest(); } @@ -1216,27 +1355,27 @@ public static com.google.pubsub.v1.SeekRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekRequest 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; @@ -1251,6 +1390,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index cb66995bf..0b5968b3e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface SeekRequestOrBuilder extends +public interface SeekRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The subscription to affect.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * Required. The subscription to affect.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -44,10 +71,13 @@ public interface SeekRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the time field is set. */ boolean hasTime(); /** + * + * *
    * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -63,10 +93,13 @@ public interface SeekRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The time. */ com.google.protobuf.Timestamp getTime(); /** + * + * *
    * Optional. The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -86,39 +119,53 @@ public interface SeekRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. The snapshot to seek to. The snapshot's topic must be the same
    * as that of the provided subscription. Format is
    * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** + * + * *
    * Optional. The snapshot to seek to. The snapshot's topic must be the same
    * as that of the provided subscription. Format is
    * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The snapshot. */ java.lang.String getSnapshot(); /** + * + * *
    * Optional. The snapshot to seek to. The snapshot's topic must be the same
    * as that of the provided subscription. Format is
    * `projects/{project}/snapshots/{snap}`.
    * 
* - * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for snapshot. */ - com.google.protobuf.ByteString - getSnapshotBytes(); + com.google.protobuf.ByteString getSnapshotBytes(); com.google.pubsub.v1.SeekRequest.TargetCase getTargetCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 228b24900..e7ff73bf5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,45 +20,49 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `Seek` method (this response is empty).
  * 
* * Protobuf type {@code google.pubsub.v1.SeekResponse} */ -public final class SeekResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SeekResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekResponse) SeekResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SeekResponse.newBuilder() to construct. private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SeekResponse() { - } + + private SeekResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SeekResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SeekResponse.class, com.google.pubsub.v1.SeekResponse.Builder.class); + com.google.pubsub.v1.SeekResponse.class, + com.google.pubsub.v1.SeekResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -55,8 +74,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -74,7 +92,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.SeekResponse)) { return super.equals(obj); @@ -97,132 +115,135 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.SeekResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.SeekResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.SeekResponse parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.SeekResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekResponse 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.SeekResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.SeekResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SeekResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SeekResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.SeekResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.SeekResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SeekResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.SeekResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `Seek` method (this response is empty).
    * 
* * Protobuf type {@code google.pubsub.v1.SeekResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SeekResponse) com.google.pubsub.v1.SeekResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SeekResponse.class, com.google.pubsub.v1.SeekResponse.Builder.class); + com.google.pubsub.v1.SeekResponse.class, + com.google.pubsub.v1.SeekResponse.Builder.class); } // Construct using com.google.pubsub.v1.SeekResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -230,9 +251,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override @@ -260,38 +281,39 @@ public com.google.pubsub.v1.SeekResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.SeekResponse) { - return mergeFrom((com.google.pubsub.v1.SeekResponse)other); + return mergeFrom((com.google.pubsub.v1.SeekResponse) other); } else { super.mergeFrom(other); return this; @@ -326,12 +348,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -341,9 +364,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -353,12 +376,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekResponse) private static final com.google.pubsub.v1.SeekResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.SeekResponse(); } @@ -367,27 +390,27 @@ public static com.google.pubsub.v1.SeekResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekResponse 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; @@ -402,6 +425,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java new file mode 100644 index 000000000..78d0e1c4c --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface SeekResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 6aac80004..61ed093bc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,6 +20,8 @@ package com.google.pubsub.v1; /** + * + * *
  * A snapshot resource. Snapshots are used in
  * [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.pubsub.v1.Snapshot}
  */
-public final class Snapshot extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Snapshot extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.Snapshot)
     SnapshotOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Snapshot.newBuilder() to construct.
   private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Snapshot() {
     name_ = "";
     topic_ = "";
@@ -31,13 +49,11 @@ private Snapshot() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Snapshot();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
   }
 
@@ -49,28 +65,33 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Optional. The name of the snapshot.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -79,29 +100,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Optional. The name of the snapshot.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -110,15 +131,21 @@ public java.lang.String getName() { } public static final int TOPIC_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Optional. The name of the topic from which this snapshot is retaining
    * messages.
    * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ @java.lang.Override @@ -127,30 +154,32 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
    * Optional. The name of the topic from which this snapshot is retaining
    * messages.
    * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -161,6 +190,8 @@ public java.lang.String getTopic() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -174,7 +205,9 @@ public java.lang.String getTopic() {
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -182,6 +215,8 @@ public boolean hasExpireTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -195,7 +230,9 @@ public boolean hasExpireTime() {
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expireTime. */ @java.lang.Override @@ -203,6 +240,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -216,7 +255,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -224,32 +264,34 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -258,20 +300,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -284,6 +327,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -292,17 +337,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -311,11 +358,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -323,6 +370,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -334,8 +382,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -345,12 +392,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(3, getExpireTime());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
     getUnknownFields().writeTo(output);
   }
 
@@ -367,18 +410,17 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getExpireTime());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -388,24 +430,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.Snapshot)) {
       return super.equals(obj);
     }
     com.google.pubsub.v1.Snapshot other = (com.google.pubsub.v1.Snapshot) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getTopic()
-        .equals(other.getTopic())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getTopic().equals(other.getTopic())) return false;
     if (hasExpireTime() != other.hasExpireTime()) return false;
     if (hasExpireTime()) {
-      if (!getExpireTime()
-          .equals(other.getExpireTime())) return false;
+      if (!getExpireTime().equals(other.getExpireTime())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -434,99 +472,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.Snapshot parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.Snapshot parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.Snapshot parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.Snapshot parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.pubsub.v1.Snapshot parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.Snapshot 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.Snapshot parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.Snapshot parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.Snapshot parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.Snapshot parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.pubsub.v1.Snapshot parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.pubsub.v1.Snapshot parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.pubsub.v1.Snapshot parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.pubsub.v1.Snapshot parseFrom(com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.Snapshot parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.pubsub.v1.Snapshot prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A snapshot resource. Snapshots are used in
    * [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
@@ -537,12 +579,11 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.Snapshot}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Snapshot)
       com.google.pubsub.v1.SnapshotOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
     }
 
@@ -553,10 +594,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
     protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
         int number) {
@@ -564,14 +605,15 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class);
     }
@@ -581,17 +623,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getExpireTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -608,8 +650,7 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
       return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
     }
 
@@ -630,7 +671,9 @@ public com.google.pubsub.v1.Snapshot build() {
     @java.lang.Override
     public com.google.pubsub.v1.Snapshot buildPartial() {
       com.google.pubsub.v1.Snapshot result = new com.google.pubsub.v1.Snapshot(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -645,9 +688,7 @@ private void buildPartial0(com.google.pubsub.v1.Snapshot result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null
-            ? expireTime_
-            : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
@@ -661,38 +702,39 @@ private void buildPartial0(com.google.pubsub.v1.Snapshot result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.Snapshot) {
-        return mergeFrom((com.google.pubsub.v1.Snapshot)other);
+        return mergeFrom((com.google.pubsub.v1.Snapshot) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -714,8 +756,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -743,38 +784,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              topic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                topic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            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) {
@@ -784,22 +830,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Optional. The name of the snapshot.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -808,20 +857,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. The name of the snapshot.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -829,28 +879,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. The name of the snapshot.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. The name of the snapshot.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -860,17 +917,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Optional. The name of the snapshot.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -880,19 +941,23 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
      * Optional. The name of the topic from which this snapshot is retaining
      * messages.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -901,21 +966,24 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Optional. The name of the topic from which this snapshot is retaining
      * messages.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -923,30 +991,41 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Optional. The name of the topic from which this snapshot is retaining
      * messages.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The name of the topic from which this snapshot is retaining
      * messages.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -956,18 +1035,24 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Optional. The name of the topic from which this snapshot is retaining
      * messages.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000002; @@ -977,8 +1062,13 @@ public Builder setTopicBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -992,13 +1082,17 @@ public Builder setTopicBytes(
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1012,17 +1106,23 @@ public boolean hasExpireTime() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1036,7 +1136,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1052,6 +1153,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1065,10 +1168,10 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -1079,6 +1182,8 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1092,13 +1197,14 @@ public Builder setExpireTime(
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -1113,6 +1219,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1126,7 +1234,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1139,6 +1248,8 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1152,7 +1263,8 @@ public Builder clearExpireTime() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000004; @@ -1160,6 +1272,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1173,17 +1287,21 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Optional. The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1197,37 +1315,39 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * snapshot that would expire in less than 1 hour after creation.
      * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1236,10 +1356,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1248,20 +1371,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1274,6 +1398,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1282,17 +1408,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1301,23 +1429,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1325,23 +1455,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1349,17 +1478,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1367,16 +1499,14 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1386,12 +1516,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Snapshot)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot)
   private static final com.google.pubsub.v1.Snapshot DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.Snapshot();
   }
@@ -1400,27 +1530,27 @@ public static com.google.pubsub.v1.Snapshot getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Snapshot 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();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Snapshot 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;
@@ -1435,6 +1565,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
index d26661a12..d304660a8 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
@@ -1,56 +1,88 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.pubsub.v1;
 
-public interface SnapshotOrBuilder extends
+public interface SnapshotOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Snapshot)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. The name of the snapshot.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Optional. The name of the snapshot.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The name of the topic from which this snapshot is retaining
    * messages.
    * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
    * Optional. The name of the topic from which this snapshot is retaining
    * messages.
    * 
* - * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); /** + * + * *
    * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -64,11 +96,15 @@ public interface SnapshotOrBuilder extends
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -82,11 +118,15 @@ public interface SnapshotOrBuilder extends
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Optional. The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -100,11 +140,14 @@ public interface SnapshotOrBuilder extends
    * snapshot that would expire in less than 1 hour after creation.
    * 
* - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -114,6 +157,8 @@ public interface SnapshotOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -121,15 +166,13 @@ public interface SnapshotOrBuilder extends
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -137,9 +180,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -148,11 +192,13 @@ boolean containsLabels(
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -160,6 +206,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1/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
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
index 2b3e676c3..fb0b8c4cd 100644
--- a/owl-bot-staging/v1/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
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
@@ -5,6 +20,8 @@
 package com.google.pubsub.v1;
 
 /**
+ *
+ *
  * 
  * Request for the `StreamingPull` streaming RPC method. This request is used to
  * establish the initial stream as well as to stream acknowledgements and ack
@@ -13,49 +30,52 @@
  *
  * Protobuf type {@code google.pubsub.v1.StreamingPullRequest}
  */
-public final class StreamingPullRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingPullRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullRequest)
     StreamingPullRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingPullRequest.newBuilder() to construct.
   private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingPullRequest() {
     subscription_ = "";
-    ackIds_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
     modifyDeadlineSeconds_ = emptyIntList();
-    modifyDeadlineAckIds_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
     clientId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingPullRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class);
+            com.google.pubsub.v1.StreamingPullRequest.class,
+            com.google.pubsub.v1.StreamingPullRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
+   *
+   *
    * 
    * Required. The subscription for which to initialize the new stream. This
    * must be provided in the first request on the stream, and must not be set in
@@ -63,7 +83,10 @@ protected java.lang.Object newInstance(
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ @java.lang.Override @@ -72,14 +95,15 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
    * Required. The subscription for which to initialize the new stream. This
    * must be provided in the first request on the stream, and must not be set in
@@ -87,17 +111,18 @@ public java.lang.String getSubscription() {
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -106,10 +131,13 @@ public java.lang.String getSubscription() { } public static final int ACK_IDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. List of acknowledgement IDs for acknowledging previously received
    * messages (received on this stream or a different stream). If an ack ID has
@@ -120,13 +148,15 @@ public java.lang.String getSubscription() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
    * Optional. List of acknowledgement IDs for acknowledging previously received
    * messages (received on this stream or a different stream). If an ack ID has
@@ -137,12 +167,15 @@ public java.lang.String getSubscription() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
    * Optional. List of acknowledgement IDs for acknowledging previously received
    * messages (received on this stream or a different stream). If an ack ID has
@@ -153,6 +186,7 @@ public int getAckIdsCount() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -160,6 +194,8 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
    * Optional. List of acknowledgement IDs for acknowledging previously received
    * messages (received on this stream or a different stream). If an ack ID has
@@ -170,19 +206,21 @@ public java.lang.String getAckIds(int index) {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = - emptyIntList(); + private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); /** + * + * *
    * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -197,15 +235,18 @@ public java.lang.String getAckIds(int index) {
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the modifyDeadlineSeconds. */ @java.lang.Override - public java.util.List - getModifyDeadlineSecondsList() { + public java.util.List getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; } /** + * + * *
    * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -220,13 +261,17 @@ public java.lang.String getAckIds(int index) {
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** + * + * *
    * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -241,20 +286,26 @@ public int getModifyDeadlineSecondsCount() {
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); } + private int modifyDeadlineSecondsMemoizedSerializedSize = -1; public static final int MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. List of acknowledgement IDs whose deadline will be modified based
    * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -263,14 +314,17 @@ public int getModifyDeadlineSeconds(int index) {
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the modifyDeadlineAckIds. */ - public com.google.protobuf.ProtocolStringList - getModifyDeadlineAckIdsList() { + public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_; } /** + * + * *
    * Optional. List of acknowledgement IDs whose deadline will be modified based
    * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -279,13 +333,17 @@ public int getModifyDeadlineSeconds(int index) {
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** + * + * *
    * Optional. List of acknowledgement IDs whose deadline will be modified based
    * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -294,7 +352,9 @@ public int getModifyDeadlineAckIdsCount() {
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ @@ -302,6 +362,8 @@ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** + * + * *
    * Optional. List of acknowledgement IDs whose deadline will be modified based
    * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -310,18 +372,21 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. */ - public com.google.protobuf.ByteString - getModifyDeadlineAckIdsBytes(int index) { + public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); } public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int streamAckDeadlineSeconds_ = 0; /** + * + * *
    * Required. The ack deadline to use for the stream. This must be provided in
    * the first request on the stream, but it can also be updated on subsequent
@@ -330,6 +395,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
    * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamAckDeadlineSeconds. */ @java.lang.Override @@ -338,9 +404,12 @@ public int getStreamAckDeadlineSeconds() { } public static final int CLIENT_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; /** + * + * *
    * Optional. A unique identifier that is used to distinguish client instances
    * from each other. Only needs to be provided on the initial request. When a
@@ -351,6 +420,7 @@ public int getStreamAckDeadlineSeconds() {
    * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clientId. */ @java.lang.Override @@ -359,14 +429,15 @@ public java.lang.String getClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } } /** + * + * *
    * Optional. A unique identifier that is used to distinguish client instances
    * from each other. Only needs to be provided on the initial request. When a
@@ -377,16 +448,15 @@ public java.lang.String getClientId() {
    * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clientId. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientIdBytes() { + public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientId_ = b; return b; } else { @@ -397,6 +467,8 @@ public java.lang.String getClientId() { public static final int MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER = 7; private long maxOutstandingMessages_ = 0L; /** + * + * *
    * Optional. Flow control settings for the maximum number of outstanding
    * messages. When there are `max_outstanding_messages` currently sent to the
@@ -410,6 +482,7 @@ public java.lang.String getClientId() {
    * 
* * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxOutstandingMessages. */ @java.lang.Override @@ -420,6 +493,8 @@ public long getMaxOutstandingMessages() { public static final int MAX_OUTSTANDING_BYTES_FIELD_NUMBER = 8; private long maxOutstandingBytes_ = 0L; /** + * + * *
    * Optional. Flow control settings for the maximum number of outstanding
    * bytes. When there are `max_outstanding_bytes` or more worth of messages
@@ -433,6 +508,7 @@ public long getMaxOutstandingMessages() {
    * 
* * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxOutstandingBytes. */ @java.lang.Override @@ -441,6 +517,7 @@ public long getMaxOutstandingBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -452,8 +529,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); @@ -469,7 +545,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt32NoTag(modifyDeadlineSeconds_.getInt(i)); } for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modifyDeadlineAckIds_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, modifyDeadlineAckIds_.getRaw(i)); } if (streamAckDeadlineSeconds_ != 0) { output.writeInt32(5, streamAckDeadlineSeconds_); @@ -506,14 +583,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(modifyDeadlineSeconds_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + modifyDeadlineSeconds_.getInt(i)); } size += dataSize; if (!getModifyDeadlineSecondsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } modifyDeadlineSecondsMemoizedSerializedSize = dataSize; } @@ -526,19 +603,16 @@ public int getSerializedSize() { size += 1 * getModifyDeadlineAckIdsList().size(); } if (streamAckDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, streamAckDeadlineSeconds_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, streamAckDeadlineSeconds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clientId_); } if (maxOutstandingMessages_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, maxOutstandingMessages_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxOutstandingMessages_); } if (maxOutstandingBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, maxOutstandingBytes_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxOutstandingBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -548,29 +622,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.StreamingPullRequest)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullRequest other = (com.google.pubsub.v1.StreamingPullRequest) obj; - - if (!getSubscription() - .equals(other.getSubscription())) return false; - if (!getAckIdsList() - .equals(other.getAckIdsList())) return false; - if (!getModifyDeadlineSecondsList() - .equals(other.getModifyDeadlineSecondsList())) return false; - if (!getModifyDeadlineAckIdsList() - .equals(other.getModifyDeadlineAckIdsList())) return false; - if (getStreamAckDeadlineSeconds() - != other.getStreamAckDeadlineSeconds()) return false; - if (!getClientId() - .equals(other.getClientId())) return false; - if (getMaxOutstandingMessages() - != other.getMaxOutstandingMessages()) return false; - if (getMaxOutstandingBytes() - != other.getMaxOutstandingBytes()) return false; + com.google.pubsub.v1.StreamingPullRequest other = + (com.google.pubsub.v1.StreamingPullRequest) obj; + + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getModifyDeadlineSecondsList().equals(other.getModifyDeadlineSecondsList())) return false; + if (!getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList())) return false; + if (getStreamAckDeadlineSeconds() != other.getStreamAckDeadlineSeconds()) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (getMaxOutstandingMessages() != other.getMaxOutstandingMessages()) return false; + if (getMaxOutstandingBytes() != other.getMaxOutstandingBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -601,109 +668,112 @@ public int hashCode() { hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (37 * hash) + MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxOutstandingMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingMessages()); hash = (37 * hash) + MAX_OUTSTANDING_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxOutstandingBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.StreamingPullRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StreamingPullRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullRequest 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.StreamingPullRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.StreamingPullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `StreamingPull` streaming RPC method. This request is used to
    * establish the initial stream as well as to stream acknowledgements and ack
@@ -712,43 +782,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.StreamingPullRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullRequest)
       com.google.pubsub.v1.StreamingPullRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class);
+              com.google.pubsub.v1.StreamingPullRequest.class,
+              com.google.pubsub.v1.StreamingPullRequest.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.StreamingPullRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
       bitField0_ = 0;
       subscription_ = "";
-      ackIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
       modifyDeadlineSeconds_ = emptyIntList();
-      modifyDeadlineAckIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
       streamAckDeadlineSeconds_ = 0;
       clientId_ = "";
       maxOutstandingMessages_ = 0L;
@@ -757,9 +824,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
     }
 
     @java.lang.Override
@@ -778,8 +845,11 @@ public com.google.pubsub.v1.StreamingPullRequest build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.StreamingPullRequest buildPartial() {
-      com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.pubsub.v1.StreamingPullRequest result =
+          new com.google.pubsub.v1.StreamingPullRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -819,38 +889,39 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.StreamingPullRequest) {
-        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other);
+        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -935,65 +1006,75 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              subscription_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureAckIdsIsMutable();
-              ackIds_.add(s);
-              break;
-            } // case 18
-            case 24: {
-              int v = input.readInt32();
-              ensureModifyDeadlineSecondsIsMutable();
-              modifyDeadlineSeconds_.addInt(v);
-              break;
-            } // case 24
-            case 26: {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              ensureModifyDeadlineSecondsIsMutable();
-              while (input.getBytesUntilLimit() > 0) {
-                modifyDeadlineSeconds_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
-            } // case 26
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureModifyDeadlineAckIdsIsMutable();
-              modifyDeadlineAckIds_.add(s);
-              break;
-            } // case 34
-            case 40: {
-              streamAckDeadlineSeconds_ = input.readInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              clientId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 56: {
-              maxOutstandingMessages_ = input.readInt64();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              maxOutstandingBytes_ = input.readInt64();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                subscription_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureAckIdsIsMutable();
+                ackIds_.add(s);
+                break;
+              } // case 18
+            case 24:
+              {
+                int v = input.readInt32();
+                ensureModifyDeadlineSecondsIsMutable();
+                modifyDeadlineSeconds_.addInt(v);
+                break;
+              } // case 24
+            case 26:
+              {
+                int length = input.readRawVarint32();
+                int limit = input.pushLimit(length);
+                ensureModifyDeadlineSecondsIsMutable();
+                while (input.getBytesUntilLimit() > 0) {
+                  modifyDeadlineSeconds_.addInt(input.readInt32());
+                }
+                input.popLimit(limit);
+                break;
+              } // case 26
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureModifyDeadlineAckIdsIsMutable();
+                modifyDeadlineAckIds_.add(s);
+                break;
+              } // case 34
+            case 40:
+              {
+                streamAckDeadlineSeconds_ = input.readInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                clientId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 56:
+              {
+                maxOutstandingMessages_ = input.readInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                maxOutstandingBytes_ = input.readInt64();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            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) {
@@ -1003,10 +1084,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
+     *
+     *
      * 
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1014,14 +1098,16 @@ public Builder mergeFrom(
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -1030,6 +1116,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1037,16 +1125,17 @@ public java.lang.String getSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -1054,6 +1143,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1061,19 +1152,25 @@ public java.lang.String getSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1081,7 +1178,10 @@ public Builder setSubscription(
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -1091,6 +1191,8 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1098,13 +1200,17 @@ public Builder clearSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -1114,6 +1220,7 @@ public Builder setSubscriptionBytes( private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAckIdsIsMutable() { if (!ackIds_.isModifiable()) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); @@ -1121,6 +1228,8 @@ private void ensureAckIdsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1131,14 +1240,16 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1149,12 +1260,15 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1165,6 +1279,7 @@ public int getAckIdsCount() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -1172,6 +1287,8 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1182,14 +1299,16 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1200,13 +1319,15 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.set(index, value); bitField0_ |= 0x00000002; @@ -1214,6 +1335,8 @@ public Builder setAckIds( return this; } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1224,12 +1347,14 @@ public Builder setAckIds(
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.add(value); bitField0_ |= 0x00000002; @@ -1237,6 +1362,8 @@ public Builder addAckIds( return this; } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1247,19 +1374,20 @@ public Builder addAckIds(
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The ackIds to add. * @return This builder for chaining. */ - public Builder addAllAckIds( - java.lang.Iterable values) { + public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1270,16 +1398,19 @@ public Builder addAllAckIds(
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. List of acknowledgement IDs for acknowledging previously received
      * messages (received on this stream or a different stream). If an ack ID has
@@ -1290,12 +1421,14 @@ public Builder clearAckIds() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); @@ -1305,6 +1438,7 @@ public Builder addAckIdsBytes( } private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); + private void ensureModifyDeadlineSecondsIsMutable() { if (!modifyDeadlineSeconds_.isModifiable()) { modifyDeadlineSeconds_ = makeMutableCopy(modifyDeadlineSeconds_); @@ -1312,6 +1446,8 @@ private void ensureModifyDeadlineSecondsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1326,15 +1462,18 @@ private void ensureModifyDeadlineSecondsIsMutable() {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the modifyDeadlineSeconds. */ - public java.util.List - getModifyDeadlineSecondsList() { + public java.util.List getModifyDeadlineSecondsList() { modifyDeadlineSeconds_.makeImmutable(); return modifyDeadlineSeconds_; } /** + * + * *
      * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1349,13 +1488,17 @@ private void ensureModifyDeadlineSecondsIsMutable() {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** + * + * *
      * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1370,7 +1513,9 @@ public int getModifyDeadlineSecondsCount() {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ @@ -1378,6 +1523,8 @@ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); } /** + * + * *
      * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1392,13 +1539,14 @@ public int getModifyDeadlineSeconds(int index) {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The modifyDeadlineSeconds to set. * @return This builder for chaining. */ - public Builder setModifyDeadlineSeconds( - int index, int value) { + public Builder setModifyDeadlineSeconds(int index, int value) { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.setInt(index, value); @@ -1407,6 +1555,8 @@ public Builder setModifyDeadlineSeconds( return this; } /** + * + * *
      * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1421,7 +1571,9 @@ public Builder setModifyDeadlineSeconds(
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The modifyDeadlineSeconds to add. * @return This builder for chaining. */ @@ -1434,6 +1586,8 @@ public Builder addModifyDeadlineSeconds(int value) { return this; } /** + * + * *
      * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1448,20 +1602,23 @@ public Builder addModifyDeadlineSeconds(int value) {
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The modifyDeadlineSeconds to add. * @return This builder for chaining. */ public Builder addAllModifyDeadlineSeconds( java.lang.Iterable values) { ensureModifyDeadlineSecondsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, modifyDeadlineSeconds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineSeconds_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1476,7 +1633,9 @@ public Builder addAllModifyDeadlineSeconds(
      * be aborted with status `INVALID_ARGUMENT`.
      * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearModifyDeadlineSeconds() { @@ -1488,6 +1647,7 @@ public Builder clearModifyDeadlineSeconds() { private com.google.protobuf.LazyStringArrayList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureModifyDeadlineAckIdsIsMutable() { if (!modifyDeadlineAckIds_.isModifiable()) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); @@ -1495,6 +1655,8 @@ private void ensureModifyDeadlineAckIdsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1503,15 +1665,18 @@ private void ensureModifyDeadlineAckIdsIsMutable() {
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the modifyDeadlineAckIds. */ - public com.google.protobuf.ProtocolStringList - getModifyDeadlineAckIdsList() { + public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { modifyDeadlineAckIds_.makeImmutable(); return modifyDeadlineAckIds_; } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1520,13 +1685,17 @@ private void ensureModifyDeadlineAckIdsIsMutable() {
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1535,7 +1704,9 @@ public int getModifyDeadlineAckIdsCount() {
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ @@ -1543,6 +1714,8 @@ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1551,15 +1724,18 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. */ - public com.google.protobuf.ByteString - getModifyDeadlineAckIdsBytes(int index) { + public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1568,14 +1744,17 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The modifyDeadlineAckIds to set. * @return This builder for chaining. */ - public Builder setModifyDeadlineAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.set(index, value); bitField0_ |= 0x00000008; @@ -1583,6 +1762,8 @@ public Builder setModifyDeadlineAckIds( return this; } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1591,13 +1772,16 @@ public Builder setModifyDeadlineAckIds(
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addModifyDeadlineAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addModifyDeadlineAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); bitField0_ |= 0x00000008; @@ -1605,6 +1789,8 @@ public Builder addModifyDeadlineAckIds( return this; } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1613,20 +1799,22 @@ public Builder addModifyDeadlineAckIds(
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addAllModifyDeadlineAckIds( - java.lang.Iterable values) { + public Builder addAllModifyDeadlineAckIds(java.lang.Iterable values) { ensureModifyDeadlineAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, modifyDeadlineAckIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineAckIds_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1635,17 +1823,21 @@ public Builder addAllModifyDeadlineAckIds(
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearModifyDeadlineAckIds() { - modifyDeadlineAckIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
      * Optional. List of acknowledgement IDs whose deadline will be modified based
      * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -1654,13 +1846,16 @@ public Builder clearModifyDeadlineAckIds() {
      * processing was interrupted.
      * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addModifyDeadlineAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); @@ -1669,8 +1864,10 @@ public Builder addModifyDeadlineAckIdsBytes( return this; } - private int streamAckDeadlineSeconds_ ; + private int streamAckDeadlineSeconds_; /** + * + * *
      * Required. The ack deadline to use for the stream. This must be provided in
      * the first request on the stream, but it can also be updated on subsequent
@@ -1679,6 +1876,7 @@ public Builder addModifyDeadlineAckIdsBytes(
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamAckDeadlineSeconds. */ @java.lang.Override @@ -1686,6 +1884,8 @@ public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; } /** + * + * *
      * Required. The ack deadline to use for the stream. This must be provided in
      * the first request on the stream, but it can also be updated on subsequent
@@ -1694,6 +1894,7 @@ public int getStreamAckDeadlineSeconds() {
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The streamAckDeadlineSeconds to set. * @return This builder for chaining. */ @@ -1705,6 +1906,8 @@ public Builder setStreamAckDeadlineSeconds(int value) { return this; } /** + * + * *
      * Required. The ack deadline to use for the stream. This must be provided in
      * the first request on the stream, but it can also be updated on subsequent
@@ -1713,6 +1916,7 @@ public Builder setStreamAckDeadlineSeconds(int value) {
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStreamAckDeadlineSeconds() { @@ -1724,6 +1928,8 @@ public Builder clearStreamAckDeadlineSeconds() { private java.lang.Object clientId_ = ""; /** + * + * *
      * Optional. A unique identifier that is used to distinguish client instances
      * from each other. Only needs to be provided on the initial request. When a
@@ -1734,13 +1940,13 @@ public Builder clearStreamAckDeadlineSeconds() {
      * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clientId. */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; @@ -1749,6 +1955,8 @@ public java.lang.String getClientId() { } } /** + * + * *
      * Optional. A unique identifier that is used to distinguish client instances
      * from each other. Only needs to be provided on the initial request. When a
@@ -1759,15 +1967,14 @@ public java.lang.String getClientId() {
      * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clientId. */ - public com.google.protobuf.ByteString - getClientIdBytes() { + public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientId_ = b; return b; } else { @@ -1775,6 +1982,8 @@ public java.lang.String getClientId() { } } /** + * + * *
      * Optional. A unique identifier that is used to distinguish client instances
      * from each other. Only needs to be provided on the initial request. When a
@@ -1785,18 +1994,22 @@ public java.lang.String getClientId() {
      * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The clientId to set. * @return This builder for chaining. */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clientId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. A unique identifier that is used to distinguish client instances
      * from each other. Only needs to be provided on the initial request. When a
@@ -1807,6 +2020,7 @@ public Builder setClientId(
      * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearClientId() { @@ -1816,6 +2030,8 @@ public Builder clearClientId() { return this; } /** + * + * *
      * Optional. A unique identifier that is used to distinguish client instances
      * from each other. Only needs to be provided on the initial request. When a
@@ -1826,12 +2042,14 @@ public Builder clearClientId() {
      * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for clientId to set. * @return This builder for chaining. */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clientId_ = value; bitField0_ |= 0x00000020; @@ -1839,8 +2057,10 @@ public Builder setClientIdBytes( return this; } - private long maxOutstandingMessages_ ; + private long maxOutstandingMessages_; /** + * + * *
      * Optional. Flow control settings for the maximum number of outstanding
      * messages. When there are `max_outstanding_messages` currently sent to the
@@ -1854,6 +2074,7 @@ public Builder setClientIdBytes(
      * 
* * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxOutstandingMessages. */ @java.lang.Override @@ -1861,6 +2082,8 @@ public long getMaxOutstandingMessages() { return maxOutstandingMessages_; } /** + * + * *
      * Optional. Flow control settings for the maximum number of outstanding
      * messages. When there are `max_outstanding_messages` currently sent to the
@@ -1874,6 +2097,7 @@ public long getMaxOutstandingMessages() {
      * 
* * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The maxOutstandingMessages to set. * @return This builder for chaining. */ @@ -1885,6 +2109,8 @@ public Builder setMaxOutstandingMessages(long value) { return this; } /** + * + * *
      * Optional. Flow control settings for the maximum number of outstanding
      * messages. When there are `max_outstanding_messages` currently sent to the
@@ -1898,6 +2124,7 @@ public Builder setMaxOutstandingMessages(long value) {
      * 
* * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMaxOutstandingMessages() { @@ -1907,8 +2134,10 @@ public Builder clearMaxOutstandingMessages() { return this; } - private long maxOutstandingBytes_ ; + private long maxOutstandingBytes_; /** + * + * *
      * Optional. Flow control settings for the maximum number of outstanding
      * bytes. When there are `max_outstanding_bytes` or more worth of messages
@@ -1922,6 +2151,7 @@ public Builder clearMaxOutstandingMessages() {
      * 
* * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxOutstandingBytes. */ @java.lang.Override @@ -1929,6 +2159,8 @@ public long getMaxOutstandingBytes() { return maxOutstandingBytes_; } /** + * + * *
      * Optional. Flow control settings for the maximum number of outstanding
      * bytes. When there are `max_outstanding_bytes` or more worth of messages
@@ -1942,6 +2174,7 @@ public long getMaxOutstandingBytes() {
      * 
* * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The maxOutstandingBytes to set. * @return This builder for chaining. */ @@ -1953,6 +2186,8 @@ public Builder setMaxOutstandingBytes(long value) { return this; } /** + * + * *
      * Optional. Flow control settings for the maximum number of outstanding
      * bytes. When there are `max_outstanding_bytes` or more worth of messages
@@ -1966,6 +2201,7 @@ public Builder setMaxOutstandingBytes(long value) {
      * 
* * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMaxOutstandingBytes() { @@ -1974,9 +2210,9 @@ public Builder clearMaxOutstandingBytes() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1986,12 +2222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullRequest) private static final com.google.pubsub.v1.StreamingPullRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullRequest(); } @@ -2000,27 +2236,27 @@ public static com.google.pubsub.v1.StreamingPullRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingPullRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingPullRequest 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; @@ -2035,6 +2271,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/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 similarity index 86% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index c20caa876..392a3b401 100644 --- a/owl-bot-staging/v1/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 @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface StreamingPullRequestOrBuilder extends +public interface StreamingPullRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The subscription for which to initialize the new stream. This
    * must be provided in the first request on the stream, and must not be set in
@@ -16,11 +34,16 @@ public interface StreamingPullRequestOrBuilder extends
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The subscription. */ java.lang.String getSubscription(); /** + * + * *
    * Required. The subscription for which to initialize the new stream. This
    * must be provided in the first request on the stream, and must not be set in
@@ -28,13 +51,17 @@ public interface StreamingPullRequestOrBuilder extends
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for subscription. */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
    * Optional. List of acknowledgement IDs for acknowledging previously received
    * messages (received on this stream or a different stream). If an ack ID has
@@ -45,11 +72,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
    * Optional. List of acknowledgement IDs for acknowledging previously received
    * messages (received on this stream or a different stream). If an ack ID has
@@ -60,10 +89,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ int getAckIdsCount(); /** + * + * *
    * Optional. List of acknowledgement IDs for acknowledging previously received
    * messages (received on this stream or a different stream). If an ack ID has
@@ -74,11 +106,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** + * + * *
    * Optional. List of acknowledgement IDs for acknowledging previously received
    * messages (received on this stream or a different stream). If an ack ID has
@@ -89,13 +124,15 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - com.google.protobuf.ByteString - getAckIdsBytes(int index); + com.google.protobuf.ByteString getAckIdsBytes(int index); /** + * + * *
    * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -110,11 +147,15 @@ public interface StreamingPullRequestOrBuilder extends
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the modifyDeadlineSeconds. */ java.util.List getModifyDeadlineSecondsList(); /** + * + * *
    * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -129,11 +170,15 @@ public interface StreamingPullRequestOrBuilder extends
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of modifyDeadlineSeconds. */ int getModifyDeadlineSecondsCount(); /** + * + * *
    * Optional. The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -148,13 +193,17 @@ public interface StreamingPullRequestOrBuilder extends
    * be aborted with status `INVALID_ARGUMENT`.
    * 
* - * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ int getModifyDeadlineSeconds(int index); /** + * + * *
    * Optional. List of acknowledgement IDs whose deadline will be modified based
    * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -163,12 +212,15 @@ public interface StreamingPullRequestOrBuilder extends
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the modifyDeadlineAckIds. */ - java.util.List - getModifyDeadlineAckIdsList(); + java.util.List getModifyDeadlineAckIdsList(); /** + * + * *
    * Optional. List of acknowledgement IDs whose deadline will be modified based
    * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -177,11 +229,15 @@ public interface StreamingPullRequestOrBuilder extends
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of modifyDeadlineAckIds. */ int getModifyDeadlineAckIdsCount(); /** + * + * *
    * Optional. List of acknowledgement IDs whose deadline will be modified based
    * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -190,12 +246,16 @@ public interface StreamingPullRequestOrBuilder extends
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ java.lang.String getModifyDeadlineAckIds(int index); /** + * + * *
    * Optional. List of acknowledgement IDs whose deadline will be modified based
    * on the corresponding element in `modify_deadline_seconds`. This field can
@@ -204,14 +264,17 @@ public interface StreamingPullRequestOrBuilder extends
    * processing was interrupted.
    * 
* - * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. */ - com.google.protobuf.ByteString - getModifyDeadlineAckIdsBytes(int index); + com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index); /** + * + * *
    * Required. The ack deadline to use for the stream. This must be provided in
    * the first request on the stream, but it can also be updated on subsequent
@@ -220,11 +283,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamAckDeadlineSeconds. */ int getStreamAckDeadlineSeconds(); /** + * + * *
    * Optional. A unique identifier that is used to distinguish client instances
    * from each other. Only needs to be provided on the initial request. When a
@@ -235,10 +301,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The clientId. */ java.lang.String getClientId(); /** + * + * *
    * Optional. A unique identifier that is used to distinguish client instances
    * from each other. Only needs to be provided on the initial request. When a
@@ -249,12 +318,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for clientId. */ - com.google.protobuf.ByteString - getClientIdBytes(); + com.google.protobuf.ByteString getClientIdBytes(); /** + * + * *
    * Optional. Flow control settings for the maximum number of outstanding
    * messages. When there are `max_outstanding_messages` currently sent to the
@@ -268,11 +339,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxOutstandingMessages. */ long getMaxOutstandingMessages(); /** + * + * *
    * Optional. Flow control settings for the maximum number of outstanding
    * bytes. When there are `max_outstanding_bytes` or more worth of messages
@@ -286,6 +360,7 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxOutstandingBytes. */ long getMaxOutstandingBytes(); diff --git a/owl-bot-staging/v1/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 similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index a6fba4a56..fc79cb7f8 100644 --- a/owl-bot-staging/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,6 +20,8 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `StreamingPull` method. This response is used to stream
  * messages from the server to the client.
@@ -12,216 +29,265 @@
  *
  * Protobuf type {@code google.pubsub.v1.StreamingPullResponse}
  */
-public final class StreamingPullResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingPullResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse)
     StreamingPullResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingPullResponse.newBuilder() to construct.
   private StreamingPullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingPullResponse() {
     receivedMessages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingPullResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.StreamingPullResponse.class, com.google.pubsub.v1.StreamingPullResponse.Builder.class);
+            com.google.pubsub.v1.StreamingPullResponse.class,
+            com.google.pubsub.v1.StreamingPullResponse.Builder.class);
   }
 
-  public interface AcknowledgeConfirmationOrBuilder extends
+  public interface AcknowledgeConfirmationOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ int getAckIdsCount(); /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - com.google.protobuf.ByteString - getAckIdsBytes(int index); + com.google.protobuf.ByteString getAckIdsBytes(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the invalidAckIds. */ - java.util.List - getInvalidAckIdsList(); + java.util.List getInvalidAckIdsList(); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. */ - com.google.protobuf.ByteString - getInvalidAckIdsBytes(int index); + com.google.protobuf.ByteString getInvalidAckIdsBytes(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the unorderedAckIds. */ - java.util.List - getUnorderedAckIdsList(); + java.util.List getUnorderedAckIdsList(); /** + * + * *
      * Optional. List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of unorderedAckIds. */ int getUnorderedAckIdsCount(); /** + * + * *
      * Optional. List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ java.lang.String getUnorderedAckIds(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. */ - com.google.protobuf.ByteString - getUnorderedAckIdsBytes(int index); + com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the temporaryFailedAckIds. */ - java.util.List - getTemporaryFailedAckIdsList(); + java.util.List getTemporaryFailedAckIdsList(); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of temporaryFailedAckIds. */ int getTemporaryFailedAckIdsCount(); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. */ java.lang.String getTemporaryFailedAckIds(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. */ - com.google.protobuf.ByteString - getTemporaryFailedAckIdsBytes(int index); + com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index); } /** + * + * *
    * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    * previously received message.
@@ -229,79 +295,86 @@ public interface AcknowledgeConfirmationOrBuilder extends
    *
    * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation}
    */
-  public static final class AcknowledgeConfirmation extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AcknowledgeConfirmation extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
       AcknowledgeConfirmationOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AcknowledgeConfirmation.newBuilder() to construct.
     private AcknowledgeConfirmation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private AcknowledgeConfirmation() {
-      ackIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      invalidAckIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      unorderedAckIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      temporaryFailedAckIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AcknowledgeConfirmation();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.class, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder.class);
+              com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.class,
+              com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder.class);
     }
 
     public static final int ACK_IDS_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList ackIds_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
+     *
+     *
      * 
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -309,55 +382,66 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } public static final int INVALID_ACK_IDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList - getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_; } /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -365,53 +449,64 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. */ - public com.google.protobuf.ByteString - getInvalidAckIdsBytes(int index) { + public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } public static final int UNORDERED_ACK_IDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the unorderedAckIds. */ - public com.google.protobuf.ProtocolStringList - getUnorderedAckIdsList() { + public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { return unorderedAckIds_; } /** + * + * *
      * Optional. List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of unorderedAckIds. */ public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } /** + * + * *
      * Optional. List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ @@ -419,55 +514,69 @@ public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } /** + * + * *
      * Optional. List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. */ - public com.google.protobuf.ByteString - getUnorderedAckIdsBytes(int index) { + public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { return unorderedAckIds_.getByteString(index); } public static final int TEMPORARY_FAILED_ACK_IDS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the temporaryFailedAckIds. */ - public com.google.protobuf.ProtocolStringList - getTemporaryFailedAckIdsList() { + public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { return temporaryFailedAckIds_; } /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of temporaryFailedAckIds. */ public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. */ @@ -475,21 +584,25 @@ public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. */ - public com.google.protobuf.ByteString - getTemporaryFailedAckIdsBytes(int index) { + public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { return temporaryFailedAckIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -501,8 +614,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ackIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackIds_.getRaw(i)); } @@ -513,7 +625,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unorderedAckIds_.getRaw(i)); } for (int i = 0; i < temporaryFailedAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, temporaryFailedAckIds_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, temporaryFailedAckIds_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -564,21 +677,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation other = (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) obj; + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation other = + (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) obj; - if (!getAckIdsList() - .equals(other.getAckIdsList())) return false; - if (!getInvalidAckIdsList() - .equals(other.getInvalidAckIdsList())) return false; - if (!getUnorderedAckIdsList() - .equals(other.getUnorderedAckIdsList())) return false; - if (!getTemporaryFailedAckIdsList() - .equals(other.getTemporaryFailedAckIdsList())) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false; + if (!getUnorderedAckIdsList().equals(other.getUnorderedAckIdsList())) return false; + if (!getTemporaryFailedAckIdsList().equals(other.getTemporaryFailedAckIdsList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -612,89 +723,95 @@ public int hashCode() { } public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StreamingPullResponse.AcknowledgeConfirmation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation 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.StreamingPullResponse.AcknowledgeConfirmation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation 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.StreamingPullResponse.AcknowledgeConfirmation + 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.StreamingPullResponse.AcknowledgeConfirmation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation prototype) { + + public static Builder newBuilder( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -704,6 +821,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Acknowledgement IDs sent in one or more previous requests to acknowledge a
      * previously received message.
@@ -711,57 +830,56 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
         com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.class, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder.class);
+                com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.class,
+                com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder.class);
       }
 
-      // Construct using com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
         bitField0_ = 0;
-        ackIds_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
-        invalidAckIds_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
-        unorderedAckIds_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
-        temporaryFailedAckIds_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
+        ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
       }
 
       @java.lang.Override
-      public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getDefaultInstanceForType() {
-        return com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance();
+      public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
+          getDefaultInstanceForType() {
+        return com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -775,13 +893,17 @@ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation build(
 
       @java.lang.Override
       public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation buildPartial() {
-        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result = new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result =
+            new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result) {
+      private void buildPartial0(
+          com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           ackIds_.makeImmutable();
@@ -805,46 +927,53 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse.Acknowledg
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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.StreamingPullResponse.AcknowledgeConfirmation) {
-          return mergeFrom((com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)other);
+          return mergeFrom(
+              (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation other) {
-        if (other == com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation other) {
+        if (other
+            == com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
+                .getDefaultInstance()) return this;
         if (!other.ackIds_.isEmpty()) {
           if (ackIds_.isEmpty()) {
             ackIds_ = other.ackIds_;
@@ -911,36 +1040,41 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureAckIdsIsMutable();
-                ackIds_.add(s);
-                break;
-              } // case 10
-              case 18: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureInvalidAckIdsIsMutable();
-                invalidAckIds_.add(s);
-                break;
-              } // case 18
-              case 26: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUnorderedAckIdsIsMutable();
-                unorderedAckIds_.add(s);
-                break;
-              } // case 26
-              case 34: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTemporaryFailedAckIdsIsMutable();
-                temporaryFailedAckIds_.add(s);
-                break;
-              } // case 34
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureAckIdsIsMutable();
+                  ackIds_.add(s);
+                  break;
+                } // case 10
+              case 18:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureInvalidAckIdsIsMutable();
+                  invalidAckIds_.add(s);
+                  break;
+                } // case 18
+              case 26:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureUnorderedAckIdsIsMutable();
+                  unorderedAckIds_.add(s);
+                  break;
+                } // case 26
+              case 34:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureTemporaryFailedAckIdsIsMutable();
+                  temporaryFailedAckIds_.add(s);
+                  break;
+                } // case 34
+              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) {
@@ -950,10 +1084,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList ackIds_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
+
       private void ensureAckIdsIsMutable() {
         if (!ackIds_.isModifiable()) {
           ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
@@ -961,35 +1097,43 @@ private void ensureAckIdsIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
+       *
+       *
        * 
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -997,31 +1141,37 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.set(index, value); bitField0_ |= 0x00000001; @@ -1029,17 +1179,21 @@ public Builder setAckIds( return this; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.add(value); bitField0_ |= 0x00000001; @@ -1047,50 +1201,58 @@ public Builder addAckIds( return this; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The ackIds to add. * @return This builder for chaining. */ - public Builder addAllAckIds( - java.lang.Iterable values) { + public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); @@ -1101,6 +1263,7 @@ public Builder addAckIdsBytes( private com.google.protobuf.LazyStringArrayList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureInvalidAckIdsIsMutable() { if (!invalidAckIds_.isModifiable()) { invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); @@ -1108,38 +1271,46 @@ private void ensureInvalidAckIdsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList - getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { invalidAckIds_.makeImmutable(); return invalidAckIds_; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -1147,33 +1318,39 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. */ - public com.google.protobuf.ByteString - getInvalidAckIdsBytes(int index) { + public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The invalidAckIds to set. * @return This builder for chaining. */ - public Builder setInvalidAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInvalidAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureInvalidAckIdsIsMutable(); invalidAckIds_.set(index, value); bitField0_ |= 0x00000002; @@ -1181,18 +1358,22 @@ public Builder setInvalidAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addInvalidAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); bitField0_ |= 0x00000002; @@ -1200,53 +1381,61 @@ public Builder addInvalidAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The invalidAckIds to add. * @return This builder for chaining. */ - public Builder addAllInvalidAckIds( - java.lang.Iterable values) { + public Builder addAllInvalidAckIds(java.lang.Iterable values) { ensureInvalidAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invalidAckIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidAckIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInvalidAckIds() { - invalidAckIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); @@ -1257,6 +1446,7 @@ public Builder addInvalidAckIdsBytes( private com.google.protobuf.LazyStringArrayList unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnorderedAckIdsIsMutable() { if (!unorderedAckIds_.isModifiable()) { unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList(unorderedAckIds_); @@ -1264,35 +1454,46 @@ private void ensureUnorderedAckIdsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the unorderedAckIds. */ - public com.google.protobuf.ProtocolStringList - getUnorderedAckIdsList() { + public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { unorderedAckIds_.makeImmutable(); return unorderedAckIds_; } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of unorderedAckIds. */ public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ @@ -1300,31 +1501,39 @@ public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. */ - public com.google.protobuf.ByteString - getUnorderedAckIdsBytes(int index) { + public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { return unorderedAckIds_.getByteString(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The unorderedAckIds to set. * @return This builder for chaining. */ - public Builder setUnorderedAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnorderedAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.set(index, value); bitField0_ |= 0x00000004; @@ -1332,17 +1541,22 @@ public Builder setUnorderedAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The unorderedAckIds to add. * @return This builder for chaining. */ - public Builder addUnorderedAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnorderedAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.add(value); bitField0_ |= 0x00000004; @@ -1350,50 +1564,61 @@ public Builder addUnorderedAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The unorderedAckIds to add. * @return This builder for chaining. */ - public Builder addAllUnorderedAckIds( - java.lang.Iterable values) { + public Builder addAllUnorderedAckIds(java.lang.Iterable values) { ensureUnorderedAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unorderedAckIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unorderedAckIds_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearUnorderedAckIds() { - unorderedAckIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were out of order.
        * 
* - * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the unorderedAckIds to add. * @return This builder for chaining. */ - public Builder addUnorderedAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnorderedAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.add(value); @@ -1404,45 +1629,61 @@ public Builder addUnorderedAckIdsBytes( private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTemporaryFailedAckIdsIsMutable() { if (!temporaryFailedAckIds_.isModifiable()) { - temporaryFailedAckIds_ = new com.google.protobuf.LazyStringArrayList(temporaryFailedAckIds_); + temporaryFailedAckIds_ = + new com.google.protobuf.LazyStringArrayList(temporaryFailedAckIds_); } bitField0_ |= 0x00000008; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the temporaryFailedAckIds. */ - public com.google.protobuf.ProtocolStringList - getTemporaryFailedAckIdsList() { + public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { temporaryFailedAckIds_.makeImmutable(); return temporaryFailedAckIds_; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of temporaryFailedAckIds. */ public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. */ @@ -1450,33 +1691,43 @@ public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. */ - public com.google.protobuf.ByteString - getTemporaryFailedAckIdsBytes(int index) { + public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { return temporaryFailedAckIds_.getByteString(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The temporaryFailedAckIds to set. * @return This builder for chaining. */ - public Builder setTemporaryFailedAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTemporaryFailedAckIdsIsMutable(); temporaryFailedAckIds_.set(index, value); bitField0_ |= 0x00000008; @@ -1484,18 +1735,24 @@ public Builder setTemporaryFailedAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The temporaryFailedAckIds to add. * @return This builder for chaining. */ - public Builder addTemporaryFailedAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTemporaryFailedAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTemporaryFailedAckIdsIsMutable(); temporaryFailedAckIds_.add(value); bitField0_ |= 0x00000008; @@ -1503,53 +1760,67 @@ public Builder addTemporaryFailedAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The temporaryFailedAckIds to add. * @return This builder for chaining. */ - public Builder addAllTemporaryFailedAckIds( - java.lang.Iterable values) { + public Builder addAllTemporaryFailedAckIds(java.lang.Iterable values) { ensureTemporaryFailedAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, temporaryFailedAckIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, temporaryFailedAckIds_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTemporaryFailedAckIds() { - temporaryFailedAckIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the temporaryFailedAckIds to add. * @return This builder for chaining. */ - public Builder addTemporaryFailedAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTemporaryFailedAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTemporaryFailedAckIdsIsMutable(); temporaryFailedAckIds_.add(value); @@ -1557,6 +1828,7 @@ public Builder addTemporaryFailedAckIdsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1569,41 +1841,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) - private static final com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation DEFAULT_INSTANCE; + private static final com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(); } - public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getDefaultInstance() { + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeConfirmation 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeConfirmation 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; @@ -1615,148 +1890,185 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getDefaultInstanceForType() { + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ModifyAckDeadlineConfirmationOrBuilder extends + public interface ModifyAckDeadlineConfirmationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ int getAckIdsCount(); /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - com.google.protobuf.ByteString - getAckIdsBytes(int index); + com.google.protobuf.ByteString getAckIdsBytes(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the invalidAckIds. */ - java.util.List - getInvalidAckIdsList(); + java.util.List getInvalidAckIdsList(); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. */ - com.google.protobuf.ByteString - getInvalidAckIdsBytes(int index); + com.google.protobuf.ByteString getInvalidAckIdsBytes(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the temporaryFailedAckIds. */ - java.util.List - getTemporaryFailedAckIdsList(); + java.util.List getTemporaryFailedAckIdsList(); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of temporaryFailedAckIds. */ int getTemporaryFailedAckIdsCount(); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. */ java.lang.String getTemporaryFailedAckIds(int index); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. */ - com.google.protobuf.ByteString - getTemporaryFailedAckIdsBytes(int index); + com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index); } /** + * + * *
    * Acknowledgement IDs sent in one or more previous requests to modify the
    * deadline for a specific message.
@@ -1764,77 +2076,88 @@ public interface ModifyAckDeadlineConfirmationOrBuilder extends
    *
    * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation}
    */
-  public static final class ModifyAckDeadlineConfirmation extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ModifyAckDeadlineConfirmation
+      extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)
       ModifyAckDeadlineConfirmationOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ModifyAckDeadlineConfirmation.newBuilder() to construct.
-    private ModifyAckDeadlineConfirmation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+    private ModifyAckDeadlineConfirmation(
+        com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private ModifyAckDeadlineConfirmation() {
-      ackIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      invalidAckIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
-      temporaryFailedAckIds_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ModifyAckDeadlineConfirmation();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.class, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder.class);
+              com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.class,
+              com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
+                  .class);
     }
 
     public static final int ACK_IDS_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private com.google.protobuf.LazyStringArrayList ackIds_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
     /**
+     *
+     *
      * 
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -1842,55 +2165,66 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
      * Optional. Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } public static final int INVALID_ACK_IDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList - getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_; } /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -1898,56 +2232,70 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** + * + * *
      * Optional. List of acknowledgement IDs that were malformed or whose
      * acknowledgement deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. */ - public com.google.protobuf.ByteString - getInvalidAckIdsBytes(int index) { + public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } public static final int TEMPORARY_FAILED_ACK_IDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the temporaryFailedAckIds. */ - public com.google.protobuf.ProtocolStringList - getTemporaryFailedAckIdsList() { + public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { return temporaryFailedAckIds_; } /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of temporaryFailedAckIds. */ public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. */ @@ -1955,21 +2303,25 @@ public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } /** + * + * *
      * Optional. List of acknowledgement IDs that failed processing with
      * temporary issues.
      * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. */ - public com.google.protobuf.ByteString - getTemporaryFailedAckIdsBytes(int index) { + public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { return temporaryFailedAckIds_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1981,8 +2333,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ackIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackIds_.getRaw(i)); } @@ -1990,7 +2341,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invalidAckIds_.getRaw(i)); } for (int i = 0; i < temporaryFailedAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, temporaryFailedAckIds_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, temporaryFailedAckIds_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -2033,19 +2385,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)) { + if (!(obj + instanceof com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation other = (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) obj; + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation other = + (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) obj; - if (!getAckIdsList() - .equals(other.getAckIdsList())) return false; - if (!getInvalidAckIdsList() - .equals(other.getInvalidAckIdsList())) return false; - if (!getTemporaryFailedAckIdsList() - .equals(other.getTemporaryFailedAckIdsList())) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false; + if (!getTemporaryFailedAckIdsList().equals(other.getTemporaryFailedAckIdsList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2074,90 +2426,101 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + 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.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + 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.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation 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.StreamingPullResponse.ModifyAckDeadlineConfirmation + 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.StreamingPullResponse.ModifyAckDeadlineConfirmation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation 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.StreamingPullResponse.ModifyAckDeadlineConfirmation + 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.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom( - com.google.protobuf.CodedInputStream 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.StreamingPullResponse.ModifyAckDeadlineConfirmation + 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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation prototype) { + + public static Builder newBuilder( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2167,6 +2530,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Acknowledgement IDs sent in one or more previous requests to modify the
      * deadline for a specific message.
@@ -2174,60 +2539,62 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)
         com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.class, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder.class);
+                com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.class,
+                com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
+                    .class);
       }
 
-      // Construct using com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder()
-      private Builder() {
+      // Construct using
+      // com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder()
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
         bitField0_ = 0;
-        ackIds_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
-        invalidAckIds_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
-        temporaryFailedAckIds_ =
-            com.google.protobuf.LazyStringArrayList.emptyList();
+        ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
+        temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.pubsub.v1.PubsubProto
+            .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
       }
 
       @java.lang.Override
-      public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getDefaultInstanceForType() {
-        return com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.getDefaultInstance();
+      public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
+          getDefaultInstanceForType() {
+        return com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation build() {
-        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result = buildPartial();
+        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -2235,14 +2602,19 @@ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
       }
 
       @java.lang.Override
-      public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation buildPartial() {
-        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result = new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
+          buildPartial() {
+        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result =
+            new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result) {
+      private void buildPartial0(
+          com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           ackIds_.makeImmutable();
@@ -2262,46 +2634,54 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse.ModifyAckD
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          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) {
+      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) {
+      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) {
+          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) {
+          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.StreamingPullResponse.ModifyAckDeadlineConfirmation) {
-          return mergeFrom((com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)other);
+        if (other
+            instanceof com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) {
+          return mergeFrom(
+              (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation other) {
-        if (other == com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation other) {
+        if (other
+            == com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
+                .getDefaultInstance()) return this;
         if (!other.ackIds_.isEmpty()) {
           if (ackIds_.isEmpty()) {
             ackIds_ = other.ackIds_;
@@ -2358,30 +2738,34 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureAckIdsIsMutable();
-                ackIds_.add(s);
-                break;
-              } // case 10
-              case 18: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureInvalidAckIdsIsMutable();
-                invalidAckIds_.add(s);
-                break;
-              } // case 18
-              case 26: {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTemporaryFailedAckIdsIsMutable();
-                temporaryFailedAckIds_.add(s);
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureAckIdsIsMutable();
+                  ackIds_.add(s);
+                  break;
+                } // case 10
+              case 18:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureInvalidAckIdsIsMutable();
+                  invalidAckIds_.add(s);
+                  break;
+                } // case 18
+              case 26:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  ensureTemporaryFailedAckIdsIsMutable();
+                  temporaryFailedAckIds_.add(s);
+                  break;
+                } // case 26
+              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) {
@@ -2391,10 +2775,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.protobuf.LazyStringArrayList ackIds_ =
           com.google.protobuf.LazyStringArrayList.emptyList();
+
       private void ensureAckIdsIsMutable() {
         if (!ackIds_.isModifiable()) {
           ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
@@ -2402,35 +2788,43 @@ private void ensureAckIdsIsMutable() {
         bitField0_ |= 0x00000001;
       }
       /**
+       *
+       *
        * 
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -2438,31 +2832,37 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.set(index, value); bitField0_ |= 0x00000001; @@ -2470,17 +2870,21 @@ public Builder setAckIds( return this; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAckIdsIsMutable(); ackIds_.add(value); bitField0_ |= 0x00000001; @@ -2488,50 +2892,58 @@ public Builder addAckIds( return this; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The ackIds to add. * @return This builder for chaining. */ - public Builder addAllAckIds( - java.lang.Iterable values) { + public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
        * Optional. Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); @@ -2542,6 +2954,7 @@ public Builder addAckIdsBytes( private com.google.protobuf.LazyStringArrayList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureInvalidAckIdsIsMutable() { if (!invalidAckIds_.isModifiable()) { invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); @@ -2549,38 +2962,46 @@ private void ensureInvalidAckIdsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList - getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { invalidAckIds_.makeImmutable(); return invalidAckIds_; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -2588,33 +3009,39 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. */ - public com.google.protobuf.ByteString - getInvalidAckIdsBytes(int index) { + public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The invalidAckIds to set. * @return This builder for chaining. */ - public Builder setInvalidAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInvalidAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureInvalidAckIdsIsMutable(); invalidAckIds_.set(index, value); bitField0_ |= 0x00000002; @@ -2622,18 +3049,22 @@ public Builder setInvalidAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addInvalidAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); bitField0_ |= 0x00000002; @@ -2641,53 +3072,61 @@ public Builder addInvalidAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The invalidAckIds to add. * @return This builder for chaining. */ - public Builder addAllInvalidAckIds( - java.lang.Iterable values) { + public Builder addAllInvalidAckIds(java.lang.Iterable values) { ensureInvalidAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, invalidAckIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidAckIds_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInvalidAckIds() { - invalidAckIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that were malformed or whose
        * acknowledgement deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); @@ -2698,45 +3137,61 @@ public Builder addInvalidAckIdsBytes( private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTemporaryFailedAckIdsIsMutable() { if (!temporaryFailedAckIds_.isModifiable()) { - temporaryFailedAckIds_ = new com.google.protobuf.LazyStringArrayList(temporaryFailedAckIds_); + temporaryFailedAckIds_ = + new com.google.protobuf.LazyStringArrayList(temporaryFailedAckIds_); } bitField0_ |= 0x00000004; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the temporaryFailedAckIds. */ - public com.google.protobuf.ProtocolStringList - getTemporaryFailedAckIdsList() { + public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { temporaryFailedAckIds_.makeImmutable(); return temporaryFailedAckIds_; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of temporaryFailedAckIds. */ public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. */ @@ -2744,33 +3199,43 @@ public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. */ - public com.google.protobuf.ByteString - getTemporaryFailedAckIdsBytes(int index) { + public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { return temporaryFailedAckIds_.getByteString(index); } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The temporaryFailedAckIds to set. * @return This builder for chaining. */ - public Builder setTemporaryFailedAckIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTemporaryFailedAckIdsIsMutable(); temporaryFailedAckIds_.set(index, value); bitField0_ |= 0x00000004; @@ -2778,18 +3243,24 @@ public Builder setTemporaryFailedAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The temporaryFailedAckIds to add. * @return This builder for chaining. */ - public Builder addTemporaryFailedAckIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTemporaryFailedAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTemporaryFailedAckIdsIsMutable(); temporaryFailedAckIds_.add(value); bitField0_ |= 0x00000004; @@ -2797,53 +3268,67 @@ public Builder addTemporaryFailedAckIds( return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The temporaryFailedAckIds to add. * @return This builder for chaining. */ - public Builder addAllTemporaryFailedAckIds( - java.lang.Iterable values) { + public Builder addAllTemporaryFailedAckIds(java.lang.Iterable values) { ensureTemporaryFailedAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, temporaryFailedAckIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, temporaryFailedAckIds_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTemporaryFailedAckIds() { - temporaryFailedAckIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
        * Optional. List of acknowledgement IDs that failed processing with
        * temporary issues.
        * 
* - * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the temporaryFailedAckIds to add. * @return This builder for chaining. */ - public Builder addTemporaryFailedAckIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTemporaryFailedAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTemporaryFailedAckIdsIsMutable(); temporaryFailedAckIds_.add(value); @@ -2851,6 +3336,7 @@ public Builder addTemporaryFailedAckIdsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2863,41 +3349,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) - private static final com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation DEFAULT_INSTANCE; + private static final com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(); + DEFAULT_INSTANCE = + new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(); } - public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getDefaultInstance() { + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyAckDeadlineConfirmation 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyAckDeadlineConfirmation 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; @@ -2909,85 +3399,100 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getDefaultInstanceForType() { + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SubscriptionPropertiesOrBuilder extends + public interface SubscriptionPropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. True iff exactly once delivery is enabled for this
      * subscription.
      * 
* - * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The exactlyOnceDeliveryEnabled. */ boolean getExactlyOnceDeliveryEnabled(); /** + * + * *
      * Optional. True iff message ordering is enabled for this subscription.
      * 
* * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The messageOrderingEnabled. */ boolean getMessageOrderingEnabled(); } /** + * + * *
    * Subscription properties sent as part of the response.
    * 
* * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} */ - public static final class SubscriptionProperties extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SubscriptionProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) SubscriptionPropertiesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubscriptionProperties.newBuilder() to construct. private SubscriptionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubscriptionProperties() { - } + + private SubscriptionProperties() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubscriptionProperties(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); } public static final int EXACTLY_ONCE_DELIVERY_ENABLED_FIELD_NUMBER = 1; private boolean exactlyOnceDeliveryEnabled_ = false; /** + * + * *
      * Optional. True iff exactly once delivery is enabled for this
      * subscription.
      * 
* - * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The exactlyOnceDeliveryEnabled. */ @java.lang.Override @@ -2998,11 +3503,14 @@ public boolean getExactlyOnceDeliveryEnabled() { public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; private boolean messageOrderingEnabled_ = false; /** + * + * *
      * Optional. True iff message ordering is enabled for this subscription.
      * 
* * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The messageOrderingEnabled. */ @java.lang.Override @@ -3011,6 +3519,7 @@ public boolean getMessageOrderingEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3022,8 +3531,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (exactlyOnceDeliveryEnabled_ != false) { output.writeBool(1, exactlyOnceDeliveryEnabled_); } @@ -3040,12 +3548,11 @@ public int getSerializedSize() { size = 0; if (exactlyOnceDeliveryEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, exactlyOnceDeliveryEnabled_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, exactlyOnceDeliveryEnabled_); } if (messageOrderingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, messageOrderingEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, messageOrderingEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3055,17 +3562,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other = (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) obj; + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other = + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) obj; - if (getExactlyOnceDeliveryEnabled() - != other.getExactlyOnceDeliveryEnabled()) return false; - if (getMessageOrderingEnabled() - != other.getMessageOrderingEnabled()) return false; + if (getExactlyOnceDeliveryEnabled() != other.getExactlyOnceDeliveryEnabled()) return false; + if (getMessageOrderingEnabled() != other.getMessageOrderingEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3078,100 +3584,105 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXACTLY_ONCE_DELIVERY_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExactlyOnceDeliveryEnabled()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExactlyOnceDeliveryEnabled()); hash = (37 * hash) + MESSAGE_ORDERING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMessageOrderingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMessageOrderingEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StreamingPullResponse.SubscriptionProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties 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.StreamingPullResponse.SubscriptionProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties 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.StreamingPullResponse.SubscriptionProperties + 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.StreamingPullResponse.SubscriptionProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties prototype) { + + public static Builder newBuilder( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3181,39 +3692,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Subscription properties sent as part of the response.
      * 
* * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); } - // Construct using com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() - private Builder() { + // Construct using + // com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3224,14 +3738,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getDefaultInstanceForType() { - return com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance(); + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstanceForType() { + return com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + .getDefaultInstance(); } @java.lang.Override @@ -3245,13 +3761,17 @@ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties build() @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPartial() { - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = + new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result) { + private void buildPartial0( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.exactlyOnceDeliveryEnabled_ = exactlyOnceDeliveryEnabled_; @@ -3265,46 +3785,53 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse.Subscripti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.StreamingPullResponse.SubscriptionProperties) { - return mergeFrom((com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)other); + return mergeFrom( + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other) { - if (other == com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other) { + if (other + == com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + .getDefaultInstance()) return this; if (other.getExactlyOnceDeliveryEnabled() != false) { setExactlyOnceDeliveryEnabled(other.getExactlyOnceDeliveryEnabled()); } @@ -3330,29 +3857,32 @@ public Builder mergeFrom( throw new java.lang.NullPointerException(); } try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - exactlyOnceDeliveryEnabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - messageOrderingEnabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; break; - } // default: + case 8: + { + exactlyOnceDeliveryEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + messageOrderingEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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) { @@ -3362,16 +3892,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean exactlyOnceDeliveryEnabled_ ; + private boolean exactlyOnceDeliveryEnabled_; /** + * + * *
        * Optional. True iff exactly once delivery is enabled for this
        * subscription.
        * 
* - * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The exactlyOnceDeliveryEnabled. */ @java.lang.Override @@ -3379,12 +3914,16 @@ public boolean getExactlyOnceDeliveryEnabled() { return exactlyOnceDeliveryEnabled_; } /** + * + * *
        * Optional. True iff exactly once delivery is enabled for this
        * subscription.
        * 
* - * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The exactlyOnceDeliveryEnabled to set. * @return This builder for chaining. */ @@ -3396,12 +3935,16 @@ public Builder setExactlyOnceDeliveryEnabled(boolean value) { return this; } /** + * + * *
        * Optional. True iff exactly once delivery is enabled for this
        * subscription.
        * 
* - * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearExactlyOnceDeliveryEnabled() { @@ -3411,13 +3954,16 @@ public Builder clearExactlyOnceDeliveryEnabled() { return this; } - private boolean messageOrderingEnabled_ ; + private boolean messageOrderingEnabled_; /** + * + * *
        * Optional. True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The messageOrderingEnabled. */ @java.lang.Override @@ -3425,11 +3971,14 @@ public boolean getMessageOrderingEnabled() { return messageOrderingEnabled_; } /** + * + * *
        * Optional. True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The messageOrderingEnabled to set. * @return This builder for chaining. */ @@ -3441,11 +3990,14 @@ public Builder setMessageOrderingEnabled(boolean value) { return this; } /** + * + * *
        * Optional. True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMessageOrderingEnabled() { @@ -3454,6 +4006,7 @@ public Builder clearMessageOrderingEnabled() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3466,41 +4019,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) - private static final com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties DEFAULT_INSTANCE; + private static final com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getDefaultInstance() { + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscriptionProperties 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscriptionProperties 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; @@ -3512,83 +4068,109 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getDefaultInstanceForType() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List receivedMessages_; /** + * + * *
    * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getReceivedMessagesList() { return receivedMessages_; } /** + * + * *
    * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getReceivedMessagesOrBuilderList() { return receivedMessages_; } /** + * + * *
    * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getReceivedMessagesCount() { return receivedMessages_.size(); } /** + * + * *
    * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } /** + * + * *
    * Optional. Received Pub/Sub messages. This will not be empty.
    * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { return receivedMessages_.get(index); } public static final int ACKNOWLEDGE_CONFIRMATION_FIELD_NUMBER = 5; - private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledgeConfirmation_; + private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + acknowledgeConfirmation_; /** + * + * *
    * Optional. This field will only be set if `enable_exactly_once_delivery` is
    * set to `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the acknowledgeConfirmation field is set. */ @java.lang.Override @@ -3596,40 +4178,61 @@ public boolean hasAcknowledgeConfirmation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. This field will only be set if `enable_exactly_once_delivery` is
    * set to `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The acknowledgeConfirmation. */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation() { - return acknowledgeConfirmation_ == null ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() : acknowledgeConfirmation_; + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + getAcknowledgeConfirmation() { + return acknowledgeConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() + : acknowledgeConfirmation_; } /** + * + * *
    * Optional. This field will only be set if `enable_exactly_once_delivery` is
    * set to `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder() { - return acknowledgeConfirmation_ == null ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() : acknowledgeConfirmation_; + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder + getAcknowledgeConfirmationOrBuilder() { + return acknowledgeConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() + : acknowledgeConfirmation_; } public static final int MODIFY_ACK_DEADLINE_CONFIRMATION_FIELD_NUMBER = 3; - private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modifyAckDeadlineConfirmation_; + private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + modifyAckDeadlineConfirmation_; /** + * + * *
    * Optional. This field will only be set if `enable_exactly_once_delivery` is
    * set to `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the modifyAckDeadlineConfirmation field is set. */ @java.lang.Override @@ -3637,39 +4240,61 @@ public boolean hasModifyAckDeadlineConfirmation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. This field will only be set if `enable_exactly_once_delivery` is
    * set to `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The modifyAckDeadlineConfirmation. */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation() { - return modifyAckDeadlineConfirmation_ == null ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.getDefaultInstance() : modifyAckDeadlineConfirmation_; + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getModifyAckDeadlineConfirmation() { + return modifyAckDeadlineConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance() + : modifyAckDeadlineConfirmation_; } /** + * + * *
    * Optional. This field will only be set if `enable_exactly_once_delivery` is
    * set to `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder() { - return modifyAckDeadlineConfirmation_ == null ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.getDefaultInstance() : modifyAckDeadlineConfirmation_; + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder + getModifyAckDeadlineConfirmationOrBuilder() { + return modifyAckDeadlineConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance() + : modifyAckDeadlineConfirmation_; } public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; /** + * + * *
    * Optional. Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subscriptionProperties field is set. */ @java.lang.Override @@ -3677,30 +4302,46 @@ public boolean hasSubscriptionProperties() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Optional. Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subscriptionProperties. */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties() { - return subscriptionProperties_ == null ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getSubscriptionProperties() { + return subscriptionProperties_ == null + ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() + : subscriptionProperties_; } /** + * + * *
    * Optional. Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder() { - return subscriptionProperties_ == null ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder + getSubscriptionPropertiesOrBuilder() { + return subscriptionProperties_ == null + ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() + : subscriptionProperties_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3712,8 +4353,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { output.writeMessage(1, receivedMessages_.get(i)); } @@ -3736,20 +4376,20 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < receivedMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, receivedMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getModifyAckDeadlineConfirmation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getModifyAckDeadlineConfirmation()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSubscriptionProperties()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubscriptionProperties()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAcknowledgeConfirmation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAcknowledgeConfirmation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3759,29 +4399,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullResponse other = (com.google.pubsub.v1.StreamingPullResponse) obj; + com.google.pubsub.v1.StreamingPullResponse other = + (com.google.pubsub.v1.StreamingPullResponse) obj; - if (!getReceivedMessagesList() - .equals(other.getReceivedMessagesList())) return false; + if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false; if (hasAcknowledgeConfirmation() != other.hasAcknowledgeConfirmation()) return false; if (hasAcknowledgeConfirmation()) { - if (!getAcknowledgeConfirmation() - .equals(other.getAcknowledgeConfirmation())) return false; + if (!getAcknowledgeConfirmation().equals(other.getAcknowledgeConfirmation())) return false; } - if (hasModifyAckDeadlineConfirmation() != other.hasModifyAckDeadlineConfirmation()) return false; + if (hasModifyAckDeadlineConfirmation() != other.hasModifyAckDeadlineConfirmation()) + return false; if (hasModifyAckDeadlineConfirmation()) { - if (!getModifyAckDeadlineConfirmation() - .equals(other.getModifyAckDeadlineConfirmation())) return false; + if (!getModifyAckDeadlineConfirmation().equals(other.getModifyAckDeadlineConfirmation())) + return false; } if (hasSubscriptionProperties() != other.hasSubscriptionProperties()) return false; if (hasSubscriptionProperties()) { - if (!getSubscriptionProperties() - .equals(other.getSubscriptionProperties())) return false; + if (!getSubscriptionProperties().equals(other.getSubscriptionProperties())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3815,99 +4454,104 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.StreamingPullResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.StreamingPullResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse 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.StreamingPullResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `StreamingPull` method. This response is used to stream
    * messages from the server to the client.
@@ -3915,21 +4559,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.StreamingPullResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse)
       com.google.pubsub.v1.StreamingPullResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.StreamingPullResponse.class, com.google.pubsub.v1.StreamingPullResponse.Builder.class);
+              com.google.pubsub.v1.StreamingPullResponse.class,
+              com.google.pubsub.v1.StreamingPullResponse.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder()
@@ -3937,20 +4583,20 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getReceivedMessagesFieldBuilder();
         getAcknowledgeConfirmationFieldBuilder();
         getModifyAckDeadlineConfirmationFieldBuilder();
         getSubscriptionPropertiesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3981,9 +4627,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
     }
 
     @java.lang.Override
@@ -4002,9 +4648,12 @@ public com.google.pubsub.v1.StreamingPullResponse build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.StreamingPullResponse buildPartial() {
-      com.google.pubsub.v1.StreamingPullResponse result = new com.google.pubsub.v1.StreamingPullResponse(this);
+      com.google.pubsub.v1.StreamingPullResponse result =
+          new com.google.pubsub.v1.StreamingPullResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -4025,21 +4674,24 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse result) {
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.acknowledgeConfirmation_ = acknowledgeConfirmationBuilder_ == null
-            ? acknowledgeConfirmation_
-            : acknowledgeConfirmationBuilder_.build();
+        result.acknowledgeConfirmation_ =
+            acknowledgeConfirmationBuilder_ == null
+                ? acknowledgeConfirmation_
+                : acknowledgeConfirmationBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.modifyAckDeadlineConfirmation_ = modifyAckDeadlineConfirmationBuilder_ == null
-            ? modifyAckDeadlineConfirmation_
-            : modifyAckDeadlineConfirmationBuilder_.build();
+        result.modifyAckDeadlineConfirmation_ =
+            modifyAckDeadlineConfirmationBuilder_ == null
+                ? modifyAckDeadlineConfirmation_
+                : modifyAckDeadlineConfirmationBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.subscriptionProperties_ = subscriptionPropertiesBuilder_ == null
-            ? subscriptionProperties_
-            : subscriptionPropertiesBuilder_.build();
+        result.subscriptionProperties_ =
+            subscriptionPropertiesBuilder_ == null
+                ? subscriptionProperties_
+                : subscriptionPropertiesBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       result.bitField0_ |= to_bitField0_;
@@ -4049,38 +4701,39 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.StreamingPullResponse) {
-        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other);
+        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4107,9 +4760,10 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) {
             receivedMessagesBuilder_ = null;
             receivedMessages_ = other.receivedMessages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            receivedMessagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReceivedMessagesFieldBuilder() : null;
+            receivedMessagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReceivedMessagesFieldBuilder()
+                    : null;
           } else {
             receivedMessagesBuilder_.addAllMessages(other.receivedMessages_);
           }
@@ -4150,46 +4804,47 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.pubsub.v1.ReceivedMessage m =
-                  input.readMessage(
-                      com.google.pubsub.v1.ReceivedMessage.parser(),
-                      extensionRegistry);
-              if (receivedMessagesBuilder_ == null) {
-                ensureReceivedMessagesIsMutable();
-                receivedMessages_.add(m);
-              } else {
-                receivedMessagesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 26: {
-              input.readMessage(
-                  getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getSubscriptionPropertiesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getAcknowledgeConfirmationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.pubsub.v1.ReceivedMessage m =
+                    input.readMessage(
+                        com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry);
+                if (receivedMessagesBuilder_ == null) {
+                  ensureReceivedMessagesIsMutable();
+                  receivedMessages_.add(m);
+                } else {
+                  receivedMessagesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 26:
+              {
+                input.readMessage(
+                    getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(
+                    getSubscriptionPropertiesFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(
+                    getAcknowledgeConfirmationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 42
+            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) {
@@ -4199,26 +4854,36 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List receivedMessages_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureReceivedMessagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        receivedMessages_ = new java.util.ArrayList(receivedMessages_);
+        receivedMessages_ =
+            new java.util.ArrayList(receivedMessages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> receivedMessagesBuilder_;
+            com.google.pubsub.v1.ReceivedMessage,
+            com.google.pubsub.v1.ReceivedMessage.Builder,
+            com.google.pubsub.v1.ReceivedMessageOrBuilder>
+        receivedMessagesBuilder_;
 
     /**
+     *
+     *
      * 
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesList() { if (receivedMessagesBuilder_ == null) { @@ -4228,11 +4893,15 @@ public java.util.List getReceivedMessagesL } } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getReceivedMessagesCount() { if (receivedMessagesBuilder_ == null) { @@ -4242,11 +4911,15 @@ public int getReceivedMessagesCount() { } } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -4256,14 +4929,17 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { } } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReceivedMessages( - int index, com.google.pubsub.v1.ReceivedMessage value) { + public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4277,11 +4953,15 @@ public Builder setReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4295,11 +4975,15 @@ public Builder setReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -4315,14 +4999,17 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addReceivedMessages( - int index, com.google.pubsub.v1.ReceivedMessage value) { + public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4336,11 +5023,15 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4354,11 +5045,15 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4372,18 +5067,21 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllReceivedMessages( java.lang.Iterable values) { if (receivedMessagesBuilder_ == null) { ensureReceivedMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, receivedMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receivedMessages_); onChanged(); } else { receivedMessagesBuilder_.addAllMessages(values); @@ -4391,11 +5089,15 @@ public Builder addAllReceivedMessages( return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReceivedMessages() { if (receivedMessagesBuilder_ == null) { @@ -4408,11 +5110,15 @@ public Builder clearReceivedMessages() { return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -4425,39 +5131,50 @@ public Builder removeReceivedMessages(int index) { return this; } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { if (receivedMessagesBuilder_ == null) { - return receivedMessages_.get(index); } else { + return receivedMessages_.get(index); + } else { return receivedMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getReceivedMessagesOrBuilderList() { + public java.util.List + getReceivedMessagesOrBuilderList() { if (receivedMessagesBuilder_ != null) { return receivedMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -4465,45 +5182,62 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { - return getReceivedMessagesFieldBuilder().addBuilder( - com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + return getReceivedMessagesFieldBuilder() + .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( - int index) { - return getReceivedMessagesFieldBuilder().addBuilder( - index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { + return getReceivedMessagesFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } /** + * + * *
      * Optional. Received Pub/Sub messages. This will not be empty.
      * 
* - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getReceivedMessagesBuilderList() { + public java.util.List + getReceivedMessagesBuilderList() { return getReceivedMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder> getReceivedMessagesFieldBuilder() { if (receivedMessagesBuilder_ == null) { - receivedMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( + receivedMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder>( receivedMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4513,46 +5247,69 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( return receivedMessagesBuilder_; } - private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledgeConfirmation_; + private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + acknowledgeConfirmation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> acknowledgeConfirmationBuilder_; + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> + acknowledgeConfirmationBuilder_; /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the acknowledgeConfirmation field is set. */ public boolean hasAcknowledgeConfirmation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The acknowledgeConfirmation. */ - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation() { + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + getAcknowledgeConfirmation() { if (acknowledgeConfirmationBuilder_ == null) { - return acknowledgeConfirmation_ == null ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() : acknowledgeConfirmation_; + return acknowledgeConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + .getDefaultInstance() + : acknowledgeConfirmation_; } else { return acknowledgeConfirmationBuilder_.getMessage(); } } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAcknowledgeConfirmation(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { + public Builder setAcknowledgeConfirmation( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { if (acknowledgeConfirmationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4566,15 +5323,20 @@ public Builder setAcknowledgeConfirmation(com.google.pubsub.v1.StreamingPullResp return this; } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAcknowledgeConfirmation( - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder builderForValue) { + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder + builderForValue) { if (acknowledgeConfirmationBuilder_ == null) { acknowledgeConfirmation_ = builderForValue.build(); } else { @@ -4585,18 +5347,25 @@ public Builder setAcknowledgeConfirmation( return this; } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAcknowledgeConfirmation(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { + public Builder mergeAcknowledgeConfirmation( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { if (acknowledgeConfirmationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - acknowledgeConfirmation_ != null && - acknowledgeConfirmation_ != com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && acknowledgeConfirmation_ != null + && acknowledgeConfirmation_ + != com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + .getDefaultInstance()) { getAcknowledgeConfirmationBuilder().mergeFrom(value); } else { acknowledgeConfirmation_ = value; @@ -4611,12 +5380,16 @@ public Builder mergeAcknowledgeConfirmation(com.google.pubsub.v1.StreamingPullRe return this; } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAcknowledgeConfirmation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4629,96 +5402,138 @@ public Builder clearAcknowledgeConfirmation() { return this; } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder getAcknowledgeConfirmationBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder + getAcknowledgeConfirmationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAcknowledgeConfirmationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder + getAcknowledgeConfirmationOrBuilder() { if (acknowledgeConfirmationBuilder_ != null) { return acknowledgeConfirmationBuilder_.getMessageOrBuilder(); } else { - return acknowledgeConfirmation_ == null ? - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() : acknowledgeConfirmation_; + return acknowledgeConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + .getDefaultInstance() + : acknowledgeConfirmation_; } } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> getAcknowledgeConfirmationFieldBuilder() { if (acknowledgeConfirmationBuilder_ == null) { - acknowledgeConfirmationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder>( - getAcknowledgeConfirmation(), - getParentForChildren(), - isClean()); + acknowledgeConfirmationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder>( + getAcknowledgeConfirmation(), getParentForChildren(), isClean()); acknowledgeConfirmation_ = null; } return acknowledgeConfirmationBuilder_; } - private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modifyAckDeadlineConfirmation_; + private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + modifyAckDeadlineConfirmation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> modifyAckDeadlineConfirmationBuilder_; + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> + modifyAckDeadlineConfirmationBuilder_; /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the modifyAckDeadlineConfirmation field is set. */ public boolean hasModifyAckDeadlineConfirmation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The modifyAckDeadlineConfirmation. */ - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation() { + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getModifyAckDeadlineConfirmation() { if (modifyAckDeadlineConfirmationBuilder_ == null) { - return modifyAckDeadlineConfirmation_ == null ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.getDefaultInstance() : modifyAckDeadlineConfirmation_; + return modifyAckDeadlineConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance() + : modifyAckDeadlineConfirmation_; } else { return modifyAckDeadlineConfirmationBuilder_.getMessage(); } } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setModifyAckDeadlineConfirmation(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { + public Builder setModifyAckDeadlineConfirmation( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { if (modifyAckDeadlineConfirmationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4732,15 +5547,20 @@ public Builder setModifyAckDeadlineConfirmation(com.google.pubsub.v1.StreamingPu return this; } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setModifyAckDeadlineConfirmation( - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder builderForValue) { + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder + builderForValue) { if (modifyAckDeadlineConfirmationBuilder_ == null) { modifyAckDeadlineConfirmation_ = builderForValue.build(); } else { @@ -4751,18 +5571,25 @@ public Builder setModifyAckDeadlineConfirmation( return this; } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeModifyAckDeadlineConfirmation(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { + public Builder mergeModifyAckDeadlineConfirmation( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { if (modifyAckDeadlineConfirmationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - modifyAckDeadlineConfirmation_ != null && - modifyAckDeadlineConfirmation_ != com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && modifyAckDeadlineConfirmation_ != null + && modifyAckDeadlineConfirmation_ + != com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance()) { getModifyAckDeadlineConfirmationBuilder().mergeFrom(value); } else { modifyAckDeadlineConfirmation_ = value; @@ -4777,12 +5604,16 @@ public Builder mergeModifyAckDeadlineConfirmation(com.google.pubsub.v1.Streaming return this; } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearModifyAckDeadlineConfirmation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -4795,93 +5626,134 @@ public Builder clearModifyAckDeadlineConfirmation() { return this; } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder getModifyAckDeadlineConfirmationBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder + getModifyAckDeadlineConfirmationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder + getModifyAckDeadlineConfirmationOrBuilder() { if (modifyAckDeadlineConfirmationBuilder_ != null) { return modifyAckDeadlineConfirmationBuilder_.getMessageOrBuilder(); } else { - return modifyAckDeadlineConfirmation_ == null ? - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.getDefaultInstance() : modifyAckDeadlineConfirmation_; + return modifyAckDeadlineConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance() + : modifyAckDeadlineConfirmation_; } } /** + * + * *
      * Optional. This field will only be set if `enable_exactly_once_delivery` is
      * set to `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> getModifyAckDeadlineConfirmationFieldBuilder() { if (modifyAckDeadlineConfirmationBuilder_ == null) { - modifyAckDeadlineConfirmationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder>( - getModifyAckDeadlineConfirmation(), - getParentForChildren(), - isClean()); + modifyAckDeadlineConfirmationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder>( + getModifyAckDeadlineConfirmation(), getParentForChildren(), isClean()); modifyAckDeadlineConfirmation_ = null; } return modifyAckDeadlineConfirmationBuilder_; } - private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; + private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + subscriptionProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> subscriptionPropertiesBuilder_; + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> + subscriptionPropertiesBuilder_; /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the subscriptionProperties field is set. */ public boolean hasSubscriptionProperties() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The subscriptionProperties. */ - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getSubscriptionProperties() { if (subscriptionPropertiesBuilder_ == null) { - return subscriptionProperties_ == null ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; + return subscriptionProperties_ == null + ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() + : subscriptionProperties_; } else { return subscriptionPropertiesBuilder_.getMessage(); } } /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSubscriptionProperties(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { + public Builder setSubscriptionProperties( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { if (subscriptionPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4895,11 +5767,15 @@ public Builder setSubscriptionProperties(com.google.pubsub.v1.StreamingPullRespo return this; } /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubscriptionProperties( com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder builderForValue) { @@ -4913,17 +5789,24 @@ public Builder setSubscriptionProperties( return this; } /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSubscriptionProperties(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { + public Builder mergeSubscriptionProperties( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { if (subscriptionPropertiesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - subscriptionProperties_ != null && - subscriptionProperties_ != com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && subscriptionProperties_ != null + && subscriptionProperties_ + != com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + .getDefaultInstance()) { getSubscriptionPropertiesBuilder().mergeFrom(value); } else { subscriptionProperties_ = value; @@ -4938,11 +5821,15 @@ public Builder mergeSubscriptionProperties(com.google.pubsub.v1.StreamingPullRes return this; } /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSubscriptionProperties() { bitField0_ = (bitField0_ & ~0x00000008); @@ -4955,55 +5842,73 @@ public Builder clearSubscriptionProperties() { return this; } /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder + getSubscriptionPropertiesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSubscriptionPropertiesFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder + getSubscriptionPropertiesOrBuilder() { if (subscriptionPropertiesBuilder_ != null) { return subscriptionPropertiesBuilder_.getMessageOrBuilder(); } else { - return subscriptionProperties_ == null ? - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; + return subscriptionProperties_ == null + ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() + : subscriptionProperties_; } } /** + * + * *
      * Optional. Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> getSubscriptionPropertiesFieldBuilder() { if (subscriptionPropertiesBuilder_ == null) { - subscriptionPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder>( - getSubscriptionProperties(), - getParentForChildren(), - isClean()); + subscriptionPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder>( + getSubscriptionProperties(), getParentForChildren(), isClean()); subscriptionProperties_ = null; } return subscriptionPropertiesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5013,12 +5918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse) private static final com.google.pubsub.v1.StreamingPullResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse(); } @@ -5027,27 +5932,27 @@ public static com.google.pubsub.v1.StreamingPullResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingPullResponse 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingPullResponse 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; @@ -5062,6 +5967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java new file mode 100644 index 000000000..38c37b680 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -0,0 +1,221 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.2 +package com.google.pubsub.v1; + +public interface StreamingPullResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getReceivedMessagesList(); + /** + * + * + *
+   * Optional. Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); + /** + * + * + *
+   * Optional. Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getReceivedMessagesCount(); + /** + * + * + *
+   * Optional. Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getReceivedMessagesOrBuilderList(); + /** + * + * + *
+   * Optional. Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); + + /** + * + * + *
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the acknowledgeConfirmation field is set. + */ + boolean hasAcknowledgeConfirmation(); + /** + * + * + *
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The acknowledgeConfirmation. + */ + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation(); + /** + * + * + *
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder + getAcknowledgeConfirmationOrBuilder(); + + /** + * + * + *
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modifyAckDeadlineConfirmation field is set. + */ + boolean hasModifyAckDeadlineConfirmation(); + /** + * + * + *
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modifyAckDeadlineConfirmation. + */ + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getModifyAckDeadlineConfirmation(); + /** + * + * + *
+   * Optional. This field will only be set if `enable_exactly_once_delivery` is
+   * set to `true`.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder + getModifyAckDeadlineConfirmationOrBuilder(); + + /** + * + * + *
+   * Optional. Properties associated with this subscription.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subscriptionProperties field is set. + */ + boolean hasSubscriptionProperties(); + /** + * + * + *
+   * Optional. Properties associated with this subscription.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subscriptionProperties. + */ + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties(); + /** + * + * + *
+   * Optional. Properties associated with this subscription.
+   * 
+ * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder + getSubscriptionPropertiesOrBuilder(); +} diff --git a/owl-bot-staging/v1/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 similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index ea8daa221..8aae021aa 100644 --- a/owl-bot-staging/v1/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 @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,6 +20,8 @@ package com.google.pubsub.v1; /** + * + * *
  * A subscription resource. If none of `push_config`, `bigquery_config`, or
  * `cloud_storage_config` is set, then the subscriber will pull and ack messages
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.pubsub.v1.Subscription}
  */
-public final class Subscription extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Subscription extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription)
     SubscriptionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Subscription.newBuilder() to construct.
   private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Subscription() {
     name_ = "";
     topic_ = "";
@@ -31,14 +49,13 @@ private Subscription() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Subscription();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_Subscription_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -49,28 +66,33 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
       case 9:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto
+        .internal_static_google_pubsub_v1_Subscription_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.Subscription.class, com.google.pubsub.v1.Subscription.Builder.class);
+            com.google.pubsub.v1.Subscription.class,
+            com.google.pubsub.v1.Subscription.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible states for a subscription.
    * 
* * Protobuf enum {@code google.pubsub.v1.Subscription.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -79,6 +101,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The subscription can actively receive messages
      * 
@@ -87,6 +111,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The subscription cannot receive messages because of an error with the
      * resource to which it pushes messages. See the more detailed error state
@@ -100,6 +126,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Default value. This value is unused.
      * 
@@ -108,6 +136,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The subscription can actively receive messages
      * 
@@ -116,6 +146,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The subscription cannot receive messages because of an error with the
      * resource to which it pushes messages. See the more detailed error state
@@ -126,7 +158,6 @@ public enum State
      */
     public static final int RESOURCE_ERROR_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -151,49 +182,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return RESOURCE_ERROR;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return RESOURCE_ERROR;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.pubsub.v1.Subscription.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -212,9 +243,12 @@ private State(int value) {
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -225,6 +259,7 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -233,14 +268,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -251,16 +287,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -269,16 +304,22 @@ public java.lang.String getName() { } public static final int TOPIC_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** + * + * *
    * Required. The name of the topic from which this subscription is receiving
    * messages. Format is `projects/{project}/topics/{topic}`. The value of this
    * field will be `_deleted-topic_` if the topic has been deleted.
    * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ @java.lang.Override @@ -287,31 +328,33 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
    * Required. The name of the topic from which this subscription is receiving
    * messages. Format is `projects/{project}/topics/{topic}`. The value of this
    * field will be `_deleted-topic_` if the topic has been deleted.
    * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -322,12 +365,16 @@ public java.lang.String getTopic() { public static final int PUSH_CONFIG_FIELD_NUMBER = 4; private com.google.pubsub.v1.PushConfig pushConfig_; /** + * + * *
    * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pushConfig field is set. */ @java.lang.Override @@ -335,12 +382,16 @@ public boolean hasPushConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pushConfig. */ @java.lang.Override @@ -348,12 +399,15 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } /** + * + * *
    * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { @@ -363,12 +417,17 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { public static final int BIGQUERY_CONFIG_FIELD_NUMBER = 18; private com.google.pubsub.v1.BigQueryConfig bigqueryConfig_; /** + * + * *
    * Optional. If delivery to BigQuery is used with this subscription, this
    * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bigqueryConfig field is set. */ @java.lang.Override @@ -376,40 +435,58 @@ public boolean hasBigqueryConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. If delivery to BigQuery is used with this subscription, this
    * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bigqueryConfig. */ @java.lang.Override public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { - return bigqueryConfig_ == null ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() : bigqueryConfig_; + return bigqueryConfig_ == null + ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() + : bigqueryConfig_; } /** + * + * *
    * Optional. If delivery to BigQuery is used with this subscription, this
    * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { - return bigqueryConfig_ == null ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() : bigqueryConfig_; + return bigqueryConfig_ == null + ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() + : bigqueryConfig_; } public static final int CLOUD_STORAGE_CONFIG_FIELD_NUMBER = 22; private com.google.pubsub.v1.CloudStorageConfig cloudStorageConfig_; /** + * + * *
    * Optional. If delivery to Google Cloud Storage is used with this
    * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the cloudStorageConfig field is set. */ @java.lang.Override @@ -417,34 +494,49 @@ public boolean hasCloudStorageConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Optional. If delivery to Google Cloud Storage is used with this
    * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The cloudStorageConfig. */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { - return cloudStorageConfig_ == null ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() : cloudStorageConfig_; + return cloudStorageConfig_ == null + ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() + : cloudStorageConfig_; } /** + * + * *
    * Optional. If delivery to Google Cloud Storage is used with this
    * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder() { - return cloudStorageConfig_ == null ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() : cloudStorageConfig_; + return cloudStorageConfig_ == null + ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() + : cloudStorageConfig_; } public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int ackDeadlineSeconds_ = 0; /** + * + * *
    * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
    * waits for the subscriber to acknowledge receipt before resending the
@@ -469,6 +561,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB
    * 
* * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -479,6 +572,8 @@ public int getAckDeadlineSeconds() { public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7; private boolean retainAckedMessages_ = false; /** + * + * *
    * Optional. Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
@@ -489,6 +584,7 @@ public int getAckDeadlineSeconds() {
    * 
* * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The retainAckedMessages. */ @java.lang.Override @@ -499,6 +595,8 @@ public boolean getRetainAckedMessages() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; /** + * + * *
    * Optional. How long to retain unacknowledged messages in the subscription's
    * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -507,7 +605,10 @@ public boolean getRetainAckedMessages() {
    * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageRetentionDuration field is set. */ @java.lang.Override @@ -515,6 +616,8 @@ public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * Optional. How long to retain unacknowledged messages in the subscription's
    * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -523,14 +626,21 @@ public boolean hasMessageRetentionDuration() {
    * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageRetentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getMessageRetentionDuration() { - return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } /** + * + * *
    * Optional. How long to retain unacknowledged messages in the subscription's
    * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -539,40 +649,46 @@ public com.google.protobuf.Duration getMessageRetentionDuration() {
    * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { - return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } public static final int LABELS_FIELD_NUMBER = 9; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -581,20 +697,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -607,6 +724,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -615,17 +734,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -634,11 +755,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -648,6 +769,8 @@ public java.lang.String getLabelsOrThrow(
   public static final int ENABLE_MESSAGE_ORDERING_FIELD_NUMBER = 10;
   private boolean enableMessageOrdering_ = false;
   /**
+   *
+   *
    * 
    * Optional. If true, messages published with the same `ordering_key` in
    * `PubsubMessage` will be delivered to the subscribers in the order in which
@@ -656,6 +779,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableMessageOrdering. */ @java.lang.Override @@ -666,6 +790,8 @@ public boolean getEnableMessageOrdering() { public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; /** + * + * *
    * Optional. A policy that specifies the conditions for this subscription's
    * expiration. A subscription is considered active as long as any connected
@@ -676,7 +802,10 @@ public boolean getEnableMessageOrdering() {
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expirationPolicy field is set. */ @java.lang.Override @@ -684,6 +813,8 @@ public boolean hasExpirationPolicy() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
    * Optional. A policy that specifies the conditions for this subscription's
    * expiration. A subscription is considered active as long as any connected
@@ -694,14 +825,21 @@ public boolean hasExpirationPolicy() {
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expirationPolicy. */ @java.lang.Override public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { - return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; + return expirationPolicy_ == null + ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() + : expirationPolicy_; } /** + * + * *
    * Optional. A policy that specifies the conditions for this subscription's
    * expiration. A subscription is considered active as long as any connected
@@ -712,17 +850,24 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() {
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { - return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; + return expirationPolicy_ == null + ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() + : expirationPolicy_; } public static final int FILTER_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -732,6 +877,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
    * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -740,14 +886,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -757,16 +904,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -777,6 +923,8 @@ public java.lang.String getFilter() { public static final int DEAD_LETTER_POLICY_FIELD_NUMBER = 13; private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; /** + * + * *
    * Optional. A policy that specifies the conditions for dead lettering
    * messages in this subscription. If dead_letter_policy is not set, dead
@@ -788,7 +936,10 @@ public java.lang.String getFilter() {
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the deadLetterPolicy field is set. */ @java.lang.Override @@ -796,6 +947,8 @@ public boolean hasDeadLetterPolicy() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
    * Optional. A policy that specifies the conditions for dead lettering
    * messages in this subscription. If dead_letter_policy is not set, dead
@@ -807,14 +960,21 @@ public boolean hasDeadLetterPolicy() {
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The deadLetterPolicy. */ @java.lang.Override public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { - return deadLetterPolicy_ == null ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_; + return deadLetterPolicy_ == null + ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() + : deadLetterPolicy_; } /** + * + * *
    * Optional. A policy that specifies the conditions for dead lettering
    * messages in this subscription. If dead_letter_policy is not set, dead
@@ -826,16 +986,22 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() {
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { - return deadLetterPolicy_ == null ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_; + return deadLetterPolicy_ == null + ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() + : deadLetterPolicy_; } public static final int RETRY_POLICY_FIELD_NUMBER = 14; private com.google.pubsub.v1.RetryPolicy retryPolicy_; /** + * + * *
    * Optional. A policy that specifies how Pub/Sub retries message delivery for
    * this subscription.
@@ -846,7 +1012,10 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the retryPolicy field is set. */ @java.lang.Override @@ -854,6 +1023,8 @@ public boolean hasRetryPolicy() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
    * Optional. A policy that specifies how Pub/Sub retries message delivery for
    * this subscription.
@@ -864,14 +1035,21 @@ public boolean hasRetryPolicy() {
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ @java.lang.Override public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { - return retryPolicy_ == null ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; + return retryPolicy_ == null + ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() + : retryPolicy_; } /** + * + * *
    * Optional. A policy that specifies how Pub/Sub retries message delivery for
    * this subscription.
@@ -882,16 +1060,22 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { - return retryPolicy_ == null ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; + return retryPolicy_ == null + ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() + : retryPolicy_; } public static final int DETACHED_FIELD_NUMBER = 15; private boolean detached_ = false; /** + * + * *
    * Optional. Indicates whether the subscription is detached from its topic.
    * Detached subscriptions don't receive messages from their topic and don't
@@ -901,6 +1085,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
    * 
* * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The detached. */ @java.lang.Override @@ -911,6 +1096,8 @@ public boolean getDetached() { public static final int ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER = 16; private boolean enableExactlyOnceDelivery_ = false; /** + * + * *
    * Optional. If true, Pub/Sub provides the following guarantees for the
    * delivery of a message with a given value of `message_id` on this
@@ -927,6 +1114,7 @@ public boolean getDetached() {
    * 
* * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableExactlyOnceDelivery. */ @java.lang.Override @@ -937,6 +1125,8 @@ public boolean getEnableExactlyOnceDelivery() { public static final int TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 17; private com.google.protobuf.Duration topicMessageRetentionDuration_; /** + * + * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -946,7 +1136,10 @@ public boolean getEnableExactlyOnceDelivery() {
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the topicMessageRetentionDuration field is set. */ @java.lang.Override @@ -954,6 +1147,8 @@ public boolean hasTopicMessageRetentionDuration() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -963,14 +1158,21 @@ public boolean hasTopicMessageRetentionDuration() {
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The topicMessageRetentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getTopicMessageRetentionDuration() { - return topicMessageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; + return topicMessageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : topicMessageRetentionDuration_; } /** + * + * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -980,42 +1182,60 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() {
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder() { - return topicMessageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; + return topicMessageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : topicMessageRetentionDuration_; } public static final int STATE_FIELD_NUMBER = 19; private int state_ = 0; /** + * + * *
    * Output only. An output-only field indicating whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. An output-only field indicating whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.pubsub.v1.Subscription.State getState() { - com.google.pubsub.v1.Subscription.State result = com.google.pubsub.v1.Subscription.State.forNumber(state_); + @java.lang.Override + public com.google.pubsub.v1.Subscription.State getState() { + com.google.pubsub.v1.Subscription.State result = + com.google.pubsub.v1.Subscription.State.forNumber(state_); return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1027,8 +1247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1047,12 +1266,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getMessageRetentionDuration()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 9); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); if (enableMessageOrdering_ != false) { output.writeBool(10, enableMessageOrdering_); } @@ -1102,73 +1317,63 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPushConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPushConfig()); } if (ackDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, ackDeadlineSeconds_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, ackDeadlineSeconds_); } if (retainAckedMessages_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, retainAckedMessages_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, retainAckedMessages_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getMessageRetentionDuration()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, labels__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMessageRetentionDuration()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); } if (enableMessageOrdering_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, enableMessageOrdering_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableMessageOrdering_); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getExpirationPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, filter_); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getDeadLetterPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); } if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getRetryPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRetryPolicy()); } if (detached_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, detached_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, detached_); } if (enableExactlyOnceDelivery_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, enableExactlyOnceDelivery_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableExactlyOnceDelivery_); } if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getTopicMessageRetentionDuration()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, getTopicMessageRetentionDuration()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getBigqueryConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getBigqueryConfig()); } if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(19, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, state_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getCloudStorageConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCloudStorageConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1178,70 +1383,55 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.Subscription)) { return super.equals(obj); } com.google.pubsub.v1.Subscription other = (com.google.pubsub.v1.Subscription) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTopic().equals(other.getTopic())) return false; if (hasPushConfig() != other.hasPushConfig()) return false; if (hasPushConfig()) { - if (!getPushConfig() - .equals(other.getPushConfig())) return false; + if (!getPushConfig().equals(other.getPushConfig())) return false; } if (hasBigqueryConfig() != other.hasBigqueryConfig()) return false; if (hasBigqueryConfig()) { - if (!getBigqueryConfig() - .equals(other.getBigqueryConfig())) return false; + if (!getBigqueryConfig().equals(other.getBigqueryConfig())) return false; } if (hasCloudStorageConfig() != other.hasCloudStorageConfig()) return false; if (hasCloudStorageConfig()) { - if (!getCloudStorageConfig() - .equals(other.getCloudStorageConfig())) return false; + if (!getCloudStorageConfig().equals(other.getCloudStorageConfig())) return false; } - if (getAckDeadlineSeconds() - != other.getAckDeadlineSeconds()) return false; - if (getRetainAckedMessages() - != other.getRetainAckedMessages()) return false; + if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false; + if (getRetainAckedMessages() != other.getRetainAckedMessages()) return false; if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false; if (hasMessageRetentionDuration()) { - if (!getMessageRetentionDuration() - .equals(other.getMessageRetentionDuration())) return false; + if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getEnableMessageOrdering() - != other.getEnableMessageOrdering()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getEnableMessageOrdering() != other.getEnableMessageOrdering()) return false; if (hasExpirationPolicy() != other.hasExpirationPolicy()) return false; if (hasExpirationPolicy()) { - if (!getExpirationPolicy() - .equals(other.getExpirationPolicy())) return false; + if (!getExpirationPolicy().equals(other.getExpirationPolicy())) return false; } - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (hasDeadLetterPolicy() != other.hasDeadLetterPolicy()) return false; if (hasDeadLetterPolicy()) { - if (!getDeadLetterPolicy() - .equals(other.getDeadLetterPolicy())) return false; + if (!getDeadLetterPolicy().equals(other.getDeadLetterPolicy())) return false; } if (hasRetryPolicy() != other.hasRetryPolicy()) return false; if (hasRetryPolicy()) { - if (!getRetryPolicy() - .equals(other.getRetryPolicy())) return false; - } - if (getDetached() - != other.getDetached()) return false; - if (getEnableExactlyOnceDelivery() - != other.getEnableExactlyOnceDelivery()) return false; - if (hasTopicMessageRetentionDuration() != other.hasTopicMessageRetentionDuration()) return false; + if (!getRetryPolicy().equals(other.getRetryPolicy())) return false; + } + if (getDetached() != other.getDetached()) return false; + if (getEnableExactlyOnceDelivery() != other.getEnableExactlyOnceDelivery()) return false; + if (hasTopicMessageRetentionDuration() != other.hasTopicMessageRetentionDuration()) + return false; if (hasTopicMessageRetentionDuration()) { - if (!getTopicMessageRetentionDuration() - .equals(other.getTopicMessageRetentionDuration())) return false; + if (!getTopicMessageRetentionDuration().equals(other.getTopicMessageRetentionDuration())) + return false; } if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1274,8 +1464,7 @@ public int hashCode() { hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getAckDeadlineSeconds(); hash = (37 * hash) + RETAIN_ACKED_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRetainAckedMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRetainAckedMessages()); if (hasMessageRetentionDuration()) { hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMessageRetentionDuration().hashCode(); @@ -1285,8 +1474,7 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + ENABLE_MESSAGE_ORDERING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableMessageOrdering()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMessageOrdering()); if (hasExpirationPolicy()) { hash = (37 * hash) + EXPIRATION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getExpirationPolicy().hashCode(); @@ -1302,11 +1490,9 @@ public int hashCode() { hash = (53 * hash) + getRetryPolicy().hashCode(); } hash = (37 * hash) + DETACHED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDetached()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDetached()); hash = (37 * hash) + ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableExactlyOnceDelivery()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExactlyOnceDelivery()); if (hasTopicMessageRetentionDuration()) { hash = (37 * hash) + TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getTopicMessageRetentionDuration().hashCode(); @@ -1318,99 +1504,103 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.Subscription parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.Subscription parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Subscription parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Subscription parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.Subscription parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Subscription 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.Subscription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Subscription parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.Subscription parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Subscription parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Subscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.Subscription parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.Subscription parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Subscription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.Subscription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A subscription resource. If none of `push_config`, `bigquery_config`, or
    * `cloud_storage_config` is set, then the subscriber will pull and ack messages
@@ -1419,13 +1609,13 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.Subscription}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Subscription)
       com.google.pubsub.v1.SubscriptionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_Subscription_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -1435,10 +1625,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
         case 9:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
     protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
         int number) {
@@ -1446,16 +1636,18 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
         case 9:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_Subscription_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.Subscription.class, com.google.pubsub.v1.Subscription.Builder.class);
+              com.google.pubsub.v1.Subscription.class,
+              com.google.pubsub.v1.Subscription.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.Subscription.newBuilder()
@@ -1463,14 +1655,13 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPushConfigFieldBuilder();
         getBigqueryConfigFieldBuilder();
         getCloudStorageConfigFieldBuilder();
@@ -1481,6 +1672,7 @@ private void maybeForceBuilderInitialization() {
         getTopicMessageRetentionDurationFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1539,9 +1731,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto
+          .internal_static_google_pubsub_v1_Subscription_descriptor;
     }
 
     @java.lang.Override
@@ -1561,7 +1753,9 @@ public com.google.pubsub.v1.Subscription build() {
     @java.lang.Override
     public com.google.pubsub.v1.Subscription buildPartial() {
       com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1576,21 +1770,19 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.pushConfig_ = pushConfigBuilder_ == null
-            ? pushConfig_
-            : pushConfigBuilder_.build();
+        result.pushConfig_ = pushConfigBuilder_ == null ? pushConfig_ : pushConfigBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.bigqueryConfig_ = bigqueryConfigBuilder_ == null
-            ? bigqueryConfig_
-            : bigqueryConfigBuilder_.build();
+        result.bigqueryConfig_ =
+            bigqueryConfigBuilder_ == null ? bigqueryConfig_ : bigqueryConfigBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.cloudStorageConfig_ = cloudStorageConfigBuilder_ == null
-            ? cloudStorageConfig_
-            : cloudStorageConfigBuilder_.build();
+        result.cloudStorageConfig_ =
+            cloudStorageConfigBuilder_ == null
+                ? cloudStorageConfig_
+                : cloudStorageConfigBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
@@ -1600,9 +1792,10 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) {
         result.retainAckedMessages_ = retainAckedMessages_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.messageRetentionDuration_ = messageRetentionDurationBuilder_ == null
-            ? messageRetentionDuration_
-            : messageRetentionDurationBuilder_.build();
+        result.messageRetentionDuration_ =
+            messageRetentionDurationBuilder_ == null
+                ? messageRetentionDuration_
+                : messageRetentionDurationBuilder_.build();
         to_bitField0_ |= 0x00000008;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
@@ -1613,24 +1806,21 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) {
         result.enableMessageOrdering_ = enableMessageOrdering_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.expirationPolicy_ = expirationPolicyBuilder_ == null
-            ? expirationPolicy_
-            : expirationPolicyBuilder_.build();
+        result.expirationPolicy_ =
+            expirationPolicyBuilder_ == null ? expirationPolicy_ : expirationPolicyBuilder_.build();
         to_bitField0_ |= 0x00000010;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.filter_ = filter_;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.deadLetterPolicy_ = deadLetterPolicyBuilder_ == null
-            ? deadLetterPolicy_
-            : deadLetterPolicyBuilder_.build();
+        result.deadLetterPolicy_ =
+            deadLetterPolicyBuilder_ == null ? deadLetterPolicy_ : deadLetterPolicyBuilder_.build();
         to_bitField0_ |= 0x00000020;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.retryPolicy_ = retryPolicyBuilder_ == null
-            ? retryPolicy_
-            : retryPolicyBuilder_.build();
+        result.retryPolicy_ =
+            retryPolicyBuilder_ == null ? retryPolicy_ : retryPolicyBuilder_.build();
         to_bitField0_ |= 0x00000040;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
@@ -1640,9 +1830,10 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) {
         result.enableExactlyOnceDelivery_ = enableExactlyOnceDelivery_;
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.topicMessageRetentionDuration_ = topicMessageRetentionDurationBuilder_ == null
-            ? topicMessageRetentionDuration_
-            : topicMessageRetentionDurationBuilder_.build();
+        result.topicMessageRetentionDuration_ =
+            topicMessageRetentionDurationBuilder_ == null
+                ? topicMessageRetentionDuration_
+                : topicMessageRetentionDurationBuilder_.build();
         to_bitField0_ |= 0x00000080;
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
@@ -1655,38 +1846,39 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.Subscription) {
-        return mergeFrom((com.google.pubsub.v1.Subscription)other);
+        return mergeFrom((com.google.pubsub.v1.Subscription) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1723,8 +1915,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) {
       if (other.hasMessageRetentionDuration()) {
         mergeMessageRetentionDuration(other.getMessageRetentionDuration());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000100;
       if (other.getEnableMessageOrdering() != false) {
         setEnableMessageOrdering(other.getEnableMessageOrdering());
@@ -1781,122 +1972,132 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              topic_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getPushConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            case 40: {
-              ackDeadlineSeconds_ = input.readInt32();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 40
-            case 56: {
-              retainAckedMessages_ = input.readBool();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 66: {
-              input.readMessage(
-                  getMessageRetentionDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 74: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 80: {
-              enableMessageOrdering_ = input.readBool();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 80
-            case 90: {
-              input.readMessage(
-                  getExpirationPolicyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 90
-            case 98: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getDeadLetterPolicyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getRetryPolicyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 114
-            case 120: {
-              detached_ = input.readBool();
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 120
-            case 128: {
-              enableExactlyOnceDelivery_ = input.readBool();
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 128
-            case 138: {
-              input.readMessage(
-                  getTopicMessageRetentionDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 138
-            case 146: {
-              input.readMessage(
-                  getBigqueryConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 146
-            case 152: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 152
-            case 178: {
-              input.readMessage(
-                  getCloudStorageConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 178
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                topic_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getPushConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            case 40:
+              {
+                ackDeadlineSeconds_ = input.readInt32();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 40
+            case 56:
+              {
+                retainAckedMessages_ = input.readBool();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 66:
+              {
+                input.readMessage(
+                    getMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 74:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 80:
+              {
+                enableMessageOrdering_ = input.readBool();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 80
+            case 90:
+              {
+                input.readMessage(
+                    getExpirationPolicyFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+            case 98:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(
+                    getDeadLetterPolicyFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getRetryPolicyFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 114
+            case 120:
+              {
+                detached_ = input.readBool();
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 120
+            case 128:
+              {
+                enableExactlyOnceDelivery_ = input.readBool();
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 128
+            case 138:
+              {
+                input.readMessage(
+                    getTopicMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 138
+            case 146:
+              {
+                input.readMessage(getBigqueryConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 146
+            case 152:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 152
+            case 178:
+              {
+                input.readMessage(
+                    getCloudStorageConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 178
+            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) {
@@ -1906,10 +2107,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1920,13 +2124,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1935,6 +2139,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1945,15 +2151,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1961,6 +2166,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1971,18 +2178,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1993,6 +2204,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2002,6 +2214,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -2012,12 +2226,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2027,20 +2243,24 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -2049,22 +2269,25 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -2072,32 +2295,43 @@ public java.lang.String getTopic() { } } /** + * + * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } topic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -2107,19 +2341,25 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000002; @@ -2129,42 +2369,58 @@ public Builder setTopicBytes( private com.google.pubsub.v1.PushConfig pushConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; + com.google.pubsub.v1.PushConfig, + com.google.pubsub.v1.PushConfig.Builder, + com.google.pubsub.v1.PushConfigOrBuilder> + pushConfigBuilder_; /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pushConfig. */ public com.google.pubsub.v1.PushConfig getPushConfig() { if (pushConfigBuilder_ == null) { - return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; + return pushConfig_ == null + ? com.google.pubsub.v1.PushConfig.getDefaultInstance() + : pushConfig_; } else { return pushConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -2180,15 +2436,17 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPushConfig( - com.google.pubsub.v1.PushConfig.Builder builderForValue) { + public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) { if (pushConfigBuilder_ == null) { pushConfig_ = builderForValue.build(); } else { @@ -2199,18 +2457,21 @@ public Builder setPushConfig( return this; } /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - pushConfig_ != null && - pushConfig_ != com.google.pubsub.v1.PushConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && pushConfig_ != null + && pushConfig_ != com.google.pubsub.v1.PushConfig.getDefaultInstance()) { getPushConfigBuilder().mergeFrom(value); } else { pushConfig_ = value; @@ -2225,12 +2486,15 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPushConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2243,12 +2507,15 @@ public Builder clearPushConfig() { return this; } /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { bitField0_ |= 0x00000004; @@ -2256,38 +2523,48 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { return getPushConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { if (pushConfigBuilder_ != null) { return pushConfigBuilder_.getMessageOrBuilder(); } else { - return pushConfig_ == null ? - com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; + return pushConfig_ == null + ? com.google.pubsub.v1.PushConfig.getDefaultInstance() + : pushConfig_; } } /** + * + * *
      * Optional. If push delivery is used with this subscription, this field is
      * used to configure it.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> + com.google.pubsub.v1.PushConfig, + com.google.pubsub.v1.PushConfig.Builder, + com.google.pubsub.v1.PushConfigOrBuilder> getPushConfigFieldBuilder() { if (pushConfigBuilder_ == null) { - pushConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>( - getPushConfig(), - getParentForChildren(), - isClean()); + pushConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, + com.google.pubsub.v1.PushConfig.Builder, + com.google.pubsub.v1.PushConfigOrBuilder>( + getPushConfig(), getParentForChildren(), isClean()); pushConfig_ = null; } return pushConfigBuilder_; @@ -2295,42 +2572,61 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { private com.google.pubsub.v1.BigQueryConfig bigqueryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.BigQueryConfig, com.google.pubsub.v1.BigQueryConfig.Builder, com.google.pubsub.v1.BigQueryConfigOrBuilder> bigqueryConfigBuilder_; + com.google.pubsub.v1.BigQueryConfig, + com.google.pubsub.v1.BigQueryConfig.Builder, + com.google.pubsub.v1.BigQueryConfigOrBuilder> + bigqueryConfigBuilder_; /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bigqueryConfig field is set. */ public boolean hasBigqueryConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bigqueryConfig. */ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { if (bigqueryConfigBuilder_ == null) { - return bigqueryConfig_ == null ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() : bigqueryConfig_; + return bigqueryConfig_ == null + ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() + : bigqueryConfig_; } else { return bigqueryConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { if (bigqueryConfigBuilder_ == null) { @@ -2346,15 +2642,18 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { return this; } /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setBigqueryConfig( - com.google.pubsub.v1.BigQueryConfig.Builder builderForValue) { + public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder builderForValue) { if (bigqueryConfigBuilder_ == null) { bigqueryConfig_ = builderForValue.build(); } else { @@ -2365,18 +2664,22 @@ public Builder setBigqueryConfig( return this; } /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { if (bigqueryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - bigqueryConfig_ != null && - bigqueryConfig_ != com.google.pubsub.v1.BigQueryConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && bigqueryConfig_ != null + && bigqueryConfig_ != com.google.pubsub.v1.BigQueryConfig.getDefaultInstance()) { getBigqueryConfigBuilder().mergeFrom(value); } else { bigqueryConfig_ = value; @@ -2391,12 +2694,16 @@ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { return this; } /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBigqueryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2409,12 +2716,16 @@ public Builder clearBigqueryConfig() { return this; } /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { bitField0_ |= 0x00000008; @@ -2422,38 +2733,50 @@ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { return getBigqueryConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { if (bigqueryConfigBuilder_ != null) { return bigqueryConfigBuilder_.getMessageOrBuilder(); } else { - return bigqueryConfig_ == null ? - com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() : bigqueryConfig_; + return bigqueryConfig_ == null + ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() + : bigqueryConfig_; } } /** + * + * *
      * Optional. If delivery to BigQuery is used with this subscription, this
      * field is used to configure it.
      * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.BigQueryConfig, com.google.pubsub.v1.BigQueryConfig.Builder, com.google.pubsub.v1.BigQueryConfigOrBuilder> + com.google.pubsub.v1.BigQueryConfig, + com.google.pubsub.v1.BigQueryConfig.Builder, + com.google.pubsub.v1.BigQueryConfigOrBuilder> getBigqueryConfigFieldBuilder() { if (bigqueryConfigBuilder_ == null) { - bigqueryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.BigQueryConfig, com.google.pubsub.v1.BigQueryConfig.Builder, com.google.pubsub.v1.BigQueryConfigOrBuilder>( - getBigqueryConfig(), - getParentForChildren(), - isClean()); + bigqueryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.BigQueryConfig, + com.google.pubsub.v1.BigQueryConfig.Builder, + com.google.pubsub.v1.BigQueryConfigOrBuilder>( + getBigqueryConfig(), getParentForChildren(), isClean()); bigqueryConfig_ = null; } return bigqueryConfigBuilder_; @@ -2461,42 +2784,61 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() private com.google.pubsub.v1.CloudStorageConfig cloudStorageConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig, com.google.pubsub.v1.CloudStorageConfig.Builder, com.google.pubsub.v1.CloudStorageConfigOrBuilder> cloudStorageConfigBuilder_; + com.google.pubsub.v1.CloudStorageConfig, + com.google.pubsub.v1.CloudStorageConfig.Builder, + com.google.pubsub.v1.CloudStorageConfigOrBuilder> + cloudStorageConfigBuilder_; /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the cloudStorageConfig field is set. */ public boolean hasCloudStorageConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The cloudStorageConfig. */ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { if (cloudStorageConfigBuilder_ == null) { - return cloudStorageConfig_ == null ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() : cloudStorageConfig_; + return cloudStorageConfig_ == null + ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() + : cloudStorageConfig_; } else { return cloudStorageConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig value) { if (cloudStorageConfigBuilder_ == null) { @@ -2512,12 +2854,16 @@ public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig val return this; } /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCloudStorageConfig( com.google.pubsub.v1.CloudStorageConfig.Builder builderForValue) { @@ -2531,18 +2877,23 @@ public Builder setCloudStorageConfig( return this; } /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig value) { if (cloudStorageConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - cloudStorageConfig_ != null && - cloudStorageConfig_ != com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && cloudStorageConfig_ != null + && cloudStorageConfig_ + != com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance()) { getCloudStorageConfigBuilder().mergeFrom(value); } else { cloudStorageConfig_ = value; @@ -2557,12 +2908,16 @@ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig v return this; } /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCloudStorageConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2575,12 +2930,16 @@ public Builder clearCloudStorageConfig() { return this; } /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuilder() { bitField0_ |= 0x00000010; @@ -2588,45 +2947,59 @@ public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuil return getCloudStorageConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder() { if (cloudStorageConfigBuilder_ != null) { return cloudStorageConfigBuilder_.getMessageOrBuilder(); } else { - return cloudStorageConfig_ == null ? - com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() : cloudStorageConfig_; + return cloudStorageConfig_ == null + ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() + : cloudStorageConfig_; } } /** + * + * *
      * Optional. If delivery to Google Cloud Storage is used with this
      * subscription, this field is used to configure it.
      * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig, com.google.pubsub.v1.CloudStorageConfig.Builder, com.google.pubsub.v1.CloudStorageConfigOrBuilder> + com.google.pubsub.v1.CloudStorageConfig, + com.google.pubsub.v1.CloudStorageConfig.Builder, + com.google.pubsub.v1.CloudStorageConfigOrBuilder> getCloudStorageConfigFieldBuilder() { if (cloudStorageConfigBuilder_ == null) { - cloudStorageConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.CloudStorageConfig, com.google.pubsub.v1.CloudStorageConfig.Builder, com.google.pubsub.v1.CloudStorageConfigOrBuilder>( - getCloudStorageConfig(), - getParentForChildren(), - isClean()); + cloudStorageConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig, + com.google.pubsub.v1.CloudStorageConfig.Builder, + com.google.pubsub.v1.CloudStorageConfigOrBuilder>( + getCloudStorageConfig(), getParentForChildren(), isClean()); cloudStorageConfig_ = null; } return cloudStorageConfigBuilder_; } - private int ackDeadlineSeconds_ ; + private int ackDeadlineSeconds_; /** + * + * *
      * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
      * waits for the subscriber to acknowledge receipt before resending the
@@ -2651,6 +3024,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB
      * 
* * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -2658,6 +3032,8 @@ public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } /** + * + * *
      * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
      * waits for the subscriber to acknowledge receipt before resending the
@@ -2682,6 +3058,7 @@ public int getAckDeadlineSeconds() {
      * 
* * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. */ @@ -2693,6 +3070,8 @@ public Builder setAckDeadlineSeconds(int value) { return this; } /** + * + * *
      * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
      * waits for the subscriber to acknowledge receipt before resending the
@@ -2717,6 +3096,7 @@ public Builder setAckDeadlineSeconds(int value) {
      * 
* * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { @@ -2726,8 +3106,10 @@ public Builder clearAckDeadlineSeconds() { return this; } - private boolean retainAckedMessages_ ; + private boolean retainAckedMessages_; /** + * + * *
      * Optional. Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2738,6 +3120,7 @@ public Builder clearAckDeadlineSeconds() {
      * 
* * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The retainAckedMessages. */ @java.lang.Override @@ -2745,6 +3128,8 @@ public boolean getRetainAckedMessages() { return retainAckedMessages_; } /** + * + * *
      * Optional. Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2755,6 +3140,7 @@ public boolean getRetainAckedMessages() {
      * 
* * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The retainAckedMessages to set. * @return This builder for chaining. */ @@ -2766,6 +3152,8 @@ public Builder setRetainAckedMessages(boolean value) { return this; } /** + * + * *
      * Optional. Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2776,6 +3164,7 @@ public Builder setRetainAckedMessages(boolean value) {
      * 
* * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRetainAckedMessages() { @@ -2787,8 +3176,13 @@ public Builder clearRetainAckedMessages() { private com.google.protobuf.Duration messageRetentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + messageRetentionDurationBuilder_; /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2797,13 +3191,18 @@ public Builder clearRetainAckedMessages() {
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2812,17 +3211,24 @@ public boolean hasMessageRetentionDuration() {
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageRetentionDuration. */ public com.google.protobuf.Duration getMessageRetentionDuration() { if (messageRetentionDurationBuilder_ == null) { - return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } else { return messageRetentionDurationBuilder_.getMessage(); } } /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2831,7 +3237,9 @@ public com.google.protobuf.Duration getMessageRetentionDuration() {
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -2847,6 +3255,8 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2855,7 +3265,9 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -2869,6 +3281,8 @@ public Builder setMessageRetentionDuration( return this; } /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2877,13 +3291,15 @@ public Builder setMessageRetentionDuration(
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - messageRetentionDuration_ != null && - messageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && messageRetentionDuration_ != null + && messageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMessageRetentionDurationBuilder().mergeFrom(value); } else { messageRetentionDuration_ = value; @@ -2898,6 +3314,8 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) return this; } /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2906,7 +3324,9 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageRetentionDuration() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2919,6 +3339,8 @@ public Builder clearMessageRetentionDuration() { return this; } /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2927,7 +3349,9 @@ public Builder clearMessageRetentionDuration() {
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { bitField0_ |= 0x00000080; @@ -2935,6 +3359,8 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() return getMessageRetentionDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2943,17 +3369,22 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder()
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { if (messageRetentionDurationBuilder_ != null) { return messageRetentionDurationBuilder_.getMessageOrBuilder(); } else { - return messageRetentionDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } } /** + * + * *
      * Optional. How long to retain unacknowledged messages in the subscription's
      * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -2962,37 +3393,40 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
      * 7 days. Cannot be more than 7 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMessageRetentionDurationFieldBuilder() { if (messageRetentionDurationBuilder_ == null) { - messageRetentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMessageRetentionDuration(), - getParentForChildren(), - isClean()); + messageRetentionDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMessageRetentionDuration(), getParentForChildren(), isClean()); messageRetentionDuration_ = null; } return messageRetentionDurationBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3001,10 +3435,13 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -3013,20 +3450,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -3039,6 +3477,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -3047,17 +3487,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -3066,23 +3508,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000100);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -3090,23 +3534,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000100;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -3114,17 +3557,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000100;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing
      * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -3132,16 +3578,16 @@ public Builder putLabels(
      *
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000100;
       return this;
     }
 
-    private boolean enableMessageOrdering_ ;
+    private boolean enableMessageOrdering_;
     /**
+     *
+     *
      * 
      * Optional. If true, messages published with the same `ordering_key` in
      * `PubsubMessage` will be delivered to the subscribers in the order in which
@@ -3150,6 +3596,7 @@ public Builder putAllLabels(
      * 
* * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableMessageOrdering. */ @java.lang.Override @@ -3157,6 +3604,8 @@ public boolean getEnableMessageOrdering() { return enableMessageOrdering_; } /** + * + * *
      * Optional. If true, messages published with the same `ordering_key` in
      * `PubsubMessage` will be delivered to the subscribers in the order in which
@@ -3165,6 +3614,7 @@ public boolean getEnableMessageOrdering() {
      * 
* * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableMessageOrdering to set. * @return This builder for chaining. */ @@ -3176,6 +3626,8 @@ public Builder setEnableMessageOrdering(boolean value) { return this; } /** + * + * *
      * Optional. If true, messages published with the same `ordering_key` in
      * `PubsubMessage` will be delivered to the subscribers in the order in which
@@ -3184,6 +3636,7 @@ public Builder setEnableMessageOrdering(boolean value) {
      * 
* * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableMessageOrdering() { @@ -3195,8 +3648,13 @@ public Builder clearEnableMessageOrdering() { private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> expirationPolicyBuilder_; + com.google.pubsub.v1.ExpirationPolicy, + com.google.pubsub.v1.ExpirationPolicy.Builder, + com.google.pubsub.v1.ExpirationPolicyOrBuilder> + expirationPolicyBuilder_; /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3207,13 +3665,18 @@ public Builder clearEnableMessageOrdering() {
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expirationPolicy field is set. */ public boolean hasExpirationPolicy() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3224,17 +3687,24 @@ public boolean hasExpirationPolicy() {
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expirationPolicy. */ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { if (expirationPolicyBuilder_ == null) { - return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; + return expirationPolicy_ == null + ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() + : expirationPolicy_; } else { return expirationPolicyBuilder_.getMessage(); } } /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3245,7 +3715,9 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() {
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { if (expirationPolicyBuilder_ == null) { @@ -3261,6 +3733,8 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) return this; } /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3271,7 +3745,9 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value)
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpirationPolicy( com.google.pubsub.v1.ExpirationPolicy.Builder builderForValue) { @@ -3285,6 +3761,8 @@ public Builder setExpirationPolicy( return this; } /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3295,13 +3773,15 @@ public Builder setExpirationPolicy(
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { if (expirationPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - expirationPolicy_ != null && - expirationPolicy_ != com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && expirationPolicy_ != null + && expirationPolicy_ != com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()) { getExpirationPolicyBuilder().mergeFrom(value); } else { expirationPolicy_ = value; @@ -3316,6 +3796,8 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value return this; } /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3326,7 +3808,9 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExpirationPolicy() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3339,6 +3823,8 @@ public Builder clearExpirationPolicy() { return this; } /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3349,7 +3835,9 @@ public Builder clearExpirationPolicy() {
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() { bitField0_ |= 0x00000400; @@ -3357,6 +3845,8 @@ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder( return getExpirationPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3367,17 +3857,22 @@ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder(
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { if (expirationPolicyBuilder_ != null) { return expirationPolicyBuilder_.getMessageOrBuilder(); } else { - return expirationPolicy_ == null ? - com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; + return expirationPolicy_ == null + ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() + : expirationPolicy_; } } /** + * + * *
      * Optional. A policy that specifies the conditions for this subscription's
      * expiration. A subscription is considered active as long as any connected
@@ -3388,17 +3883,22 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
      * but `expiration_policy.ttl` is not set, the subscription never expires.
      * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> + com.google.pubsub.v1.ExpirationPolicy, + com.google.pubsub.v1.ExpirationPolicy.Builder, + com.google.pubsub.v1.ExpirationPolicyOrBuilder> getExpirationPolicyFieldBuilder() { if (expirationPolicyBuilder_ == null) { - expirationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder>( - getExpirationPolicy(), - getParentForChildren(), - isClean()); + expirationPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.ExpirationPolicy, + com.google.pubsub.v1.ExpirationPolicy.Builder, + com.google.pubsub.v1.ExpirationPolicyOrBuilder>( + getExpirationPolicy(), getParentForChildren(), isClean()); expirationPolicy_ = null; } return expirationPolicyBuilder_; @@ -3406,6 +3906,8 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3415,13 +3917,13 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
      * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -3430,6 +3932,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3439,15 +3943,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -3455,6 +3958,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3464,18 +3969,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3485,6 +3994,7 @@ public Builder setFilter(
      * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -3494,6 +4004,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3503,12 +4015,14 @@ public Builder clearFilter() {
      * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000800; @@ -3518,8 +4032,13 @@ public Builder setFilterBytes( private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder> deadLetterPolicyBuilder_; + com.google.pubsub.v1.DeadLetterPolicy, + com.google.pubsub.v1.DeadLetterPolicy.Builder, + com.google.pubsub.v1.DeadLetterPolicyOrBuilder> + deadLetterPolicyBuilder_; /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3531,13 +4050,18 @@ public Builder setFilterBytes(
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the deadLetterPolicy field is set. */ public boolean hasDeadLetterPolicy() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3549,17 +4073,24 @@ public boolean hasDeadLetterPolicy() {
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The deadLetterPolicy. */ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { if (deadLetterPolicyBuilder_ == null) { - return deadLetterPolicy_ == null ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_; + return deadLetterPolicy_ == null + ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() + : deadLetterPolicy_; } else { return deadLetterPolicyBuilder_.getMessage(); } } /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3571,7 +4102,9 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() {
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { if (deadLetterPolicyBuilder_ == null) { @@ -3587,6 +4120,8 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) return this; } /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3598,7 +4133,9 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value)
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDeadLetterPolicy( com.google.pubsub.v1.DeadLetterPolicy.Builder builderForValue) { @@ -3612,6 +4149,8 @@ public Builder setDeadLetterPolicy( return this; } /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3623,13 +4162,15 @@ public Builder setDeadLetterPolicy(
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { if (deadLetterPolicyBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - deadLetterPolicy_ != null && - deadLetterPolicy_ != com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && deadLetterPolicy_ != null + && deadLetterPolicy_ != com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance()) { getDeadLetterPolicyBuilder().mergeFrom(value); } else { deadLetterPolicy_ = value; @@ -3644,6 +4185,8 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value return this; } /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3655,7 +4198,9 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDeadLetterPolicy() { bitField0_ = (bitField0_ & ~0x00001000); @@ -3668,6 +4213,8 @@ public Builder clearDeadLetterPolicy() { return this; } /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3679,7 +4226,9 @@ public Builder clearDeadLetterPolicy() {
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() { bitField0_ |= 0x00001000; @@ -3687,6 +4236,8 @@ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder( return getDeadLetterPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3698,17 +4249,22 @@ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder(
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { if (deadLetterPolicyBuilder_ != null) { return deadLetterPolicyBuilder_.getMessageOrBuilder(); } else { - return deadLetterPolicy_ == null ? - com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_; + return deadLetterPolicy_ == null + ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() + : deadLetterPolicy_; } } /** + * + * *
      * Optional. A policy that specifies the conditions for dead lettering
      * messages in this subscription. If dead_letter_policy is not set, dead
@@ -3720,17 +4276,22 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * permission to Acknowledge() messages on this subscription.
      * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder> + com.google.pubsub.v1.DeadLetterPolicy, + com.google.pubsub.v1.DeadLetterPolicy.Builder, + com.google.pubsub.v1.DeadLetterPolicyOrBuilder> getDeadLetterPolicyFieldBuilder() { if (deadLetterPolicyBuilder_ == null) { - deadLetterPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder>( - getDeadLetterPolicy(), - getParentForChildren(), - isClean()); + deadLetterPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.DeadLetterPolicy, + com.google.pubsub.v1.DeadLetterPolicy.Builder, + com.google.pubsub.v1.DeadLetterPolicyOrBuilder>( + getDeadLetterPolicy(), getParentForChildren(), isClean()); deadLetterPolicy_ = null; } return deadLetterPolicyBuilder_; @@ -3738,8 +4299,13 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild private com.google.pubsub.v1.RetryPolicy retryPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder> retryPolicyBuilder_; + com.google.pubsub.v1.RetryPolicy, + com.google.pubsub.v1.RetryPolicy.Builder, + com.google.pubsub.v1.RetryPolicyOrBuilder> + retryPolicyBuilder_; /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3750,13 +4316,18 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3767,17 +4338,24 @@ public boolean hasRetryPolicy() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { - return retryPolicy_ == null ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; + return retryPolicy_ == null + ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() + : retryPolicy_; } else { return retryPolicyBuilder_.getMessage(); } } /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3788,7 +4366,9 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { @@ -3804,6 +4384,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { return this; } /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3814,10 +4396,11 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRetryPolicy( - com.google.pubsub.v1.RetryPolicy.Builder builderForValue) { + public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderForValue) { if (retryPolicyBuilder_ == null) { retryPolicy_ = builderForValue.build(); } else { @@ -3828,6 +4411,8 @@ public Builder setRetryPolicy( return this; } /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3838,13 +4423,15 @@ public Builder setRetryPolicy(
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - retryPolicy_ != null && - retryPolicy_ != com.google.pubsub.v1.RetryPolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && retryPolicy_ != null + && retryPolicy_ != com.google.pubsub.v1.RetryPolicy.getDefaultInstance()) { getRetryPolicyBuilder().mergeFrom(value); } else { retryPolicy_ = value; @@ -3859,6 +4446,8 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { return this; } /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3869,7 +4458,9 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRetryPolicy() { bitField0_ = (bitField0_ & ~0x00002000); @@ -3882,6 +4473,8 @@ public Builder clearRetryPolicy() { return this; } /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3892,7 +4485,9 @@ public Builder clearRetryPolicy() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { bitField0_ |= 0x00002000; @@ -3900,6 +4495,8 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { return getRetryPolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3910,17 +4507,22 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { if (retryPolicyBuilder_ != null) { return retryPolicyBuilder_.getMessageOrBuilder(); } else { - return retryPolicy_ == null ? - com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; + return retryPolicy_ == null + ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() + : retryPolicy_; } } /** + * + * *
      * Optional. A policy that specifies how Pub/Sub retries message delivery for
      * this subscription.
@@ -3931,24 +4533,31 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * exceeded events for a given message.
      * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder> + com.google.pubsub.v1.RetryPolicy, + com.google.pubsub.v1.RetryPolicy.Builder, + com.google.pubsub.v1.RetryPolicyOrBuilder> getRetryPolicyFieldBuilder() { if (retryPolicyBuilder_ == null) { - retryPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder>( - getRetryPolicy(), - getParentForChildren(), - isClean()); + retryPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.RetryPolicy, + com.google.pubsub.v1.RetryPolicy.Builder, + com.google.pubsub.v1.RetryPolicyOrBuilder>( + getRetryPolicy(), getParentForChildren(), isClean()); retryPolicy_ = null; } return retryPolicyBuilder_; } - private boolean detached_ ; + private boolean detached_; /** + * + * *
      * Optional. Indicates whether the subscription is detached from its topic.
      * Detached subscriptions don't receive messages from their topic and don't
@@ -3958,6 +4567,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * 
* * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The detached. */ @java.lang.Override @@ -3965,6 +4575,8 @@ public boolean getDetached() { return detached_; } /** + * + * *
      * Optional. Indicates whether the subscription is detached from its topic.
      * Detached subscriptions don't receive messages from their topic and don't
@@ -3974,6 +4586,7 @@ public boolean getDetached() {
      * 
* * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The detached to set. * @return This builder for chaining. */ @@ -3985,6 +4598,8 @@ public Builder setDetached(boolean value) { return this; } /** + * + * *
      * Optional. Indicates whether the subscription is detached from its topic.
      * Detached subscriptions don't receive messages from their topic and don't
@@ -3994,6 +4609,7 @@ public Builder setDetached(boolean value) {
      * 
* * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDetached() { @@ -4003,8 +4619,10 @@ public Builder clearDetached() { return this; } - private boolean enableExactlyOnceDelivery_ ; + private boolean enableExactlyOnceDelivery_; /** + * + * *
      * Optional. If true, Pub/Sub provides the following guarantees for the
      * delivery of a message with a given value of `message_id` on this
@@ -4020,7 +4638,9 @@ public Builder clearDetached() {
      * by Pub/Sub and have distinct `message_id` values.
      * 
* - * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableExactlyOnceDelivery. */ @java.lang.Override @@ -4028,6 +4648,8 @@ public boolean getEnableExactlyOnceDelivery() { return enableExactlyOnceDelivery_; } /** + * + * *
      * Optional. If true, Pub/Sub provides the following guarantees for the
      * delivery of a message with a given value of `message_id` on this
@@ -4043,7 +4665,9 @@ public boolean getEnableExactlyOnceDelivery() {
      * by Pub/Sub and have distinct `message_id` values.
      * 
* - * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableExactlyOnceDelivery to set. * @return This builder for chaining. */ @@ -4055,6 +4679,8 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { return this; } /** + * + * *
      * Optional. If true, Pub/Sub provides the following guarantees for the
      * delivery of a message with a given value of `message_id` on this
@@ -4070,7 +4696,9 @@ public Builder setEnableExactlyOnceDelivery(boolean value) {
      * by Pub/Sub and have distinct `message_id` values.
      * 
* - * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableExactlyOnceDelivery() { @@ -4082,8 +4710,13 @@ public Builder clearEnableExactlyOnceDelivery() { private com.google.protobuf.Duration topicMessageRetentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> topicMessageRetentionDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + topicMessageRetentionDurationBuilder_; /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4093,13 +4726,18 @@ public Builder clearEnableExactlyOnceDelivery() {
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the topicMessageRetentionDuration field is set. */ public boolean hasTopicMessageRetentionDuration() { return ((bitField0_ & 0x00010000) != 0); } /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4109,17 +4747,24 @@ public boolean hasTopicMessageRetentionDuration() {
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The topicMessageRetentionDuration. */ public com.google.protobuf.Duration getTopicMessageRetentionDuration() { if (topicMessageRetentionDurationBuilder_ == null) { - return topicMessageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; + return topicMessageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : topicMessageRetentionDuration_; } else { return topicMessageRetentionDurationBuilder_.getMessage(); } } /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4129,7 +4774,9 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() {
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration value) { if (topicMessageRetentionDurationBuilder_ == null) { @@ -4145,6 +4792,8 @@ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration val return this; } /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4154,7 +4803,9 @@ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration val
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTopicMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -4168,6 +4819,8 @@ public Builder setTopicMessageRetentionDuration( return this; } /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4177,13 +4830,16 @@ public Builder setTopicMessageRetentionDuration(
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration value) { if (topicMessageRetentionDurationBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) && - topicMessageRetentionDuration_ != null && - topicMessageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) + && topicMessageRetentionDuration_ != null + && topicMessageRetentionDuration_ + != com.google.protobuf.Duration.getDefaultInstance()) { getTopicMessageRetentionDurationBuilder().mergeFrom(value); } else { topicMessageRetentionDuration_ = value; @@ -4198,6 +4854,8 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v return this; } /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4207,7 +4865,9 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTopicMessageRetentionDuration() { bitField0_ = (bitField0_ & ~0x00010000); @@ -4220,6 +4880,8 @@ public Builder clearTopicMessageRetentionDuration() { return this; } /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4229,7 +4891,9 @@ public Builder clearTopicMessageRetentionDuration() {
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuilder() { bitField0_ |= 0x00010000; @@ -4237,6 +4901,8 @@ public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuil return getTopicMessageRetentionDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4246,17 +4912,22 @@ public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuil
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder() { if (topicMessageRetentionDurationBuilder_ != null) { return topicMessageRetentionDurationBuilder_.getMessageOrBuilder(); } else { - return topicMessageRetentionDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; + return topicMessageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : topicMessageRetentionDuration_; } } /** + * + * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -4266,17 +4937,22 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTopicMessageRetentionDurationFieldBuilder() { if (topicMessageRetentionDurationBuilder_ == null) { - topicMessageRetentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTopicMessageRetentionDuration(), - getParentForChildren(), - isClean()); + topicMessageRetentionDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTopicMessageRetentionDuration(), getParentForChildren(), isClean()); topicMessageRetentionDuration_ = null; } return topicMessageRetentionDurationBuilder_; @@ -4284,24 +4960,35 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB private int state_ = 0; /** + * + * *
      * Output only. An output-only field indicating whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. An output-only field indicating whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -4312,26 +4999,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. An output-only field indicating whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.pubsub.v1.Subscription.State getState() { - com.google.pubsub.v1.Subscription.State result = com.google.pubsub.v1.Subscription.State.forNumber(state_); + com.google.pubsub.v1.Subscription.State result = + com.google.pubsub.v1.Subscription.State.forNumber(state_); return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. An output-only field indicating whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -4345,12 +5043,17 @@ public Builder setState(com.google.pubsub.v1.Subscription.State value) { return this; } /** + * + * *
      * Output only. An output-only field indicating whether or not the
      * subscription can receive messages.
      * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -4359,9 +5062,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4371,12 +5074,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Subscription) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription) private static final com.google.pubsub.v1.Subscription DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.Subscription(); } @@ -4385,27 +5088,27 @@ public static com.google.pubsub.v1.Subscription getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subscription 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subscription 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; @@ -4420,6 +5123,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java diff --git a/owl-bot-staging/v1/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 similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 43596c3c3..6b57f92f8 100644 --- a/owl-bot-staging/v1/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 @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface SubscriptionOrBuilder extends +public interface SubscriptionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Subscription) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -19,10 +37,13 @@ public interface SubscriptionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -33,126 +54,176 @@ public interface SubscriptionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The name of the topic from which this subscription is receiving
    * messages. Format is `projects/{project}/topics/{topic}`. The value of this
    * field will be `_deleted-topic_` if the topic has been deleted.
    * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
    * Required. The name of the topic from which this subscription is receiving
    * messages. Format is `projects/{project}/topics/{topic}`. The value of this
    * field will be `_deleted-topic_` if the topic has been deleted.
    * 
* - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); /** + * + * *
    * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); /** + * + * *
    * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); /** + * + * *
    * Optional. If push delivery is used with this subscription, this field is
    * used to configure it.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); /** + * + * *
    * Optional. If delivery to BigQuery is used with this subscription, this
    * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bigqueryConfig field is set. */ boolean hasBigqueryConfig(); /** + * + * *
    * Optional. If delivery to BigQuery is used with this subscription, this
    * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bigqueryConfig. */ com.google.pubsub.v1.BigQueryConfig getBigqueryConfig(); /** + * + * *
    * Optional. If delivery to BigQuery is used with this subscription, this
    * field is used to configure it.
    * 
* - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder(); /** + * + * *
    * Optional. If delivery to Google Cloud Storage is used with this
    * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the cloudStorageConfig field is set. */ boolean hasCloudStorageConfig(); /** + * + * *
    * Optional. If delivery to Google Cloud Storage is used with this
    * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The cloudStorageConfig. */ com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig(); /** + * + * *
    * Optional. If delivery to Google Cloud Storage is used with this
    * subscription, this field is used to configure it.
    * 
* - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder(); /** + * + * *
    * Optional. The approximate amount of time (on a best-effort basis) Pub/Sub
    * waits for the subscriber to acknowledge receipt before resending the
@@ -177,11 +248,14 @@ public interface SubscriptionOrBuilder extends
    * 
* * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); /** + * + * *
    * Optional. Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
@@ -192,11 +266,14 @@ public interface SubscriptionOrBuilder extends
    * 
* * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The retainAckedMessages. */ boolean getRetainAckedMessages(); /** + * + * *
    * Optional. How long to retain unacknowledged messages in the subscription's
    * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -205,11 +282,16 @@ public interface SubscriptionOrBuilder extends
    * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** + * + * *
    * Optional. How long to retain unacknowledged messages in the subscription's
    * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -218,11 +300,16 @@ public interface SubscriptionOrBuilder extends
    * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** + * + * *
    * Optional. How long to retain unacknowledged messages in the subscription's
    * backlog, from the moment a message is published. If `retain_acked_messages`
@@ -231,11 +318,15 @@ public interface SubscriptionOrBuilder extends
    * 7 days. Cannot be more than 7 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder(); /** + * + * *
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -245,6 +336,8 @@ public interface SubscriptionOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -252,15 +345,13 @@ public interface SubscriptionOrBuilder extends
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -268,9 +359,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -279,11 +371,13 @@ boolean containsLabels(
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing
    * labels](https://cloud.google.com/pubsub/docs/labels).
@@ -291,10 +385,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. If true, messages published with the same `ordering_key` in
    * `PubsubMessage` will be delivered to the subscribers in the order in which
@@ -303,11 +398,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableMessageOrdering. */ boolean getEnableMessageOrdering(); /** + * + * *
    * Optional. A policy that specifies the conditions for this subscription's
    * expiration. A subscription is considered active as long as any connected
@@ -318,11 +416,16 @@ java.lang.String getLabelsOrThrow(
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the expirationPolicy field is set. */ boolean hasExpirationPolicy(); /** + * + * *
    * Optional. A policy that specifies the conditions for this subscription's
    * expiration. A subscription is considered active as long as any connected
@@ -333,11 +436,16 @@ java.lang.String getLabelsOrThrow(
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The expirationPolicy. */ com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy(); /** + * + * *
    * Optional. A policy that specifies the conditions for this subscription's
    * expiration. A subscription is considered active as long as any connected
@@ -348,11 +456,15 @@ java.lang.String getLabelsOrThrow(
    * but `expiration_policy.ttl` is not set, the subscription never expires.
    * 
* - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder(); /** + * + * *
    * Optional. An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -362,10 +474,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -375,12 +490,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. A policy that specifies the conditions for dead lettering
    * messages in this subscription. If dead_letter_policy is not set, dead
@@ -392,11 +509,16 @@ java.lang.String getLabelsOrThrow(
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the deadLetterPolicy field is set. */ boolean hasDeadLetterPolicy(); /** + * + * *
    * Optional. A policy that specifies the conditions for dead lettering
    * messages in this subscription. If dead_letter_policy is not set, dead
@@ -408,11 +530,16 @@ java.lang.String getLabelsOrThrow(
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The deadLetterPolicy. */ com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy(); /** + * + * *
    * Optional. A policy that specifies the conditions for dead lettering
    * messages in this subscription. If dead_letter_policy is not set, dead
@@ -424,11 +551,15 @@ java.lang.String getLabelsOrThrow(
    * permission to Acknowledge() messages on this subscription.
    * 
* - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder(); /** + * + * *
    * Optional. A policy that specifies how Pub/Sub retries message delivery for
    * this subscription.
@@ -439,11 +570,16 @@ java.lang.String getLabelsOrThrow(
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** + * + * *
    * Optional. A policy that specifies how Pub/Sub retries message delivery for
    * this subscription.
@@ -454,11 +590,16 @@ java.lang.String getLabelsOrThrow(
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The retryPolicy. */ com.google.pubsub.v1.RetryPolicy getRetryPolicy(); /** + * + * *
    * Optional. A policy that specifies how Pub/Sub retries message delivery for
    * this subscription.
@@ -469,11 +610,15 @@ java.lang.String getLabelsOrThrow(
    * exceeded events for a given message.
    * 
* - * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder(); /** + * + * *
    * Optional. Indicates whether the subscription is detached from its topic.
    * Detached subscriptions don't receive messages from their topic and don't
@@ -483,11 +628,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The detached. */ boolean getDetached(); /** + * + * *
    * Optional. If true, Pub/Sub provides the following guarantees for the
    * delivery of a message with a given value of `message_id` on this
@@ -504,11 +652,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableExactlyOnceDelivery. */ boolean getEnableExactlyOnceDelivery(); /** + * + * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -518,11 +669,16 @@ java.lang.String getLabelsOrThrow(
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the topicMessageRetentionDuration field is set. */ boolean hasTopicMessageRetentionDuration(); /** + * + * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -532,11 +688,16 @@ java.lang.String getLabelsOrThrow(
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The topicMessageRetentionDuration. */ com.google.protobuf.Duration getTopicMessageRetentionDuration(); /** + * + * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -546,27 +707,39 @@ java.lang.String getLabelsOrThrow(
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder(); /** + * + * *
    * Output only. An output-only field indicating whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. An output-only field indicating whether or not the
    * subscription can receive messages.
    * 
* - * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.pubsub.v1.Subscription.State getState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index a627c6be8..5a1e8d3c1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * A topic resource.
  * 
* * Protobuf type {@code google.pubsub.v1.Topic} */ -public final class Topic extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Topic extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Topic) TopicOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Topic.newBuilder() to construct. private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Topic() { name_ = ""; kmsKeyName_ = ""; @@ -28,13 +46,11 @@ private Topic() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Topic(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @@ -46,28 +62,32 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } /** + * + * *
    * The state of the topic.
    * 
* * Protobuf enum {@code google.pubsub.v1.Topic.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -76,6 +96,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The topic does not have any persistent errors.
      * 
@@ -84,6 +106,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Ingestion from the data source has encountered a permanent error.
      * See the more detailed error state in the corresponding ingestion
@@ -97,6 +121,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Default value. This value is unused.
      * 
@@ -105,6 +131,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The topic does not have any persistent errors.
      * 
@@ -113,6 +141,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Ingestion from the data source has encountered a permanent error.
      * See the more detailed error state in the corresponding ingestion
@@ -123,7 +153,6 @@ public enum State
      */
     public static final int INGESTION_RESOURCE_ERROR_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -148,49 +177,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        case 2: return INGESTION_RESOURCE_ERROR;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        case 2:
+          return INGESTION_RESOURCE_ERROR;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.pubsub.v1.Topic.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -209,9 +238,12 @@ private State(int value) {
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the topic. It must have the format
    * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -222,6 +254,7 @@ private State(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -230,14 +263,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the topic. It must have the format
    * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -248,16 +282,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -266,32 +299,34 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -300,20 +335,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -326,6 +362,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -334,17 +372,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -353,11 +393,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -367,13 +407,18 @@ public java.lang.String getLabelsOrThrow(
   public static final int MESSAGE_STORAGE_POLICY_FIELD_NUMBER = 3;
   private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_;
   /**
+   *
+   *
    * 
    * Optional. Policy constraining the set of Google Cloud Platform regions
    * where messages published to the topic may be stored. If not present, then
    * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageStoragePolicy field is set. */ @java.lang.Override @@ -381,37 +426,53 @@ public boolean hasMessageStoragePolicy() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. Policy constraining the set of Google Cloud Platform regions
    * where messages published to the topic may be stored. If not present, then
    * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageStoragePolicy. */ @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { - return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; + return messageStoragePolicy_ == null + ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() + : messageStoragePolicy_; } /** + * + * *
    * Optional. Policy constraining the set of Google Cloud Platform regions
    * where messages published to the topic may be stored. If not present, then
    * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { - return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; + return messageStoragePolicy_ == null + ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() + : messageStoragePolicy_; } public static final int KMS_KEY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Optional. The resource name of the Cloud KMS CryptoKey to be used to
    * protect access to messages published on this topic.
@@ -420,6 +481,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
    * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyName. */ @java.lang.Override @@ -428,14 +490,15 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Optional. The resource name of the Cloud KMS CryptoKey to be used to
    * protect access to messages published on this topic.
@@ -444,16 +507,15 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -464,11 +526,16 @@ public java.lang.String getKmsKeyName() { public static final int SCHEMA_SETTINGS_FIELD_NUMBER = 6; private com.google.pubsub.v1.SchemaSettings schemaSettings_; /** + * + * *
    * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the schemaSettings field is set. */ @java.lang.Override @@ -476,38 +543,54 @@ public boolean hasSchemaSettings() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The schemaSettings. */ @java.lang.Override public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { - return schemaSettings_ == null ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; + return schemaSettings_ == null + ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() + : schemaSettings_; } /** + * + * *
    * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { - return schemaSettings_ == null ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; + return schemaSettings_ == null + ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() + : schemaSettings_; } public static final int SATISFIES_PZS_FIELD_NUMBER = 7; private boolean satisfiesPzs_ = false; /** + * + * *
    * Optional. Reserved for future use. This field is set only in responses from
    * the server; it is ignored if it is set in any requests.
    * 
* * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The satisfiesPzs. */ @java.lang.Override @@ -518,6 +601,8 @@ public boolean getSatisfiesPzs() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; /** + * + * *
    * Optional. Indicates the minimum duration to retain a message after it is
    * published to the topic. If this field is set, messages published to the
@@ -530,7 +615,10 @@ public boolean getSatisfiesPzs() {
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageRetentionDuration field is set. */ @java.lang.Override @@ -538,6 +626,8 @@ public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Optional. Indicates the minimum duration to retain a message after it is
    * published to the topic. If this field is set, messages published to the
@@ -550,14 +640,21 @@ public boolean hasMessageRetentionDuration() {
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageRetentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getMessageRetentionDuration() { - return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } /** + * + * *
    * Optional. Indicates the minimum duration to retain a message after it is
    * published to the topic. If this field is set, messages published to the
@@ -570,35 +667,49 @@ public com.google.protobuf.Duration getMessageRetentionDuration() {
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { - return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** + * + * *
    * Output only. An output-only field indicating the state of the topic.
    * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. An output-only field indicating the state of the topic.
    * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.pubsub.v1.Topic.State getState() { + @java.lang.Override + public com.google.pubsub.v1.Topic.State getState() { com.google.pubsub.v1.Topic.State result = com.google.pubsub.v1.Topic.State.forNumber(state_); return result == null ? com.google.pubsub.v1.Topic.State.UNRECOGNIZED : result; } @@ -606,12 +717,17 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde public static final int INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER = 10; private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; /** + * + * *
    * Optional. Settings for managed ingestion from a data source into this
    * topic.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the ingestionDataSourceSettings field is set. */ @java.lang.Override @@ -619,32 +735,47 @@ public boolean hasIngestionDataSourceSettings() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * Optional. Settings for managed ingestion from a data source into this
    * topic.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The ingestionDataSourceSettings. */ @java.lang.Override public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings() { - return ingestionDataSourceSettings_ == null ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() : ingestionDataSourceSettings_; + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; } /** + * + * *
    * Optional. Settings for managed ingestion from a data source into this
    * topic.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder getIngestionDataSourceSettingsOrBuilder() { - return ingestionDataSourceSettings_ == null ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() : ingestionDataSourceSettings_; + public com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder() { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -656,17 +787,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getMessageStoragePolicy()); } @@ -700,42 +826,41 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMessageStoragePolicy()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessageStoragePolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKeyName_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSchemaSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSchemaSettings()); } if (satisfiesPzs_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, satisfiesPzs_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, satisfiesPzs_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getMessageRetentionDuration()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMessageRetentionDuration()); } if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getIngestionDataSourceSettings()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getIngestionDataSourceSettings()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -745,41 +870,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.Topic)) { return super.equals(obj); } com.google.pubsub.v1.Topic other = (com.google.pubsub.v1.Topic) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasMessageStoragePolicy() != other.hasMessageStoragePolicy()) return false; if (hasMessageStoragePolicy()) { - if (!getMessageStoragePolicy() - .equals(other.getMessageStoragePolicy())) return false; + if (!getMessageStoragePolicy().equals(other.getMessageStoragePolicy())) return false; } - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (hasSchemaSettings() != other.hasSchemaSettings()) return false; if (hasSchemaSettings()) { - if (!getSchemaSettings() - .equals(other.getSchemaSettings())) return false; + if (!getSchemaSettings().equals(other.getSchemaSettings())) return false; } - if (getSatisfiesPzs() - != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false; if (hasMessageRetentionDuration()) { - if (!getMessageRetentionDuration() - .equals(other.getMessageRetentionDuration())) return false; + if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false; } if (state_ != other.state_) return false; if (hasIngestionDataSourceSettings() != other.hasIngestionDataSourceSettings()) return false; if (hasIngestionDataSourceSettings()) { - if (!getIngestionDataSourceSettings() - .equals(other.getIngestionDataSourceSettings())) return false; + if (!getIngestionDataSourceSettings().equals(other.getIngestionDataSourceSettings())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -809,8 +927,7 @@ public int hashCode() { hash = (53 * hash) + getSchemaSettings().hashCode(); } hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSatisfiesPzs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); if (hasMessageRetentionDuration()) { hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMessageRetentionDuration().hashCode(); @@ -826,111 +943,114 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.Topic parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.Topic parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Topic parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.Topic parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.Topic parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Topic 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.Topic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Topic parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.Topic parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Topic parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Topic parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.Topic parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.Topic parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.pubsub.v1.Topic parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Topic parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.Topic prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A topic resource.
    * 
* * Protobuf type {@code google.pubsub.v1.Topic} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Topic) com.google.pubsub.v1.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @@ -941,10 +1061,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -952,14 +1072,15 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 2: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } @@ -969,20 +1090,20 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMessageStoragePolicyFieldBuilder(); getSchemaSettingsFieldBuilder(); getMessageRetentionDurationFieldBuilder(); getIngestionDataSourceSettingsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1016,8 +1137,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @@ -1038,7 +1158,9 @@ public com.google.pubsub.v1.Topic build() { @java.lang.Override public com.google.pubsub.v1.Topic buildPartial() { com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1054,36 +1176,38 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.messageStoragePolicy_ = messageStoragePolicyBuilder_ == null - ? messageStoragePolicy_ - : messageStoragePolicyBuilder_.build(); + result.messageStoragePolicy_ = + messageStoragePolicyBuilder_ == null + ? messageStoragePolicy_ + : messageStoragePolicyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.kmsKeyName_ = kmsKeyName_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.schemaSettings_ = schemaSettingsBuilder_ == null - ? schemaSettings_ - : schemaSettingsBuilder_.build(); + result.schemaSettings_ = + schemaSettingsBuilder_ == null ? schemaSettings_ : schemaSettingsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.messageRetentionDuration_ = messageRetentionDurationBuilder_ == null - ? messageRetentionDuration_ - : messageRetentionDurationBuilder_.build(); + result.messageRetentionDuration_ = + messageRetentionDurationBuilder_ == null + ? messageRetentionDuration_ + : messageRetentionDurationBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.ingestionDataSourceSettings_ = ingestionDataSourceSettingsBuilder_ == null - ? ingestionDataSourceSettings_ - : ingestionDataSourceSettingsBuilder_.build(); + result.ingestionDataSourceSettings_ = + ingestionDataSourceSettingsBuilder_ == null + ? ingestionDataSourceSettings_ + : ingestionDataSourceSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; @@ -1093,38 +1217,39 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.Topic) { - return mergeFrom((com.google.pubsub.v1.Topic)other); + return mergeFrom((com.google.pubsub.v1.Topic) other); } else { super.mergeFrom(other); return this; @@ -1138,8 +1263,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { bitField0_ |= 0x00000001; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000002; if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); @@ -1190,69 +1314,76 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getMessageStoragePolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - input.readMessage( - getSchemaSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: { - satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 66: { - input.readMessage( - getMessageRetentionDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - input.readMessage( - getIngestionDataSourceSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getMessageStoragePolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage(getSchemaSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: + { + input.readMessage( + getMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + input.readMessage( + getIngestionDataSourceSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + 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) { @@ -1262,10 +1393,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1276,13 +1410,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1291,6 +1425,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1301,15 +1437,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1317,6 +1452,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1327,18 +1464,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1349,6 +1490,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1358,6 +1500,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1368,12 +1512,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1381,21 +1527,19 @@ public Builder setNameBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1404,10 +1548,13 @@ public Builder setNameBytes( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1416,20 +1563,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1442,6 +1590,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1450,17 +1600,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1469,23 +1621,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000002);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1493,23 +1647,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000002;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1517,17 +1670,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000002;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1535,55 +1691,72 @@ public Builder putLabels(
      *
      * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000002;
       return this;
     }
 
     private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> messageStoragePolicyBuilder_;
+            com.google.pubsub.v1.MessageStoragePolicy,
+            com.google.pubsub.v1.MessageStoragePolicy.Builder,
+            com.google.pubsub.v1.MessageStoragePolicyOrBuilder>
+        messageStoragePolicyBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageStoragePolicy field is set. */ public boolean hasMessageStoragePolicy() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageStoragePolicy. */ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { if (messageStoragePolicyBuilder_ == null) { - return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; + return messageStoragePolicy_ == null + ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() + : messageStoragePolicy_; } else { return messageStoragePolicyBuilder_.getMessage(); } } /** + * + * *
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { if (messageStoragePolicyBuilder_ == null) { @@ -1599,13 +1772,17 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy return this; } /** + * + * *
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageStoragePolicy( com.google.pubsub.v1.MessageStoragePolicy.Builder builderForValue) { @@ -1619,19 +1796,24 @@ public Builder setMessageStoragePolicy( return this; } /** + * + * *
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { if (messageStoragePolicyBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - messageStoragePolicy_ != null && - messageStoragePolicy_ != com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && messageStoragePolicy_ != null + && messageStoragePolicy_ + != com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()) { getMessageStoragePolicyBuilder().mergeFrom(value); } else { messageStoragePolicy_ = value; @@ -1646,13 +1828,17 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli return this; } /** + * + * *
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageStoragePolicy() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1665,13 +1851,17 @@ public Builder clearMessageStoragePolicy() { return this; } /** + * + * *
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() { bitField0_ |= 0x00000004; @@ -1679,40 +1869,52 @@ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicy return getMessageStoragePolicyFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { if (messageStoragePolicyBuilder_ != null) { return messageStoragePolicyBuilder_.getMessageOrBuilder(); } else { - return messageStoragePolicy_ == null ? - com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; + return messageStoragePolicy_ == null + ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() + : messageStoragePolicy_; } } /** + * + * *
      * Optional. Policy constraining the set of Google Cloud Platform regions
      * where messages published to the topic may be stored. If not present, then
      * no constraints are in effect.
      * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> + com.google.pubsub.v1.MessageStoragePolicy, + com.google.pubsub.v1.MessageStoragePolicy.Builder, + com.google.pubsub.v1.MessageStoragePolicyOrBuilder> getMessageStoragePolicyFieldBuilder() { if (messageStoragePolicyBuilder_ == null) { - messageStoragePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder>( - getMessageStoragePolicy(), - getParentForChildren(), - isClean()); + messageStoragePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.MessageStoragePolicy, + com.google.pubsub.v1.MessageStoragePolicy.Builder, + com.google.pubsub.v1.MessageStoragePolicyOrBuilder>( + getMessageStoragePolicy(), getParentForChildren(), isClean()); messageStoragePolicy_ = null; } return messageStoragePolicyBuilder_; @@ -1720,6 +1922,8 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Optional. The resource name of the Cloud KMS CryptoKey to be used to
      * protect access to messages published on this topic.
@@ -1728,13 +1932,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
      * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -1743,6 +1947,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. The resource name of the Cloud KMS CryptoKey to be used to
      * protect access to messages published on this topic.
@@ -1751,15 +1957,14 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1767,6 +1972,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. The resource name of the Cloud KMS CryptoKey to be used to
      * protect access to messages published on this topic.
@@ -1775,18 +1982,22 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The resource name of the Cloud KMS CryptoKey to be used to
      * protect access to messages published on this topic.
@@ -1795,6 +2006,7 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1804,6 +2016,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Optional. The resource name of the Cloud KMS CryptoKey to be used to
      * protect access to messages published on this topic.
@@ -1812,12 +2026,14 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000008; @@ -1827,39 +2043,58 @@ public Builder setKmsKeyNameBytes( private com.google.pubsub.v1.SchemaSettings schemaSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder> schemaSettingsBuilder_; + com.google.pubsub.v1.SchemaSettings, + com.google.pubsub.v1.SchemaSettings.Builder, + com.google.pubsub.v1.SchemaSettingsOrBuilder> + schemaSettingsBuilder_; /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the schemaSettings field is set. */ public boolean hasSchemaSettings() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The schemaSettings. */ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { if (schemaSettingsBuilder_ == null) { - return schemaSettings_ == null ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; + return schemaSettings_ == null + ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() + : schemaSettings_; } else { return schemaSettingsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { @@ -1875,14 +2110,17 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { return this; } /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSchemaSettings( - com.google.pubsub.v1.SchemaSettings.Builder builderForValue) { + public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder builderForValue) { if (schemaSettingsBuilder_ == null) { schemaSettings_ = builderForValue.build(); } else { @@ -1893,17 +2131,21 @@ public Builder setSchemaSettings( return this; } /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - schemaSettings_ != null && - schemaSettings_ != com.google.pubsub.v1.SchemaSettings.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && schemaSettings_ != null + && schemaSettings_ != com.google.pubsub.v1.SchemaSettings.getDefaultInstance()) { getSchemaSettingsBuilder().mergeFrom(value); } else { schemaSettings_ = value; @@ -1918,11 +2160,15 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { return this; } /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSchemaSettings() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1935,11 +2181,15 @@ public Builder clearSchemaSettings() { return this; } /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { bitField0_ |= 0x00000010; @@ -1947,49 +2197,64 @@ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { return getSchemaSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { if (schemaSettingsBuilder_ != null) { return schemaSettingsBuilder_.getMessageOrBuilder(); } else { - return schemaSettings_ == null ? - com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; + return schemaSettings_ == null + ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() + : schemaSettings_; } } /** + * + * *
      * Optional. Settings for validating messages published against a schema.
      * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder> + com.google.pubsub.v1.SchemaSettings, + com.google.pubsub.v1.SchemaSettings.Builder, + com.google.pubsub.v1.SchemaSettingsOrBuilder> getSchemaSettingsFieldBuilder() { if (schemaSettingsBuilder_ == null) { - schemaSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder>( - getSchemaSettings(), - getParentForChildren(), - isClean()); + schemaSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.SchemaSettings, + com.google.pubsub.v1.SchemaSettings.Builder, + com.google.pubsub.v1.SchemaSettingsOrBuilder>( + getSchemaSettings(), getParentForChildren(), isClean()); schemaSettings_ = null; } return schemaSettingsBuilder_; } - private boolean satisfiesPzs_ ; + private boolean satisfiesPzs_; /** + * + * *
      * Optional. Reserved for future use. This field is set only in responses from
      * the server; it is ignored if it is set in any requests.
      * 
* * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The satisfiesPzs. */ @java.lang.Override @@ -1997,12 +2262,15 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** + * + * *
      * Optional. Reserved for future use. This field is set only in responses from
      * the server; it is ignored if it is set in any requests.
      * 
* * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ @@ -2014,12 +2282,15 @@ public Builder setSatisfiesPzs(boolean value) { return this; } /** + * + * *
      * Optional. Reserved for future use. This field is set only in responses from
      * the server; it is ignored if it is set in any requests.
      * 
* * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { @@ -2031,8 +2302,13 @@ public Builder clearSatisfiesPzs() { private com.google.protobuf.Duration messageRetentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + messageRetentionDurationBuilder_; /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2045,13 +2321,18 @@ public Builder clearSatisfiesPzs() {
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2064,17 +2345,24 @@ public boolean hasMessageRetentionDuration() {
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageRetentionDuration. */ public com.google.protobuf.Duration getMessageRetentionDuration() { if (messageRetentionDurationBuilder_ == null) { - return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } else { return messageRetentionDurationBuilder_.getMessage(); } } /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2087,7 +2375,9 @@ public com.google.protobuf.Duration getMessageRetentionDuration() {
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -2103,6 +2393,8 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2115,7 +2407,9 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -2129,6 +2423,8 @@ public Builder setMessageRetentionDuration( return this; } /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2141,13 +2437,15 @@ public Builder setMessageRetentionDuration(
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - messageRetentionDuration_ != null && - messageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && messageRetentionDuration_ != null + && messageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMessageRetentionDurationBuilder().mergeFrom(value); } else { messageRetentionDuration_ = value; @@ -2162,6 +2460,8 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) return this; } /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2174,7 +2474,9 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageRetentionDuration() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2187,6 +2489,8 @@ public Builder clearMessageRetentionDuration() { return this; } /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2199,7 +2503,9 @@ public Builder clearMessageRetentionDuration() {
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { bitField0_ |= 0x00000040; @@ -2207,6 +2513,8 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() return getMessageRetentionDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2219,17 +2527,22 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder()
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { if (messageRetentionDurationBuilder_ != null) { return messageRetentionDurationBuilder_.getMessageOrBuilder(); } else { - return messageRetentionDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } } /** + * + * *
      * Optional. Indicates the minimum duration to retain a message after it is
      * published to the topic. If this field is set, messages published to the
@@ -2242,17 +2555,22 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
      * subscriptions. Cannot be more than 31 days or less than 10 minutes.
      * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getMessageRetentionDurationFieldBuilder() { if (messageRetentionDurationBuilder_ == null) { - messageRetentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getMessageRetentionDuration(), - getParentForChildren(), - isClean()); + messageRetentionDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMessageRetentionDuration(), getParentForChildren(), isClean()); messageRetentionDuration_ = null; } return messageRetentionDurationBuilder_; @@ -2260,22 +2578,31 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde private int state_ = 0; /** + * + * *
      * Output only. An output-only field indicating the state of the topic.
      * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. An output-only field indicating the state of the topic.
      * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2286,11 +2613,15 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. An output-only field indicating the state of the topic.
      * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override @@ -2299,11 +2630,15 @@ public com.google.pubsub.v1.Topic.State getState() { return result == null ? com.google.pubsub.v1.Topic.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. An output-only field indicating the state of the topic.
      * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2317,11 +2652,15 @@ public Builder setState(com.google.pubsub.v1.Topic.State value) { return this; } /** + * + * *
      * Output only. An output-only field indicating the state of the topic.
      * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2333,44 +2672,64 @@ public Builder clearState() { private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings, com.google.pubsub.v1.IngestionDataSourceSettings.Builder, com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> ingestionDataSourceSettingsBuilder_; + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> + ingestionDataSourceSettingsBuilder_; /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the ingestionDataSourceSettings field is set. */ public boolean hasIngestionDataSourceSettings() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The ingestionDataSourceSettings. */ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings() { if (ingestionDataSourceSettingsBuilder_ == null) { - return ingestionDataSourceSettings_ == null ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() : ingestionDataSourceSettings_; + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; } else { return ingestionDataSourceSettingsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIngestionDataSourceSettings(com.google.pubsub.v1.IngestionDataSourceSettings value) { + public Builder setIngestionDataSourceSettings( + com.google.pubsub.v1.IngestionDataSourceSettings value) { if (ingestionDataSourceSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2384,12 +2743,16 @@ public Builder setIngestionDataSourceSettings(com.google.pubsub.v1.IngestionData return this; } /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIngestionDataSourceSettings( com.google.pubsub.v1.IngestionDataSourceSettings.Builder builderForValue) { @@ -2403,18 +2766,24 @@ public Builder setIngestionDataSourceSettings( return this; } /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeIngestionDataSourceSettings(com.google.pubsub.v1.IngestionDataSourceSettings value) { + public Builder mergeIngestionDataSourceSettings( + com.google.pubsub.v1.IngestionDataSourceSettings value) { if (ingestionDataSourceSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - ingestionDataSourceSettings_ != null && - ingestionDataSourceSettings_ != com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && ingestionDataSourceSettings_ != null + && ingestionDataSourceSettings_ + != com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) { getIngestionDataSourceSettingsBuilder().mergeFrom(value); } else { ingestionDataSourceSettings_ = value; @@ -2429,12 +2798,16 @@ public Builder mergeIngestionDataSourceSettings(com.google.pubsub.v1.IngestionDa return this; } /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIngestionDataSourceSettings() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2447,58 +2820,76 @@ public Builder clearIngestionDataSourceSettings() { return this; } /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.IngestionDataSourceSettings.Builder getIngestionDataSourceSettingsBuilder() { + public com.google.pubsub.v1.IngestionDataSourceSettings.Builder + getIngestionDataSourceSettingsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getIngestionDataSourceSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder getIngestionDataSourceSettingsOrBuilder() { + public com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder() { if (ingestionDataSourceSettingsBuilder_ != null) { return ingestionDataSourceSettingsBuilder_.getMessageOrBuilder(); } else { - return ingestionDataSourceSettings_ == null ? - com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() : ingestionDataSourceSettings_; + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; } } /** + * + * *
      * Optional. Settings for managed ingestion from a data source into this
      * topic.
      * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings, com.google.pubsub.v1.IngestionDataSourceSettings.Builder, com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> getIngestionDataSourceSettingsFieldBuilder() { if (ingestionDataSourceSettingsBuilder_ == null) { - ingestionDataSourceSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings, com.google.pubsub.v1.IngestionDataSourceSettings.Builder, com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder>( - getIngestionDataSourceSettings(), - getParentForChildren(), - isClean()); + ingestionDataSourceSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder>( + getIngestionDataSourceSettings(), getParentForChildren(), isClean()); ingestionDataSourceSettings_ = null; } return ingestionDataSourceSettingsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2508,12 +2899,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Topic) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic) private static final com.google.pubsub.v1.Topic DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.Topic(); } @@ -2522,27 +2913,27 @@ public static com.google.pubsub.v1.Topic getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topic 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; @@ -2557,6 +2948,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 8c3d320aa..80c1a2f27 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface TopicOrBuilder extends +public interface TopicOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Topic) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the topic. It must have the format
    * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -19,10 +37,13 @@ public interface TopicOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the topic. It must have the format
    * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -33,12 +54,14 @@ public interface TopicOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -48,6 +71,8 @@ public interface TopicOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -55,15 +80,13 @@ public interface TopicOrBuilder extends
    *
    * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -71,9 +94,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -82,11 +106,13 @@ boolean containsLabels(
    * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -94,43 +120,58 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Policy constraining the set of Google Cloud Platform regions
    * where messages published to the topic may be stored. If not present, then
    * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageStoragePolicy field is set. */ boolean hasMessageStoragePolicy(); /** + * + * *
    * Optional. Policy constraining the set of Google Cloud Platform regions
    * where messages published to the topic may be stored. If not present, then
    * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageStoragePolicy. */ com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy(); /** + * + * *
    * Optional. Policy constraining the set of Google Cloud Platform regions
    * where messages published to the topic may be stored. If not present, then
    * no constraints are in effect.
    * 
* - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder(); /** + * + * *
    * Optional. The resource name of the Cloud KMS CryptoKey to be used to
    * protect access to messages published on this topic.
@@ -139,10 +180,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Optional. The resource name of the Cloud KMS CryptoKey to be used to
    * protect access to messages published on this topic.
@@ -151,50 +195,69 @@ java.lang.String getLabelsOrThrow(
    * 
* * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the schemaSettings field is set. */ boolean hasSchemaSettings(); /** + * + * *
    * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The schemaSettings. */ com.google.pubsub.v1.SchemaSettings getSchemaSettings(); /** + * + * *
    * Optional. Settings for validating messages published against a schema.
    * 
* - * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder(); /** + * + * *
    * Optional. Reserved for future use. This field is set only in responses from
    * the server; it is ignored if it is set in any requests.
    * 
* * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The satisfiesPzs. */ boolean getSatisfiesPzs(); /** + * + * *
    * Optional. Indicates the minimum duration to retain a message after it is
    * published to the topic. If this field is set, messages published to the
@@ -207,11 +270,16 @@ java.lang.String getLabelsOrThrow(
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** + * + * *
    * Optional. Indicates the minimum duration to retain a message after it is
    * published to the topic. If this field is set, messages published to the
@@ -224,11 +292,16 @@ java.lang.String getLabelsOrThrow(
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** + * + * *
    * Optional. Indicates the minimum duration to retain a message after it is
    * published to the topic. If this field is set, messages published to the
@@ -241,56 +314,81 @@ java.lang.String getLabelsOrThrow(
    * subscriptions. Cannot be more than 31 days or less than 10 minutes.
    * 
* - * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder(); /** + * + * *
    * Output only. An output-only field indicating the state of the topic.
    * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. An output-only field indicating the state of the topic.
    * 
* - * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.pubsub.v1.Topic.State getState(); /** + * + * *
    * Optional. Settings for managed ingestion from a data source into this
    * topic.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the ingestionDataSourceSettings field is set. */ boolean hasIngestionDataSourceSettings(); /** + * + * *
    * Optional. Settings for managed ingestion from a data source into this
    * topic.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The ingestionDataSourceSettings. */ com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings(); /** + * + * *
    * Optional. Settings for managed ingestion from a data source into this
    * topic.
    * 
* - * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder getIngestionDataSourceSettingsOrBuilder(); + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index ecc55f2bb..69e80a838 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,53 +20,59 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the UpdateSnapshot method.
  * 
* * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} */ -public final class UpdateSnapshotRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSnapshotRequest) UpdateSnapshotRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSnapshotRequest.newBuilder() to construct. private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSnapshotRequest() { - } + + private UpdateSnapshotRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSnapshotRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSnapshotRequest.class, com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); + com.google.pubsub.v1.UpdateSnapshotRequest.class, + com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); } private int bitField0_; public static final int SNAPSHOT_FIELD_NUMBER = 1; private com.google.pubsub.v1.Snapshot snapshot_; /** + * + * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -59,11 +80,14 @@ public boolean hasSnapshot() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snapshot. */ @java.lang.Override @@ -71,6 +95,8 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } /** + * + * *
    * Required. The updated snapshot object.
    * 
@@ -85,12 +111,16 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -98,12 +128,16 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -111,12 +145,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,6 +161,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSnapshot()); } @@ -153,12 +190,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSnapshot()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshot()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +203,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.UpdateSnapshotRequest)) { return super.equals(obj); } - com.google.pubsub.v1.UpdateSnapshotRequest other = (com.google.pubsub.v1.UpdateSnapshotRequest) obj; + com.google.pubsub.v1.UpdateSnapshotRequest other = + (com.google.pubsub.v1.UpdateSnapshotRequest) obj; if (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { - if (!getSnapshot() - .equals(other.getSnapshot())) return false; + if (!getSnapshot().equals(other.getSnapshot())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -209,120 +243,127 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateSnapshotRequest 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.UpdateSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.UpdateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the UpdateSnapshot method.
    * 
* * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSnapshotRequest) com.google.pubsub.v1.UpdateSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSnapshotRequest.class, com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); + com.google.pubsub.v1.UpdateSnapshotRequest.class, + com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); } // Construct using com.google.pubsub.v1.UpdateSnapshotRequest.newBuilder() @@ -330,18 +371,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSnapshotFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } @java.lang.Override @@ -381,8 +422,11 @@ public com.google.pubsub.v1.UpdateSnapshotRequest build() { @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { - com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.UpdateSnapshotRequest result = + new com.google.pubsub.v1.UpdateSnapshotRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -391,15 +435,11 @@ private void buildPartial0(com.google.pubsub.v1.UpdateSnapshotRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snapshot_ = snapshotBuilder_ == null - ? snapshot_ - : snapshotBuilder_.build(); + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -409,38 +449,39 @@ private void buildPartial0(com.google.pubsub.v1.UpdateSnapshotRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.UpdateSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other); + return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -481,26 +522,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSnapshotFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -510,28 +550,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.pubsub.v1.Snapshot snapshot_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotBuilder_; + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder> + snapshotBuilder_; /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The snapshot. */ public com.google.pubsub.v1.Snapshot getSnapshot() { @@ -542,11 +594,14 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { } } /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { @@ -562,14 +617,16 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { return this; } /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSnapshot( - com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { snapshot_ = builderForValue.build(); } else { @@ -580,17 +637,20 @@ public Builder setSnapshot( return this; } /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - snapshot_ != null && - snapshot_ != com.google.pubsub.v1.Snapshot.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && snapshot_ != null + && snapshot_ != com.google.pubsub.v1.Snapshot.getDefaultInstance()) { getSnapshotBuilder().mergeFrom(value); } else { snapshot_ = value; @@ -605,11 +665,14 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { return this; } /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSnapshot() { bitField0_ = (bitField0_ & ~0x00000001); @@ -622,11 +685,14 @@ public Builder clearSnapshot() { return this; } /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { bitField0_ |= 0x00000001; @@ -634,36 +700,44 @@ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { return getSnapshotFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilder(); } else { - return snapshot_ == null ? - com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } } /** + * + * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { - snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( - getSnapshot(), - getParentForChildren(), - isClean()); + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); snapshot_ = null; } return snapshotBuilder_; @@ -671,42 +745,58 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -722,15 +812,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -741,18 +833,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -767,12 +862,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -785,12 +883,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -798,45 +899,55 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -846,12 +957,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSnapshotRequest) private static final com.google.pubsub.v1.UpdateSnapshotRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateSnapshotRequest(); } @@ -860,27 +971,27 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSnapshotRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSnapshotRequest 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; @@ -895,6 +1006,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index bba5074d7..daf1d090a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface UpdateSnapshotRequestOrBuilder extends +public interface UpdateSnapshotRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSnapshotRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** + * + * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snapshot. */ com.google.pubsub.v1.Snapshot getSnapshot(); /** + * + * *
    * Required. The updated snapshot object.
    * 
@@ -36,32 +60,43 @@ public interface UpdateSnapshotRequestOrBuilder extends com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder(); /** + * + * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 55edd1974..7f71bf3ac 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,53 +20,61 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the UpdateSubscription method.
  * 
* * Protobuf type {@code google.pubsub.v1.UpdateSubscriptionRequest} */ -public final class UpdateSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSubscriptionRequest) UpdateSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSubscriptionRequest.newBuilder() to construct. private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSubscriptionRequest() { - } + + private UpdateSubscriptionRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSubscriptionRequest.class, com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); + com.google.pubsub.v1.UpdateSubscriptionRequest.class, + com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); } private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.pubsub.v1.Subscription subscription_; /** + * + * *
    * Required. The updated subscription object.
    * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ @java.lang.Override @@ -59,38 +82,55 @@ public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The updated subscription object.
    * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ @java.lang.Override public com.google.pubsub.v1.Subscription getSubscription() { - return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.pubsub.v1.Subscription.getDefaultInstance() + : subscription_; } /** + * + * *
    * Required. The updated subscription object.
    * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.pubsub.v1.Subscription.getDefaultInstance() + : subscription_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -98,12 +138,16 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -111,12 +155,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,6 +171,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSubscription()); } @@ -153,12 +200,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubscription()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +213,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.UpdateSubscriptionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.UpdateSubscriptionRequest other = (com.google.pubsub.v1.UpdateSubscriptionRequest) obj; + com.google.pubsub.v1.UpdateSubscriptionRequest other = + (com.google.pubsub.v1.UpdateSubscriptionRequest) obj; if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - if (!getSubscription() - .equals(other.getSubscription())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -209,120 +253,127 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateSubscriptionRequest 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.UpdateSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.UpdateSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the UpdateSubscription method.
    * 
* * Protobuf type {@code google.pubsub.v1.UpdateSubscriptionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSubscriptionRequest) com.google.pubsub.v1.UpdateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSubscriptionRequest.class, com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); + com.google.pubsub.v1.UpdateSubscriptionRequest.class, + com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.UpdateSubscriptionRequest.newBuilder() @@ -330,18 +381,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSubscriptionFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override @@ -381,8 +432,11 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { - com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.UpdateSubscriptionRequest result = + new com.google.pubsub.v1.UpdateSubscriptionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -391,15 +445,12 @@ private void buildPartial0(com.google.pubsub.v1.UpdateSubscriptionRequest result int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.subscription_ = subscriptionBuilder_ == null - ? subscription_ - : subscriptionBuilder_.build(); + result.subscription_ = + subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -409,38 +460,39 @@ private void buildPartial0(com.google.pubsub.v1.UpdateSubscriptionRequest result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.UpdateSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -481,26 +533,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSubscriptionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -510,43 +561,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.pubsub.v1.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionBuilder_; + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder> + subscriptionBuilder_; /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ public com.google.pubsub.v1.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.pubsub.v1.Subscription.getDefaultInstance() + : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { if (subscriptionBuilder_ == null) { @@ -562,14 +633,17 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { return this; } /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSubscription( - com.google.pubsub.v1.Subscription.Builder builderForValue) { + public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionBuilder_ == null) { subscription_ = builderForValue.build(); } else { @@ -580,17 +654,21 @@ public Builder setSubscription( return this; } /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - subscription_ != null && - subscription_ != com.google.pubsub.v1.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && subscription_ != null + && subscription_ != com.google.pubsub.v1.Subscription.getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -605,11 +683,15 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { return this; } /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000001); @@ -622,11 +704,15 @@ public Builder clearSubscription() { return this; } /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { bitField0_ |= 0x00000001; @@ -634,36 +720,48 @@ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { return getSubscriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null ? - com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.pubsub.v1.Subscription.getDefaultInstance() + : subscription_; } } /** + * + * *
      * Required. The updated subscription object.
      * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( - getSubscription(), - getParentForChildren(), - isClean()); + subscriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder>( + getSubscription(), getParentForChildren(), isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -671,42 +769,58 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -722,15 +836,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -741,18 +857,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -767,12 +886,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -785,12 +907,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -798,45 +923,55 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -846,12 +981,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSubscriptionRequest) private static final com.google.pubsub.v1.UpdateSubscriptionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateSubscriptionRequest(); } @@ -860,27 +995,27 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSubscriptionRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSubscriptionRequest 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; @@ -895,6 +1030,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 1bb22384e..9904952bf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,67 +1,108 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface UpdateSubscriptionRequestOrBuilder extends +public interface UpdateSubscriptionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The updated subscription object.
    * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the subscription field is set. */ boolean hasSubscription(); /** + * + * *
    * Required. The updated subscription object.
    * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The subscription. */ com.google.pubsub.v1.Subscription getSubscription(); /** + * + * *
    * Required. The updated subscription object.
    * 
* - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** + * + * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 9dad1a4fb..5ce3a927d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto @@ -5,53 +20,59 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the UpdateTopic method.
  * 
* * Protobuf type {@code google.pubsub.v1.UpdateTopicRequest} */ -public final class UpdateTopicRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateTopicRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateTopicRequest) UpdateTopicRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateTopicRequest.newBuilder() to construct. private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateTopicRequest() { - } + + private UpdateTopicRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateTopicRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateTopicRequest.class, com.google.pubsub.v1.UpdateTopicRequest.Builder.class); + com.google.pubsub.v1.UpdateTopicRequest.class, + com.google.pubsub.v1.UpdateTopicRequest.Builder.class); } private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private com.google.pubsub.v1.Topic topic_; /** + * + * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the topic field is set. */ @java.lang.Override @@ -59,11 +80,14 @@ public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topic. */ @java.lang.Override @@ -71,6 +95,8 @@ public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } /** + * + * *
    * Required. The updated topic object.
    * 
@@ -85,6 +111,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -93,7 +121,9 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() {
    * policy configured at the project or organization level.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -101,6 +131,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -109,7 +141,9 @@ public boolean hasUpdateMask() {
    * policy configured at the project or organization level.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -117,6 +151,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -125,7 +161,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * policy configured at the project or organization level.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -133,6 +170,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +182,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTopic()); } @@ -162,12 +199,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTopic()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,7 +212,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.UpdateTopicRequest)) { return super.equals(obj); @@ -186,13 +221,11 @@ public boolean equals(final java.lang.Object obj) { if (hasTopic() != other.hasTopic()) return false; if (hasTopic()) { - if (!getTopic() - .equals(other.getTopic())) return false; + if (!getTopic().equals(other.getTopic())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -218,120 +251,127 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.UpdateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateTopicRequest 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.UpdateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.UpdateTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the UpdateTopic method.
    * 
* * Protobuf type {@code google.pubsub.v1.UpdateTopicRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateTopicRequest) com.google.pubsub.v1.UpdateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateTopicRequest.class, com.google.pubsub.v1.UpdateTopicRequest.Builder.class); + com.google.pubsub.v1.UpdateTopicRequest.class, + com.google.pubsub.v1.UpdateTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.UpdateTopicRequest.newBuilder() @@ -339,18 +379,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTopicFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -369,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override @@ -390,8 +430,11 @@ public com.google.pubsub.v1.UpdateTopicRequest build() { @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { - com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.UpdateTopicRequest result = + new com.google.pubsub.v1.UpdateTopicRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -400,15 +443,11 @@ private void buildPartial0(com.google.pubsub.v1.UpdateTopicRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.topic_ = topicBuilder_ == null - ? topic_ - : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -418,38 +457,39 @@ private void buildPartial0(com.google.pubsub.v1.UpdateTopicRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.UpdateTopicRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -490,26 +530,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTopicFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -519,28 +558,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.pubsub.v1.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicBuilder_; + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder> + topicBuilder_; /** + * + * *
      * Required. The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the topic field is set. */ public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topic. */ public com.google.pubsub.v1.Topic getTopic() { @@ -551,6 +600,8 @@ public com.google.pubsub.v1.Topic getTopic() { } } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -571,14 +622,15 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { return this; } /** + * + * *
      * Required. The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTopic( - com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); } else { @@ -589,6 +641,8 @@ public Builder setTopic( return this; } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -597,9 +651,9 @@ public Builder setTopic( */ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - topic_ != null && - topic_ != com.google.pubsub.v1.Topic.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && topic_ != null + && topic_ != com.google.pubsub.v1.Topic.getDefaultInstance()) { getTopicBuilder().mergeFrom(value); } else { topic_ = value; @@ -614,6 +668,8 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { return this; } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -631,6 +687,8 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -643,6 +701,8 @@ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { return getTopicFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -653,11 +713,12 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null ? - com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; + return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -665,14 +726,16 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( - getTopic(), - getParentForChildren(), - isClean()); + topicBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder>(getTopic(), getParentForChildren(), isClean()); topic_ = null; } return topicBuilder_; @@ -680,8 +743,13 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -690,13 +758,17 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() {
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -705,17 +777,23 @@ public boolean hasUpdateMask() {
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -724,7 +802,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -740,6 +819,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -748,10 +829,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -762,6 +843,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -770,13 +853,14 @@ public Builder setUpdateMask(
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -791,6 +875,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -799,7 +885,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -812,6 +899,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -820,7 +909,8 @@ public Builder clearUpdateMask() {
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -828,6 +918,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -836,17 +928,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -855,24 +951,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * policy configured at the project or organization level.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateTopicRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateTopicRequest) private static final com.google.pubsub.v1.UpdateTopicRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateTopicRequest(); } @@ -896,27 +996,27 @@ public static com.google.pubsub.v1.UpdateTopicRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTopicRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTopicRequest 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; @@ -931,6 +1031,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index af15549cf..024f90ccc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface UpdateTopicRequestOrBuilder extends +public interface UpdateTopicRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateTopicRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the topic field is set. */ boolean hasTopic(); /** + * + * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topic. */ com.google.pubsub.v1.Topic getTopic(); /** + * + * *
    * Required. The updated topic object.
    * 
@@ -36,6 +60,8 @@ public interface UpdateTopicRequestOrBuilder extends com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder(); /** + * + * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -44,11 +70,15 @@ public interface UpdateTopicRequestOrBuilder extends
    * policy configured at the project or organization level.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -57,11 +87,15 @@ public interface UpdateTopicRequestOrBuilder extends
    * policy configured at the project or organization level.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -70,7 +104,8 @@ public interface UpdateTopicRequestOrBuilder extends
    * policy configured at the project or organization level.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 3a94bf507..8b0bc262a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,21 +20,24 @@ package com.google.pubsub.v1; /** + * + * *
  * Request for the `ValidateMessage` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ValidateMessageRequest} */ -public final class ValidateMessageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValidateMessageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageRequest) ValidateMessageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValidateMessageRequest.newBuilder() to construct. private ValidateMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValidateMessageRequest() { parent_ = ""; message_ = com.google.protobuf.ByteString.EMPTY; @@ -28,34 +46,39 @@ private ValidateMessageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateMessageRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ValidateMessageRequest.class, com.google.pubsub.v1.ValidateMessageRequest.Builder.class); + com.google.pubsub.v1.ValidateMessageRequest.class, + com.google.pubsub.v1.ValidateMessageRequest.Builder.class); } private int schemaSpecCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object schemaSpec_; + public enum SchemaSpecCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAME(2), SCHEMA(3), SCHEMASPEC_NOT_SET(0); private final int value; + private SchemaSpecCase(int value) { this.value = value; } @@ -71,33 +94,42 @@ public static SchemaSpecCase valueOf(int value) { public static SchemaSpecCase forNumber(int value) { switch (value) { - case 2: return NAME; - case 3: return SCHEMA; - case 0: return SCHEMASPEC_NOT_SET; - default: return null; + case 2: + return NAME; + case 3: + return SCHEMA; + case 0: + return SCHEMASPEC_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SchemaSpecCase - getSchemaSpecCase() { - return SchemaSpecCase.forNumber( - schemaSpecCase_); + public SchemaSpecCase getSchemaSpecCase() { + return SchemaSpecCase.forNumber(schemaSpecCase_); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -106,30 +138,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -139,6 +173,8 @@ public java.lang.String getParent() { public static final int NAME_FIELD_NUMBER = 2; /** + * + * *
    * Name of the schema against which to validate.
    *
@@ -146,12 +182,15 @@ public java.lang.String getParent() {
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return Whether the name field is set. */ public boolean hasName() { return schemaSpecCase_ == 2; } /** + * + * *
    * Name of the schema against which to validate.
    *
@@ -159,6 +198,7 @@ public boolean hasName() {
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The name. */ public java.lang.String getName() { @@ -169,8 +209,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (schemaSpecCase_ == 2) { schemaSpec_ = s; @@ -179,6 +218,8 @@ public java.lang.String getName() { } } /** + * + * *
    * Name of the schema against which to validate.
    *
@@ -186,18 +227,17 @@ public java.lang.String getName() {
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = ""; if (schemaSpecCase_ == 2) { ref = schemaSpec_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (schemaSpecCase_ == 2) { schemaSpec_ = b; } @@ -209,11 +249,14 @@ public java.lang.String getName() { public static final int SCHEMA_FIELD_NUMBER = 3; /** + * + * *
    * Ad-hoc schema against which to validate
    * 
* * .google.pubsub.v1.Schema schema = 3; + * * @return Whether the schema field is set. */ @java.lang.Override @@ -221,21 +264,26 @@ public boolean hasSchema() { return schemaSpecCase_ == 3; } /** + * + * *
    * Ad-hoc schema against which to validate
    * 
* * .google.pubsub.v1.Schema schema = 3; + * * @return The schema. */ @java.lang.Override public com.google.pubsub.v1.Schema getSchema() { if (schemaSpecCase_ == 3) { - return (com.google.pubsub.v1.Schema) schemaSpec_; + return (com.google.pubsub.v1.Schema) schemaSpec_; } return com.google.pubsub.v1.Schema.getDefaultInstance(); } /** + * + * *
    * Ad-hoc schema against which to validate
    * 
@@ -245,7 +293,7 @@ public com.google.pubsub.v1.Schema getSchema() { @java.lang.Override public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaSpecCase_ == 3) { - return (com.google.pubsub.v1.Schema) schemaSpec_; + return (com.google.pubsub.v1.Schema) schemaSpec_; } return com.google.pubsub.v1.Schema.getDefaultInstance(); } @@ -253,11 +301,14 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { public static final int MESSAGE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Message to validate against the provided `schema_spec`.
    * 
* * bytes message = 4; + * * @return The message. */ @java.lang.Override @@ -268,30 +319,39 @@ public com.google.protobuf.ByteString getMessage() { public static final int ENCODING_FIELD_NUMBER = 5; private int encoding_ = 0; /** + * + * *
    * The encoding expected for messages
    * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
    * The encoding expected for messages
    * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return The encoding. */ - @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { + @java.lang.Override + public com.google.pubsub.v1.Encoding getEncoding() { com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,8 +363,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -336,16 +395,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaSpec_); } if (schemaSpecCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.pubsub.v1.Schema) schemaSpec_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.Schema) schemaSpec_); } if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, message_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, message_); } if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, encoding_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, encoding_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -355,27 +413,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ValidateMessageRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ValidateMessageRequest other = (com.google.pubsub.v1.ValidateMessageRequest) obj; + com.google.pubsub.v1.ValidateMessageRequest other = + (com.google.pubsub.v1.ValidateMessageRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (encoding_ != other.encoding_) return false; if (!getSchemaSpecCase().equals(other.getSchemaSpecCase())) return false; switch (schemaSpecCase_) { case 2: - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; break; case 3: - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; break; case 0: default: @@ -414,132 +469,136 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ValidateMessageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ValidateMessageRequest 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.ValidateMessageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ValidateMessageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ValidateMessage` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ValidateMessageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateMessageRequest) com.google.pubsub.v1.ValidateMessageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ValidateMessageRequest.class, com.google.pubsub.v1.ValidateMessageRequest.Builder.class); + com.google.pubsub.v1.ValidateMessageRequest.class, + com.google.pubsub.v1.ValidateMessageRequest.Builder.class); } // Construct using com.google.pubsub.v1.ValidateMessageRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -556,9 +615,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; } @java.lang.Override @@ -577,8 +636,11 @@ public com.google.pubsub.v1.ValidateMessageRequest build() { @java.lang.Override public com.google.pubsub.v1.ValidateMessageRequest buildPartial() { - com.google.pubsub.v1.ValidateMessageRequest result = new com.google.pubsub.v1.ValidateMessageRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ValidateMessageRequest result = + new com.google.pubsub.v1.ValidateMessageRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -600,8 +662,7 @@ private void buildPartial0(com.google.pubsub.v1.ValidateMessageRequest result) { private void buildPartialOneofs(com.google.pubsub.v1.ValidateMessageRequest result) { result.schemaSpecCase_ = schemaSpecCase_; result.schemaSpec_ = this.schemaSpec_; - if (schemaSpecCase_ == 3 && - schemaBuilder_ != null) { + if (schemaSpecCase_ == 3 && schemaBuilder_ != null) { result.schemaSpec_ = schemaBuilder_.build(); } } @@ -610,38 +671,39 @@ private void buildPartialOneofs(com.google.pubsub.v1.ValidateMessageRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ValidateMessageRequest) { - return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest)other); + return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest) other); } else { super.mergeFrom(other); return this; @@ -662,19 +724,22 @@ public Builder mergeFrom(com.google.pubsub.v1.ValidateMessageRequest other) { setEncodingValue(other.getEncodingValue()); } switch (other.getSchemaSpecCase()) { - case NAME: { - schemaSpecCase_ = 2; - schemaSpec_ = other.schemaSpec_; - onChanged(); - break; - } - case SCHEMA: { - mergeSchema(other.getSchema()); - break; - } - case SCHEMASPEC_NOT_SET: { - break; - } + case NAME: + { + schemaSpecCase_ = 2; + schemaSpec_ = other.schemaSpec_; + onChanged(); + break; + } + case SCHEMA: + { + mergeSchema(other.getSchema()); + break; + } + case SCHEMASPEC_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -702,40 +767,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - schemaSpecCase_ = 2; - schemaSpec_ = s; - break; - } // case 18 - case 26: { - input.readMessage( - getSchemaFieldBuilder().getBuilder(), - extensionRegistry); - schemaSpecCase_ = 3; - break; - } // case 26 - case 34: { - message_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - encoding_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + schemaSpecCase_ = 2; + schemaSpec_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + schemaSpecCase_ = 3; + break; + } // case 26 + case 34: + { + message_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + encoding_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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) { @@ -745,12 +814,12 @@ public Builder mergeFrom( } // finally return this; } + private int schemaSpecCase_ = 0; private java.lang.Object schemaSpec_; - public SchemaSpecCase - getSchemaSpecCase() { - return SchemaSpecCase.forNumber( - schemaSpecCase_); + + public SchemaSpecCase getSchemaSpecCase() { + return SchemaSpecCase.forNumber(schemaSpecCase_); } public Builder clearSchemaSpec() { @@ -764,19 +833,23 @@ public Builder clearSchemaSpec() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -785,21 +858,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -807,30 +883,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -840,18 +927,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -860,6 +953,8 @@ public Builder setParentBytes( } /** + * + * *
      * Name of the schema against which to validate.
      *
@@ -867,6 +962,7 @@ public Builder setParentBytes(
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return Whether the name field is set. */ @java.lang.Override @@ -874,6 +970,8 @@ public boolean hasName() { return schemaSpecCase_ == 2; } /** + * + * *
      * Name of the schema against which to validate.
      *
@@ -881,6 +979,7 @@ public boolean hasName() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -890,8 +989,7 @@ public java.lang.String getName() { ref = schemaSpec_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (schemaSpecCase_ == 2) { schemaSpec_ = s; @@ -902,6 +1000,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the schema against which to validate.
      *
@@ -909,19 +1009,18 @@ public java.lang.String getName() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = ""; if (schemaSpecCase_ == 2) { ref = schemaSpec_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (schemaSpecCase_ == 2) { schemaSpec_ = b; } @@ -931,6 +1030,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the schema against which to validate.
      *
@@ -938,18 +1039,22 @@ public java.lang.String getName() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaSpecCase_ = 2; schemaSpec_ = value; onChanged(); return this; } /** + * + * *
      * Name of the schema against which to validate.
      *
@@ -957,6 +1062,7 @@ public Builder setName(
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { @@ -968,6 +1074,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Name of the schema against which to validate.
      *
@@ -975,12 +1083,14 @@ public Builder clearName() {
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaSpecCase_ = 2; schemaSpec_ = value; @@ -989,13 +1099,19 @@ public Builder setNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemaBuilder_; /** + * + * *
      * Ad-hoc schema against which to validate
      * 
* * .google.pubsub.v1.Schema schema = 3; + * * @return Whether the schema field is set. */ @java.lang.Override @@ -1003,11 +1119,14 @@ public boolean hasSchema() { return schemaSpecCase_ == 3; } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
* * .google.pubsub.v1.Schema schema = 3; + * * @return The schema. */ @java.lang.Override @@ -1025,6 +1144,8 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1045,14 +1166,15 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
* * .google.pubsub.v1.Schema schema = 3; */ - public Builder setSchema( - com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schemaSpec_ = builderForValue.build(); onChanged(); @@ -1063,6 +1185,8 @@ public Builder setSchema( return this; } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1071,10 +1195,12 @@ public Builder setSchema( */ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { - if (schemaSpecCase_ == 3 && - schemaSpec_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { - schemaSpec_ = com.google.pubsub.v1.Schema.newBuilder((com.google.pubsub.v1.Schema) schemaSpec_) - .mergeFrom(value).buildPartial(); + if (schemaSpecCase_ == 3 + && schemaSpec_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { + schemaSpec_ = + com.google.pubsub.v1.Schema.newBuilder((com.google.pubsub.v1.Schema) schemaSpec_) + .mergeFrom(value) + .buildPartial(); } else { schemaSpec_ = value; } @@ -1090,6 +1216,8 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1113,6 +1241,8 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1123,6 +1253,8 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1141,6 +1273,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1148,17 +1282,20 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * .google.pubsub.v1.Schema schema = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { if (!(schemaSpecCase_ == 3)) { schemaSpec_ = com.google.pubsub.v1.Schema.getDefaultInstance(); } - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( - (com.google.pubsub.v1.Schema) schemaSpec_, - getParentForChildren(), - isClean()); + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + (com.google.pubsub.v1.Schema) schemaSpec_, getParentForChildren(), isClean()); schemaSpec_ = null; } schemaSpecCase_ = 3; @@ -1168,11 +1305,14 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Message to validate against the provided `schema_spec`.
      * 
* * bytes message = 4; + * * @return The message. */ @java.lang.Override @@ -1180,27 +1320,35 @@ public com.google.protobuf.ByteString getMessage() { return message_; } /** + * + * *
      * Message to validate against the provided `schema_spec`.
      * 
* * bytes message = 4; + * * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } message_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Message to validate against the provided `schema_spec`.
      * 
* * bytes message = 4; + * * @return This builder for chaining. */ public Builder clearMessage() { @@ -1212,22 +1360,29 @@ public Builder clearMessage() { private int encoding_ = 0; /** + * + * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ @@ -1238,11 +1393,14 @@ public Builder setEncodingValue(int value) { return this; } /** + * + * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return The encoding. */ @java.lang.Override @@ -1251,11 +1409,14 @@ public com.google.pubsub.v1.Encoding getEncoding() { return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } /** + * + * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @param value The encoding to set. * @return This builder for chaining. */ @@ -1269,11 +1430,14 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { return this; } /** + * + * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -1282,9 +1446,9 @@ public Builder clearEncoding() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1294,12 +1458,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateMessageRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateMessageRequest) private static final com.google.pubsub.v1.ValidateMessageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateMessageRequest(); } @@ -1308,27 +1472,27 @@ public static com.google.pubsub.v1.ValidateMessageRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateMessageRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateMessageRequest 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; @@ -1343,6 +1507,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ValidateMessageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 2b4283851..18436cb2d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ValidateMessageRequestOrBuilder extends +public interface ValidateMessageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Name of the schema against which to validate.
    *
@@ -38,10 +65,13 @@ public interface ValidateMessageRequestOrBuilder extends
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return Whether the name field is set. */ boolean hasName(); /** + * + * *
    * Name of the schema against which to validate.
    *
@@ -49,10 +79,13 @@ public interface ValidateMessageRequestOrBuilder extends
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the schema against which to validate.
    *
@@ -60,30 +93,38 @@ public interface ValidateMessageRequestOrBuilder extends
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Ad-hoc schema against which to validate
    * 
* * .google.pubsub.v1.Schema schema = 3; + * * @return Whether the schema field is set. */ boolean hasSchema(); /** + * + * *
    * Ad-hoc schema against which to validate
    * 
* * .google.pubsub.v1.Schema schema = 3; + * * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); /** + * + * *
    * Ad-hoc schema against which to validate
    * 
@@ -93,30 +134,39 @@ public interface ValidateMessageRequestOrBuilder extends com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder(); /** + * + * *
    * Message to validate against the provided `schema_spec`.
    * 
* * bytes message = 4; + * * @return The message. */ com.google.protobuf.ByteString getMessage(); /** + * + * *
    * The encoding expected for messages
    * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * The encoding expected for messages
    * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return The encoding. */ com.google.pubsub.v1.Encoding getEncoding(); diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index b308f789b..77c2d1c4d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,6 +20,8 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ValidateMessage` method.
  * Empty for now.
@@ -12,39 +29,41 @@
  *
  * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse}
  */
-public final class ValidateMessageResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ValidateMessageResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageResponse)
     ValidateMessageResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ValidateMessageResponse.newBuilder() to construct.
   private ValidateMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ValidateMessageResponse() {
-  }
+
+  private ValidateMessageResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ValidateMessageResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.SchemaProto
+        .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable
+    return com.google.pubsub.v1.SchemaProto
+        .internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.ValidateMessageResponse.class, com.google.pubsub.v1.ValidateMessageResponse.Builder.class);
+            com.google.pubsub.v1.ValidateMessageResponse.class,
+            com.google.pubsub.v1.ValidateMessageResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -56,8 +75,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -75,12 +93,13 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.ValidateMessageResponse)) {
       return super.equals(obj);
     }
-    com.google.pubsub.v1.ValidateMessageResponse other = (com.google.pubsub.v1.ValidateMessageResponse) obj;
+    com.google.pubsub.v1.ValidateMessageResponse other =
+        (com.google.pubsub.v1.ValidateMessageResponse) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -98,99 +117,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.ValidateMessageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ValidateMessageResponse 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.ValidateMessageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.pubsub.v1.ValidateMessageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response for the `ValidateMessage` method.
    * Empty for now.
@@ -198,33 +222,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateMessageResponse)
       com.google.pubsub.v1.ValidateMessageResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.SchemaProto
+          .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable
+      return com.google.pubsub.v1.SchemaProto
+          .internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.ValidateMessageResponse.class, com.google.pubsub.v1.ValidateMessageResponse.Builder.class);
+              com.google.pubsub.v1.ValidateMessageResponse.class,
+              com.google.pubsub.v1.ValidateMessageResponse.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.ValidateMessageResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -232,9 +255,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.SchemaProto
+          .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
     }
 
     @java.lang.Override
@@ -253,7 +276,8 @@ public com.google.pubsub.v1.ValidateMessageResponse build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.ValidateMessageResponse buildPartial() {
-      com.google.pubsub.v1.ValidateMessageResponse result = new com.google.pubsub.v1.ValidateMessageResponse(this);
+      com.google.pubsub.v1.ValidateMessageResponse result =
+          new com.google.pubsub.v1.ValidateMessageResponse(this);
       onBuilt();
       return result;
     }
@@ -262,38 +286,39 @@ public com.google.pubsub.v1.ValidateMessageResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.ValidateMessageResponse) {
-        return mergeFrom((com.google.pubsub.v1.ValidateMessageResponse)other);
+        return mergeFrom((com.google.pubsub.v1.ValidateMessageResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -328,12 +353,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            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) {
@@ -343,9 +369,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -355,12 +381,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateMessageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateMessageResponse)
   private static final com.google.pubsub.v1.ValidateMessageResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateMessageResponse();
   }
@@ -369,27 +395,27 @@ public static com.google.pubsub.v1.ValidateMessageResponse getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ValidateMessageResponse 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();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ValidateMessageResponse 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;
@@ -404,6 +430,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ValidateMessageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java
new file mode 100644
index 000000000..2cb87b7fe
--- /dev/null
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/schema.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.pubsub.v1;
+
+public interface ValidateMessageResponseOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageResponse)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
similarity index 67%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
index 8db695a37..d4f978e33 100644
--- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/schema.proto
 
@@ -5,56 +20,66 @@
 package com.google.pubsub.v1;
 
 /**
+ *
+ *
  * 
  * Request for the `ValidateSchema` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ValidateSchemaRequest} */ -public final class ValidateSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValidateSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaRequest) ValidateSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValidateSchemaRequest.newBuilder() to construct. private ValidateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValidateSchemaRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateSchemaRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ValidateSchemaRequest.class, com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); + com.google.pubsub.v1.ValidateSchemaRequest.class, + com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -97,11 +124,14 @@ public java.lang.String getParent() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; /** + * + * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ @java.lang.Override @@ -109,11 +139,14 @@ public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -121,6 +154,8 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** + * + * *
    * Required. The schema object to validate.
    * 
@@ -133,6 +168,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +180,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -165,8 +200,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,19 +210,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ValidateSchemaRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ValidateSchemaRequest other = (com.google.pubsub.v1.ValidateSchemaRequest) obj; + com.google.pubsub.v1.ValidateSchemaRequest other = + (com.google.pubsub.v1.ValidateSchemaRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -212,120 +245,127 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + 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.ValidateSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ValidateSchemaRequest 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.ValidateSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ValidateSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ValidateSchema` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ValidateSchemaRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateSchemaRequest) com.google.pubsub.v1.ValidateSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ValidateSchemaRequest.class, com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); + com.google.pubsub.v1.ValidateSchemaRequest.class, + com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.ValidateSchemaRequest.newBuilder() @@ -333,17 +373,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSchemaFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; } @java.lang.Override @@ -379,8 +419,11 @@ public com.google.pubsub.v1.ValidateSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.ValidateSchemaRequest buildPartial() { - com.google.pubsub.v1.ValidateSchemaRequest result = new com.google.pubsub.v1.ValidateSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.pubsub.v1.ValidateSchemaRequest result = + new com.google.pubsub.v1.ValidateSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -392,9 +435,7 @@ private void buildPartial0(com.google.pubsub.v1.ValidateSchemaRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.schema_ = schemaBuilder_ == null - ? schema_ - : schemaBuilder_.build(); + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -404,38 +445,39 @@ private void buildPartial0(com.google.pubsub.v1.ValidateSchemaRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + 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) { + 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) { + 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) { + 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) { + 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.ValidateSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -478,24 +520,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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) { @@ -505,23 +548,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -530,21 +578,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -552,30 +603,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -585,18 +647,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -606,24 +674,33 @@ public Builder setParentBytes( private com.google.pubsub.v1.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemaBuilder_; /** + * + * *
      * Required. The schema object to validate.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The schema object to validate.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ public com.google.pubsub.v1.Schema getSchema() { @@ -634,6 +711,8 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -654,14 +733,15 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * Required. The schema object to validate.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSchema( - com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { @@ -672,6 +752,8 @@ public Builder setSchema( return this; } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -680,9 +762,9 @@ public Builder setSchema( */ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - schema_ != null && - schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && schema_ != null + && schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; @@ -697,6 +779,8 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -714,6 +798,8 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -726,6 +812,8 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -736,11 +824,12 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null ? - com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -748,21 +837,24 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( - getSchema(), - getParentForChildren(), - isClean()); + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -772,12 +864,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateSchemaRequest) private static final com.google.pubsub.v1.ValidateSchemaRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateSchemaRequest(); } @@ -786,27 +878,27 @@ public static com.google.pubsub.v1.ValidateSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateSchemaRequest 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(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateSchemaRequest 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; @@ -821,6 +913,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ValidateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 6534d3b56..0f3cf4413 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,54 +1,87 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto // Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; -public interface ValidateSchemaRequestOrBuilder extends +public interface ValidateSchemaRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the schema field is set. */ boolean hasSchema(); /** + * + * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); /** + * + * *
    * Required. The schema object to validate.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index be15c0588..3d801baa3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto @@ -5,6 +20,8 @@ package com.google.pubsub.v1; /** + * + * *
  * Response for the `ValidateSchema` method.
  * Empty for now.
@@ -12,39 +29,41 @@
  *
  * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse}
  */
-public final class ValidateSchemaResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ValidateSchemaResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaResponse)
     ValidateSchemaResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ValidateSchemaResponse.newBuilder() to construct.
   private ValidateSchemaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ValidateSchemaResponse() {
-  }
+
+  private ValidateSchemaResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ValidateSchemaResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.pubsub.v1.SchemaProto
+        .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable
+    return com.google.pubsub.v1.SchemaProto
+        .internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.ValidateSchemaResponse.class, com.google.pubsub.v1.ValidateSchemaResponse.Builder.class);
+            com.google.pubsub.v1.ValidateSchemaResponse.class,
+            com.google.pubsub.v1.ValidateSchemaResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -56,8 +75,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -75,12 +93,13 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.ValidateSchemaResponse)) {
       return super.equals(obj);
     }
-    com.google.pubsub.v1.ValidateSchemaResponse other = (com.google.pubsub.v1.ValidateSchemaResponse) obj;
+    com.google.pubsub.v1.ValidateSchemaResponse other =
+        (com.google.pubsub.v1.ValidateSchemaResponse) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -98,99 +117,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      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.ValidateSchemaResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ValidateSchemaResponse 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.ValidateSchemaResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.pubsub.v1.ValidateSchemaResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response for the `ValidateSchema` method.
    * Empty for now.
@@ -198,33 +222,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateSchemaResponse)
       com.google.pubsub.v1.ValidateSchemaResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.pubsub.v1.SchemaProto
+          .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable
+      return com.google.pubsub.v1.SchemaProto
+          .internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.ValidateSchemaResponse.class, com.google.pubsub.v1.ValidateSchemaResponse.Builder.class);
+              com.google.pubsub.v1.ValidateSchemaResponse.class,
+              com.google.pubsub.v1.ValidateSchemaResponse.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.ValidateSchemaResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -232,9 +255,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.pubsub.v1.SchemaProto
+          .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
     }
 
     @java.lang.Override
@@ -253,7 +276,8 @@ public com.google.pubsub.v1.ValidateSchemaResponse build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.ValidateSchemaResponse buildPartial() {
-      com.google.pubsub.v1.ValidateSchemaResponse result = new com.google.pubsub.v1.ValidateSchemaResponse(this);
+      com.google.pubsub.v1.ValidateSchemaResponse result =
+          new com.google.pubsub.v1.ValidateSchemaResponse(this);
       onBuilt();
       return result;
     }
@@ -262,38 +286,39 @@ public com.google.pubsub.v1.ValidateSchemaResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        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) {
+    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) {
+    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) {
+        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) {
+        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.ValidateSchemaResponse) {
-        return mergeFrom((com.google.pubsub.v1.ValidateSchemaResponse)other);
+        return mergeFrom((com.google.pubsub.v1.ValidateSchemaResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -328,12 +353,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            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) {
@@ -343,9 +369,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -355,12 +381,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateSchemaResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateSchemaResponse)
   private static final com.google.pubsub.v1.ValidateSchemaResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateSchemaResponse();
   }
@@ -369,27 +395,27 @@ public static com.google.pubsub.v1.ValidateSchemaResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ValidateSchemaResponse 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();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ValidateSchemaResponse 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;
@@ -404,6 +430,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ValidateSchemaResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java
new file mode 100644
index 000000000..f31accde5
--- /dev/null
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/schema.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.pubsub.v1;
+
+public interface ValidateSchemaResponseOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaResponse)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/v1/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
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
rename to proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto
rename to proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto