From dc65827da8fad3846b9e473d9e6403e0b9f33705 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 May 2022 21:10:25 +0000 Subject: [PATCH 1/2] chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 --- .../google/pubsub/v1/SchemaServiceGrpc.java | 906 ------ .../cloud/pubsub/v1/SchemaServiceClient.java | 82 +- .../pubsub/v1/SchemaServiceSettings.java | 11 +- .../pubsub/v1/SubscriptionAdminClient.java | 974 ++----- .../pubsub/v1/SubscriptionAdminSettings.java | 11 +- .../cloud/pubsub/v1/TopicAdminClient.java | 340 +-- .../cloud/pubsub/v1/TopicAdminSettings.java | 17 +- .../cloud/pubsub/v1/gapic_metadata.json | 0 .../google/cloud/pubsub/v1/package-info.java | 8 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 3 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 3 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 3 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 31 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 10 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 16 +- .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../com/google/pubsub/v1/PublisherGrpc.java | 906 +++--- .../google/pubsub/v1/SchemaServiceGrpc.java | 733 +++++ .../com/google/pubsub/v1/SubscriberGrpc.java | 1469 ++++------ .../google/pubsub/v1/AcknowledgeRequest.java | 437 ++- .../v1/AcknowledgeRequestOrBuilder.java | 53 +- .../google/pubsub/v1/CreateSchemaRequest.java | 493 ++-- .../v1/CreateSchemaRequestOrBuilder.java | 52 +- .../pubsub/v1/CreateSnapshotRequest.java | 698 +++-- .../v1/CreateSnapshotRequestOrBuilder.java | 83 +- .../google/pubsub/v1/DeadLetterPolicy.java | 331 +-- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 30 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 326 +-- .../v1/DeleteSchemaRequestOrBuilder.java | 31 + .../pubsub/v1/DeleteSnapshotRequest.java | 329 +-- .../v1/DeleteSnapshotRequestOrBuilder.java | 31 + .../pubsub/v1/DeleteSubscriptionRequest.java | 329 +-- .../DeleteSubscriptionRequestOrBuilder.java | 31 + .../google/pubsub/v1/DeleteTopicRequest.java | 326 +-- .../v1/DeleteTopicRequestOrBuilder.java | 31 + .../pubsub/v1/DetachSubscriptionRequest.java | 329 +-- .../DetachSubscriptionRequestOrBuilder.java | 31 + .../pubsub/v1/DetachSubscriptionResponse.java | 228 +- .../DetachSubscriptionResponseOrBuilder.java | 9 + .../java/com/google/pubsub/v1/Encoding.java | 82 +- .../google/pubsub/v1/ExpirationPolicy.java | 310 +-- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 26 +- .../google/pubsub/v1/GetSchemaRequest.java | 375 +-- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 41 +- .../google/pubsub/v1/GetSnapshotRequest.java | 326 +-- .../v1/GetSnapshotRequestOrBuilder.java | 31 + .../pubsub/v1/GetSubscriptionRequest.java | 329 +-- .../v1/GetSubscriptionRequestOrBuilder.java | 31 + .../com/google/pubsub/v1/GetTopicRequest.java | 322 +-- .../pubsub/v1/GetTopicRequestOrBuilder.java | 31 + .../google/pubsub/v1/ListSchemasRequest.java | 489 ++-- .../v1/ListSchemasRequestOrBuilder.java | 53 +- .../google/pubsub/v1/ListSchemasResponse.java | 454 ++- .../v1/ListSchemasResponseOrBuilder.java | 46 +- .../pubsub/v1/ListSnapshotsRequest.java | 442 ++- .../v1/ListSnapshotsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListSnapshotsResponse.java | 454 ++- .../v1/ListSnapshotsResponseOrBuilder.java | 46 +- .../pubsub/v1/ListSubscriptionsRequest.java | 442 ++- .../v1/ListSubscriptionsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListSubscriptionsResponse.java | 443 ++- .../ListSubscriptionsResponseOrBuilder.java | 45 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 442 ++- .../ListTopicSnapshotsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 415 ++- .../ListTopicSnapshotsResponseOrBuilder.java | 45 +- .../v1/ListTopicSubscriptionsRequest.java | 452 ++- ...istTopicSubscriptionsRequestOrBuilder.java | 47 +- .../v1/ListTopicSubscriptionsResponse.java | 425 ++- ...stTopicSubscriptionsResponseOrBuilder.java | 45 +- .../google/pubsub/v1/ListTopicsRequest.java | 435 ++- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 47 +- .../google/pubsub/v1/ListTopicsResponse.java | 454 ++- .../v1/ListTopicsResponseOrBuilder.java | 46 +- .../pubsub/v1/MessageStoragePolicy.java | 340 +-- .../v1/MessageStoragePolicyOrBuilder.java | 36 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 474 ++-- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 56 +- .../pubsub/v1/ModifyPushConfigRequest.java | 461 ++- .../v1/ModifyPushConfigRequestOrBuilder.java | 52 +- .../com/google/pubsub/v1/ProjectName.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 562 ++-- .../pubsub/v1/PublishRequestOrBuilder.java | 75 + .../com/google/pubsub/v1/PublishResponse.java | 326 +-- .../pubsub/v1/PublishResponseOrBuilder.java | 36 +- .../com/google/pubsub/v1/PubsubMessage.java | 767 +++-- .../pubsub/v1/PubsubMessageOrBuilder.java | 78 +- .../com/google/pubsub/v1/PubsubProto.java | 952 +++++++ .../com/google/pubsub/v1/PullRequest.java | 430 ++- .../pubsub/v1/PullRequestOrBuilder.java | 51 +- .../com/google/pubsub/v1/PullResponse.java | 359 +-- .../pubsub/v1/PullResponseOrBuilder.java | 36 +- .../java/com/google/pubsub/v1/PushConfig.java | 1071 ++++--- .../google/pubsub/v1/PushConfigOrBuilder.java | 66 +- .../com/google/pubsub/v1/ReceivedMessage.java | 424 ++- .../pubsub/v1/ReceivedMessageOrBuilder.java | 38 +- .../com/google/pubsub/v1/RetryPolicy.java | 414 ++- .../pubsub/v1/RetryPolicyOrBuilder.java | 34 +- .../java/com/google/pubsub/v1/Schema.java | 472 ++-- .../java/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 42 +- .../com/google/pubsub/v1/SchemaProto.java | 236 ++ .../com/google/pubsub/v1/SchemaSettings.java | 372 +-- .../pubsub/v1/SchemaSettingsOrBuilder.java | 41 +- .../java/com/google/pubsub/v1/SchemaView.java | 82 +- .../com/google/pubsub/v1/SeekRequest.java | 561 ++-- .../pubsub/v1/SeekRequestOrBuilder.java | 55 +- .../com/google/pubsub/v1/SeekResponse.java | 218 +- .../pubsub/v1/SeekResponseOrBuilder.java | 9 + .../java/com/google/pubsub/v1/Snapshot.java | 716 +++-- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 75 +- .../pubsub/v1/StreamingPullRequest.java | 842 +++--- .../v1/StreamingPullRequestOrBuilder.java | 98 +- .../pubsub/v1/StreamingPullResponse.java | 2460 ++++++----------- .../v1/StreamingPullResponseOrBuilder.java | 108 +- .../com/google/pubsub/v1/Subscription.java | 1575 ++++------- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 159 +- .../main/java/com/google/pubsub/v1/Topic.java | 956 +++---- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 94 +- .../pubsub/v1/UpdateSnapshotRequest.java | 472 ++-- .../v1/UpdateSnapshotRequestOrBuilder.java | 43 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 505 ++-- .../UpdateSubscriptionRequestOrBuilder.java | 55 +- .../google/pubsub/v1/UpdateTopicRequest.java | 441 ++- .../v1/UpdateTopicRequestOrBuilder.java | 43 +- .../pubsub/v1/ValidateMessageRequest.java | 661 ++--- .../v1/ValidateMessageRequestOrBuilder.java | 64 +- .../pubsub/v1/ValidateMessageResponse.java | 225 +- .../v1/ValidateMessageResponseOrBuilder.java | 9 + .../pubsub/v1/ValidateSchemaRequest.java | 417 ++- .../v1/ValidateSchemaRequestOrBuilder.java | 43 +- .../pubsub/v1/ValidateSchemaResponse.java | 225 +- .../v1/ValidateSchemaResponseOrBuilder.java | 9 + .../main/proto/google/pubsub/v1/pubsub.proto | 0 .../main/proto/google/pubsub/v1/schema.proto | 0 .../v1/DeleteSchemaRequestOrBuilder.java | 56 - .../v1/DeleteSnapshotRequestOrBuilder.java | 56 - .../DeleteSubscriptionRequestOrBuilder.java | 56 - .../v1/DeleteTopicRequestOrBuilder.java | 56 - .../DetachSubscriptionRequestOrBuilder.java | 56 - .../DetachSubscriptionResponseOrBuilder.java | 24 - .../v1/GetSnapshotRequestOrBuilder.java | 56 - .../v1/GetSubscriptionRequestOrBuilder.java | 56 - .../pubsub/v1/GetTopicRequestOrBuilder.java | 56 - .../pubsub/v1/PublishRequestOrBuilder.java | 117 - .../com/google/pubsub/v1/PubsubProto.java | 1044 ------- .../com/google/pubsub/v1/SchemaProto.java | 255 -- .../pubsub/v1/SeekResponseOrBuilder.java | 24 - .../v1/ValidateMessageResponseOrBuilder.java | 24 - .../v1/ValidateSchemaResponseOrBuilder.java | 24 - 169 files changed, 15086 insertions(+), 23982 deletions(-) delete mode 100644 grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java (87%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java (95%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java (74%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java (97%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java (85%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java (95%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json (100%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/package-info.java (85%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java (97%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java (98%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java (98%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java (98%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java (98%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java (98%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java (98%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java (99%) rename {google-cloud-pubsub => owl-bot-staging/v1/google-cloud-pubsub}/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java (99%) rename {grpc-google-cloud-pubsub-v1 => owl-bot-staging/v1/grpc-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublisherGrpc.java (50%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java rename {grpc-google-cloud-pubsub-v1 => owl-bot-staging/v1/grpc-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java (57%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java (71%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java (65%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java (72%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java (66%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java (68%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java (77%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java (76%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Encoding.java (67%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java (75%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java (70%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java (56%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetTopicRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java (72%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java (65%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java (63%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java (57%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java (63%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java (57%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java (75%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java (70%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java (58%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java (72%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java (66%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java (58%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java (72%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java (70%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java (57%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java (63%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java (74%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java (75%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java (72%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java (67%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java (70%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java (64%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ProjectName.java (99%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublishRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublishResponse.java (72%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java (66%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PubsubMessage.java (72%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullRequest.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java (59%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullResponse.java (78%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java (76%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PushConfig.java (76%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java (86%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ReceivedMessage.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/RetryPolicy.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java (75%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Schema.java (75%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaName.java (99%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaSettings.java (70%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java (57%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaView.java (67%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SeekRequest.java (75%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java (78%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SeekResponse.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Snapshot.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SnapshotName.java (99%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java (79%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java (81%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java (88%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java (59%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Subscription.java (77%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SubscriptionName.java (99%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java (88%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Topic.java (74%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/TopicName.java (99%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java (85%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java (69%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java (68%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java (65%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java (57%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java (73%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java (74%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java (72%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java (70%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java (68%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java (57%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/proto/google/pubsub/v1/pubsub.proto (100%) rename {proto-google-cloud-pubsub-v1 => owl-bot-staging/v1/proto-google-cloud-pubsub-v1}/src/main/proto/google/pubsub/v1/schema.proto (100%) delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java delete mode 100644 proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java 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 deleted file mode 100644 index c8061efe2..000000000 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ /dev/null @@ -1,906 +0,0 @@ -/* - * Copyright 2020 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 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.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 abstract static class SchemaServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a schema.
-     * 
- */ - public void createSchema( - com.google.pubsub.v1.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a schema.
-     * 
- */ - public 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.
-     * 
- */ - public void listSchemas( - com.google.pubsub.v1.ListSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSchemasMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a schema.
-     * 
- */ - public void deleteSchema( - com.google.pubsub.v1.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Validates a schema.
-     * 
- */ - public 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.
-     * 
- */ - public void validateMessage( - com.google.pubsub.v1.ValidateMessageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getValidateMessageMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_CREATE_SCHEMA))) - .addMethod( - getGetSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>( - this, METHODID_GET_SCHEMA))) - .addMethod( - getListSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSchemasRequest, - com.google.pubsub.v1.ListSchemasResponse>(this, METHODID_LIST_SCHEMAS))) - .addMethod( - getDeleteSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SCHEMA))) - .addMethod( - getValidateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateSchemaRequest, - com.google.pubsub.v1.ValidateSchemaResponse>(this, METHODID_VALIDATE_SCHEMA))) - .addMethod( - getValidateMessageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateMessageRequest, - com.google.pubsub.v1.ValidateMessageResponse>( - this, METHODID_VALIDATE_MESSAGE))) - .build(); - } - } - - /** - * - * - *
-   * 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); - } - - /** - * - * - *
-     * 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); - } - } - - /** - * - * - *
-   * 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); - } - - /** - * - * - *
-     * 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); - } - } - - /** - * - * - *
-   * 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); - } - - /** - * - * - *
-     * 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_DELETE_SCHEMA = 3; - private static final int METHODID_VALIDATE_SCHEMA = 4; - private static final int METHODID_VALIDATE_MESSAGE = 5; - - 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 SchemaServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SchemaServiceImplBase 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_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(); - } - } - } - - 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 String methodName; - - SchemaServiceMethodDescriptorSupplier(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(getDeleteSchemaMethod()) - .addMethod(getValidateSchemaMethod()) - .addMethod(getValidateMessageMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java similarity index 87% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index fd0f238e2..b2bcae096 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,6 +59,8 @@ * calls that map to API methods. Sample code to get started: * *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   Schema schema = Schema.newBuilder().build();
@@ -74,13 +76,13 @@
  * methods:
  *
  * 
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -96,6 +98,8 @@ *

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings schemaServiceSettings =
  *     SchemaServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -106,6 +110,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings schemaServiceSettings =
  *     SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
@@ -173,6 +179,8 @@ public SchemaServiceStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Schema schema = Schema.newBuilder().build();
@@ -209,6 +217,8 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Schema schema = Schema.newBuilder().build();
@@ -245,6 +255,8 @@ public final Schema createSchema(String parent, Schema schema, String schemaId)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   CreateSchemaRequest request =
    *       CreateSchemaRequest.newBuilder()
@@ -270,6 +282,8 @@ public final Schema createSchema(CreateSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   CreateSchemaRequest request =
    *       CreateSchemaRequest.newBuilder()
@@ -294,6 +308,8 @@ public final UnaryCallable createSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    *   Schema response = schemaServiceClient.getSchema(name);
@@ -317,6 +333,8 @@ public final Schema getSchema(SchemaName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    *   Schema response = schemaServiceClient.getSchema(name);
@@ -339,6 +357,8 @@ public final Schema getSchema(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetSchemaRequest request =
    *       GetSchemaRequest.newBuilder()
@@ -363,6 +383,8 @@ public final Schema getSchema(GetSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetSchemaRequest request =
    *       GetSchemaRequest.newBuilder()
@@ -386,6 +408,8 @@ public final UnaryCallable getSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
@@ -413,6 +437,8 @@ public final ListSchemasPagedResponse listSchemas(ProjectName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
@@ -437,6 +463,8 @@ public final ListSchemasPagedResponse listSchemas(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -465,6 +493,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -493,6 +523,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ListSchemasRequest request =
    *       ListSchemasRequest.newBuilder()
@@ -527,6 +559,8 @@ public final UnaryCallable listSchemasC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    *   schemaServiceClient.deleteSchema(name);
@@ -550,6 +584,8 @@ public final void deleteSchema(SchemaName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    *   schemaServiceClient.deleteSchema(name);
@@ -572,6 +608,8 @@ public final void deleteSchema(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   DeleteSchemaRequest request =
    *       DeleteSchemaRequest.newBuilder()
@@ -595,6 +633,8 @@ public final void deleteSchema(DeleteSchemaRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   DeleteSchemaRequest request =
    *       DeleteSchemaRequest.newBuilder()
@@ -617,6 +657,8 @@ public final UnaryCallable deleteSchemaCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Schema schema = Schema.newBuilder().build();
@@ -645,6 +687,8 @@ public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema sc
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Schema schema = Schema.newBuilder().build();
@@ -670,6 +714,8 @@ public final ValidateSchemaResponse validateSchema(String parent, Schema schema)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateSchemaRequest request =
    *       ValidateSchemaRequest.newBuilder()
@@ -694,6 +740,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateSchemaRequest request =
    *       ValidateSchemaRequest.newBuilder()
@@ -719,6 +767,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateMessageRequest request =
    *       ValidateMessageRequest.newBuilder()
@@ -744,6 +794,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   ValidateMessageRequest request =
    *       ValidateMessageRequest.newBuilder()
@@ -772,6 +824,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -799,6 +853,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -824,6 +880,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -849,6 +907,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -877,6 +937,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -906,6 +968,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -956,10 +1020,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted
 
   public static class ListSchemasPagedResponse
       extends AbstractPagedListResponse<
-          ListSchemasRequest,
-          ListSchemasResponse,
-          Schema,
-          ListSchemasPage,
+          ListSchemasRequest, ListSchemasResponse, Schema, ListSchemasPage,
           ListSchemasFixedSizeCollection> {
 
     public static ApiFuture createAsync(
@@ -1006,10 +1067,7 @@ public ApiFuture createPageAsync(
 
   public static class ListSchemasFixedSizeCollection
       extends AbstractFixedSizeCollection<
-          ListSchemasRequest,
-          ListSchemasResponse,
-          Schema,
-          ListSchemasPage,
+          ListSchemasRequest, ListSchemasResponse, Schema, ListSchemasPage,
           ListSchemasFixedSizeCollection> {
 
     private ListSchemasFixedSizeCollection(List pages, int collectionSize) {
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
similarity index 95%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
index e8c50371c..1d79903e9 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -27,6 +27,7 @@
 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;
@@ -57,9 +58,9 @@
  * 

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -68,6 +69,8 @@ *

For example, to set the total timeout of createSchema to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
  * schemaServiceSettingsBuilder
  *     .createSchemaSettings()
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
similarity index 74%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
index 8f11330eb..4960921d2 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -48,9 +48,6 @@
 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;
@@ -80,6 +77,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
  *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
  *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -98,13 +97,13 @@
  * methods:
  *
  * 
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -120,6 +119,8 @@ *

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings subscriptionAdminSettings =
  *     SubscriptionAdminSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -131,6 +132,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings subscriptionAdminSettings =
  *     SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
  * SubscriptionAdminClient subscriptionAdminClient =
@@ -208,6 +211,8 @@ public SubscriberStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -274,6 +279,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
@@ -340,6 +347,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -406,6 +415,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
@@ -472,6 +483,8 @@ public final Subscription createSubscription(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   Subscription request =
    *       Subscription.newBuilder()
@@ -502,216 +515,6 @@ 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] @@ -728,6 +531,8 @@ public final Subscription createSubscription( *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   Subscription request =
    *       Subscription.newBuilder()
@@ -765,6 +570,8 @@ public final UnaryCallable createSubscriptionCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
@@ -790,6 +597,8 @@ public final Subscription getSubscription(SubscriptionName subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
@@ -813,6 +622,8 @@ public final Subscription getSubscription(String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSubscriptionRequest request =
    *       GetSubscriptionRequest.newBuilder()
@@ -836,33 +647,8 @@ public final Subscription getSubscription(GetSubscriptionRequest request) {
    * 

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. - * - *

Sample code: - * - *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSubscriptionRequest request =
    *       GetSubscriptionRequest.newBuilder()
@@ -887,6 +673,8 @@ public final UnaryCallable getSubscription
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSubscriptionRequest request =
    *       UpdateSubscriptionRequest.newBuilder()
@@ -912,6 +700,8 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSubscriptionRequest request =
    *       UpdateSubscriptionRequest.newBuilder()
@@ -936,6 +726,8 @@ public final UnaryCallable updateSubscr
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
@@ -963,6 +755,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
@@ -988,6 +782,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -1015,6 +811,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -1043,6 +841,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSubscriptionsRequest request =
    *       ListSubscriptionsRequest.newBuilder()
@@ -1081,6 +881,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   subscriptionAdminClient.deleteSubscription(subscription);
@@ -1109,6 +911,8 @@ public final void deleteSubscription(SubscriptionName subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   subscriptionAdminClient.deleteSubscription(subscription);
@@ -1135,6 +939,8 @@ public final void deleteSubscription(String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSubscriptionRequest request =
    *       DeleteSubscriptionRequest.newBuilder()
@@ -1161,36 +967,8 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) {
    * 

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 - * 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
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSubscriptionRequest request =
    *       DeleteSubscriptionRequest.newBuilder()
@@ -1217,6 +995,8 @@ public final UnaryCallable deleteSubscriptionC
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   List ackIds = new ArrayList<>();
@@ -1258,6 +1038,8 @@ public final void modifyAckDeadline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   List ackIds = new ArrayList<>();
@@ -1299,6 +1081,8 @@ public final void modifyAckDeadline(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyAckDeadlineRequest request =
    *       ModifyAckDeadlineRequest.newBuilder()
@@ -1327,49 +1111,8 @@ public final void modifyAckDeadline(ModifyAckDeadlineRequest request) {
    * 

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 - * 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
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyAckDeadlineRequest request =
    *       ModifyAckDeadlineRequest.newBuilder()
@@ -1399,6 +1142,8 @@ public final UnaryCallable modifyAckDeadlineCal
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   List ackIds = new ArrayList<>();
@@ -1432,6 +1177,8 @@ public final void acknowledge(SubscriptionName subscription, List ackIds
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   List ackIds = new ArrayList<>();
@@ -1462,6 +1209,8 @@ public final void acknowledge(String subscription, List ackIds) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   AcknowledgeRequest request =
    *       AcknowledgeRequest.newBuilder()
@@ -1490,41 +1239,8 @@ public final void acknowledge(AcknowledgeRequest request) {
    * 

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 - * 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
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   AcknowledgeRequest request =
    *       AcknowledgeRequest.newBuilder()
@@ -1549,6 +1265,8 @@ public final UnaryCallable acknowledgeCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   int maxMessages = 496131527;
@@ -1579,6 +1297,8 @@ public final PullResponse pull(SubscriptionName subscription, int maxMessages) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   int maxMessages = 496131527;
@@ -1606,6 +1326,8 @@ public final PullResponse pull(String subscription, int maxMessages) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   boolean returnImmediately = true;
@@ -1646,6 +1368,8 @@ public final PullResponse pull(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   boolean returnImmediately = true;
@@ -1685,6 +1409,8 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   PullRequest request =
    *       PullRequest.newBuilder()
@@ -1711,80 +1437,8 @@ public final PullResponse pull(PullRequest request) {
    * 

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. - /** - * 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
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   PullRequest request =
    *       PullRequest.newBuilder()
@@ -1814,6 +1468,8 @@ public final UnaryCallable pullCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   BidiStream bidiStream =
    *       subscriptionAdminClient.streamingPullCallable().call();
@@ -1852,6 +1508,8 @@ public final UnaryCallable pullCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
@@ -1888,6 +1546,8 @@ public final void modifyPushConfig(SubscriptionName subscription, PushConfig pus
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
@@ -1904,41 +1564,12 @@ public final void modifyPushConfig(SubscriptionName subscription, PushConfig pus
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final void modifyPushConfig(String subscription, PushConfig pushConfig) {
-    ModifyPushConfigRequest request =
-        ModifyPushConfigRequest.newBuilder()
-            .setSubscription(subscription)
-            .setPushConfig(pushConfig)
-            .build();
-    modifyPushConfig(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()) {
-   *   ModifyPushConfigRequest request =
-   *       ModifyPushConfigRequest.newBuilder()
-   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
-   *           .setPushConfig(PushConfig.newBuilder().build())
-   *           .build();
-   *   subscriptionAdminClient.modifyPushConfig(request);
-   * }
-   * }
- * - * @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 void modifyPushConfig(ModifyPushConfigRequest request) { - modifyPushConfigCallable().call(request); + ModifyPushConfigRequest request = + ModifyPushConfigRequest.newBuilder() + .setSubscription(subscription) + .setPushConfig(pushConfig) + .build(); + modifyPushConfig(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1953,30 +1584,23 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
-   *   PushConfig pushConfig = PushConfig.newBuilder().build();
-   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
+   *   ModifyPushConfigRequest request =
+   *       ModifyPushConfigRequest.newBuilder()
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setPushConfig(PushConfig.newBuilder().build())
+   *           .build();
+   *   subscriptionAdminClient.modifyPushConfig(request);
    * }
    * }
* - * @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. + * @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 - * @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); + public final void modifyPushConfig(ModifyPushConfigRequest request) { + modifyPushConfigCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1991,6 +1615,8 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyPushConfigRequest request =
    *       ModifyPushConfigRequest.newBuilder()
@@ -2018,6 +1644,8 @@ public final UnaryCallable modifyPushConfigCalla
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
@@ -2046,6 +1674,8 @@ public final Snapshot getSnapshot(SnapshotName snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
@@ -2071,6 +1701,8 @@ public final Snapshot getSnapshot(String snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSnapshotRequest request =
    *       GetSnapshotRequest.newBuilder()
@@ -2097,36 +1729,8 @@ public final Snapshot getSnapshot(GetSnapshotRequest request) {
    * 

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 <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
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetSnapshotRequest request =
    *       GetSnapshotRequest.newBuilder()
@@ -2153,6 +1757,8 @@ public final UnaryCallable getSnapshotCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
@@ -2183,6 +1789,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
@@ -2210,6 +1818,8 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -2240,6 +1850,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -2271,6 +1883,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ListSnapshotsRequest request =
    *       ListSnapshotsRequest.newBuilder()
@@ -2316,6 +1930,8 @@ public final UnaryCallable listSnap
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
@@ -2364,6 +1980,8 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
@@ -2412,6 +2030,8 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
@@ -2460,6 +2080,8 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
@@ -2505,6 +2127,8 @@ public final Snapshot createSnapshot(String name, String subscription) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   CreateSnapshotRequest request =
    *       CreateSnapshotRequest.newBuilder()
@@ -2541,157 +2165,8 @@ public final Snapshot createSnapshot(CreateSnapshotRequest 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 - * [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
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   CreateSnapshotRequest request =
    *       CreateSnapshotRequest.newBuilder()
@@ -2720,6 +2195,8 @@ public final UnaryCallable createSnapshotCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSnapshotRequest request =
    *       UpdateSnapshotRequest.newBuilder()
@@ -2747,6 +2224,8 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   UpdateSnapshotRequest request =
    *       UpdateSnapshotRequest.newBuilder()
@@ -2777,6 +2256,8 @@ public final UnaryCallable updateSnapshotCallab
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   subscriptionAdminClient.deleteSnapshot(snapshot);
@@ -2808,6 +2289,8 @@ public final void deleteSnapshot(SnapshotName snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   subscriptionAdminClient.deleteSnapshot(snapshot);
@@ -2837,6 +2320,8 @@ public final void deleteSnapshot(String snapshot) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSnapshotRequest request =
    *       DeleteSnapshotRequest.newBuilder()
@@ -2866,39 +2351,8 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) {
    * 

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] - * (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
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   DeleteSnapshotRequest request =
    *       DeleteSnapshotRequest.newBuilder()
@@ -2927,6 +2381,8 @@ public final UnaryCallable deleteSnapshotCallable(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SeekRequest request =
    *       SeekRequest.newBuilder()
@@ -2955,6 +2411,8 @@ public final SeekResponse seek(SeekRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SeekRequest request =
    *       SeekRequest.newBuilder()
@@ -2979,6 +2437,8 @@ public final UnaryCallable seekCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -2997,37 +2457,6 @@ 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. @@ -3037,6 +2466,8 @@ public final Policy setIamPolicy(String resource, Policy policy) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -3062,6 +2493,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -3079,31 +2512,6 @@ 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 @@ -3112,6 +2520,8 @@ public final Policy getIamPolicy(String resource) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -3140,6 +2550,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -3157,44 +2569,6 @@ 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, @@ -3207,6 +2581,8 @@ public final TestIamPermissionsResponse testIamPermissions( *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -3257,10 +2633,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted
 
   public static class ListSubscriptionsPagedResponse
       extends AbstractPagedListResponse<
-          ListSubscriptionsRequest,
-          ListSubscriptionsResponse,
-          Subscription,
-          ListSubscriptionsPage,
+          ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage,
           ListSubscriptionsFixedSizeCollection> {
 
     public static ApiFuture createAsync(
@@ -3281,9 +2654,7 @@ private ListSubscriptionsPagedResponse(ListSubscriptionsPage page) {
 
   public static class ListSubscriptionsPage
       extends AbstractPage<
-          ListSubscriptionsRequest,
-          ListSubscriptionsResponse,
-          Subscription,
+          ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription,
           ListSubscriptionsPage> {
 
     private ListSubscriptionsPage(
@@ -3313,10 +2684,7 @@ public ApiFuture createPageAsync(
 
   public static class ListSubscriptionsFixedSizeCollection
       extends AbstractFixedSizeCollection<
-          ListSubscriptionsRequest,
-          ListSubscriptionsResponse,
-          Subscription,
-          ListSubscriptionsPage,
+          ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage,
           ListSubscriptionsFixedSizeCollection> {
 
     private ListSubscriptionsFixedSizeCollection(
@@ -3337,10 +2705,7 @@ protected ListSubscriptionsFixedSizeCollection createCollection(
 
   public static class ListSnapshotsPagedResponse
       extends AbstractPagedListResponse<
-          ListSnapshotsRequest,
-          ListSnapshotsResponse,
-          Snapshot,
-          ListSnapshotsPage,
+          ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage,
           ListSnapshotsFixedSizeCollection> {
 
     public static ApiFuture createAsync(
@@ -3390,10 +2755,7 @@ public ApiFuture createPageAsync(
 
   public static class ListSnapshotsFixedSizeCollection
       extends AbstractFixedSizeCollection<
-          ListSnapshotsRequest,
-          ListSnapshotsResponse,
-          Snapshot,
-          ListSnapshotsPage,
+          ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage,
           ListSnapshotsFixedSizeCollection> {
 
     private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) {
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
similarity index 97%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
index a90bfd141..1493e2d78 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,6 +29,7 @@
 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;
@@ -71,9 +72,9 @@
  * 

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -82,6 +83,8 @@ *

For example, to set the total timeout of createSubscription to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
  *     SubscriptionAdminSettings.newBuilder();
  * subscriptionAdminSettingsBuilder
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
similarity index 85%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
index 1d3da0057..157f6262d 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -45,7 +45,6 @@
 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;
@@ -66,6 +65,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
  *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
  *   Topic response = topicAdminClient.createTopic(name);
@@ -79,13 +80,13 @@
  * methods:
  *
  * 
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -101,6 +102,8 @@ *

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings topicAdminSettings =
  *     TopicAdminSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -111,6 +114,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings topicAdminSettings =
  *     TopicAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
  * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings);
@@ -177,6 +182,8 @@ public PublisherStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   Topic response = topicAdminClient.createTopic(name);
@@ -203,6 +210,8 @@ public final Topic createTopic(TopicName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   Topic response = topicAdminClient.createTopic(name);
@@ -221,35 +230,6 @@ 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] @@ -258,6 +238,8 @@ public final Topic createTopic(ProjectTopicName name) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   Topic request =
    *       Topic.newBuilder()
@@ -288,6 +270,8 @@ public final Topic createTopic(Topic request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   Topic request =
    *       Topic.newBuilder()
@@ -316,6 +300,8 @@ public final UnaryCallable createTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   UpdateTopicRequest request =
    *       UpdateTopicRequest.newBuilder()
@@ -340,6 +326,8 @@ public final Topic updateTopic(UpdateTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   UpdateTopicRequest request =
    *       UpdateTopicRequest.newBuilder()
@@ -363,6 +351,8 @@ public final UnaryCallable updateTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   List messages = new ArrayList<>();
@@ -391,6 +381,8 @@ public final PublishResponse publish(TopicName topic, List messag
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   List messages = new ArrayList<>();
@@ -416,6 +408,8 @@ public final PublishResponse publish(String topic, List messages)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   PublishRequest request =
    *       PublishRequest.newBuilder()
@@ -440,6 +434,8 @@ public final PublishResponse publish(PublishRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   PublishRequest request =
    *       PublishRequest.newBuilder()
@@ -463,6 +459,8 @@ public final UnaryCallable publishCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   Topic response = topicAdminClient.getTopic(topic);
@@ -486,6 +484,8 @@ public final Topic getTopic(TopicName topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   Topic response = topicAdminClient.getTopic(topic);
@@ -501,31 +501,6 @@ 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. @@ -533,6 +508,8 @@ public final Topic getTopic(ProjectTopicName topic) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetTopicRequest request =
    *       GetTopicRequest.newBuilder()
@@ -556,6 +533,8 @@ public final Topic getTopic(GetTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetTopicRequest request =
    *       GetTopicRequest.newBuilder()
@@ -578,6 +557,8 @@ public final UnaryCallable getTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
    *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
@@ -605,6 +586,8 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String project = ProjectName.of("[PROJECT]").toString();
    *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
@@ -629,6 +612,8 @@ public final ListTopicsPagedResponse listTopics(String project) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -656,6 +641,8 @@ public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -682,6 +669,8 @@ public final UnaryCallable listTopic
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicsRequest request =
    *       ListTopicsRequest.newBuilder()
@@ -715,6 +704,8 @@ public final UnaryCallable listTopicsCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
@@ -742,6 +733,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicNam
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
@@ -760,35 +753,6 @@ 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. @@ -796,6 +760,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectT *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -824,6 +790,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -852,6 +820,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSubscriptionsRequest request =
    *       ListTopicSubscriptionsRequest.newBuilder()
@@ -890,6 +860,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
@@ -920,6 +892,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic)
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
@@ -948,6 +922,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(String topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -979,6 +955,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -1010,6 +988,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   ListTopicSnapshotsRequest request =
    *       ListTopicSnapshotsRequest.newBuilder()
@@ -1048,6 +1028,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   topicAdminClient.deleteTopic(topic);
@@ -1074,6 +1056,8 @@ public final void deleteTopic(TopicName topic) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   topicAdminClient.deleteTopic(topic);
@@ -1089,34 +1073,6 @@ 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 @@ -1127,6 +1083,8 @@ public final void deleteTopic(ProjectTopicName topic) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DeleteTopicRequest request =
    *       DeleteTopicRequest.newBuilder()
@@ -1153,6 +1111,8 @@ public final void deleteTopic(DeleteTopicRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DeleteTopicRequest request =
    *       DeleteTopicRequest.newBuilder()
@@ -1177,6 +1137,8 @@ public final UnaryCallable deleteTopicCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DetachSubscriptionRequest request =
    *       DetachSubscriptionRequest.newBuilder()
@@ -1202,6 +1164,8 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   DetachSubscriptionRequest request =
    *       DetachSubscriptionRequest.newBuilder()
@@ -1228,6 +1192,8 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1246,37 +1212,6 @@ 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. @@ -1286,6 +1221,8 @@ public final Policy setIamPolicy(String resource, Policy policy) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1311,6 +1248,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1328,31 +1267,6 @@ 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 @@ -1361,6 +1275,8 @@ public final Policy getIamPolicy(String resource) { *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1389,6 +1305,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1406,44 +1324,6 @@ 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, @@ -1456,6 +1336,8 @@ public final TestIamPermissionsResponse testIamPermissions( *

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1506,10 +1388,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted
 
   public static class ListTopicsPagedResponse
       extends AbstractPagedListResponse<
-          ListTopicsRequest,
-          ListTopicsResponse,
-          Topic,
-          ListTopicsPage,
+          ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage,
           ListTopicsFixedSizeCollection> {
 
     public static ApiFuture createAsync(
@@ -1556,10 +1435,7 @@ public ApiFuture createPageAsync(
 
   public static class ListTopicsFixedSizeCollection
       extends AbstractFixedSizeCollection<
-          ListTopicsRequest,
-          ListTopicsResponse,
-          Topic,
-          ListTopicsPage,
+          ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage,
           ListTopicsFixedSizeCollection> {
 
     private ListTopicsFixedSizeCollection(List pages, int collectionSize) {
@@ -1579,11 +1455,8 @@ protected ListTopicsFixedSizeCollection createCollection(
 
   public static class ListTopicSubscriptionsPagedResponse
       extends AbstractPagedListResponse<
-          ListTopicSubscriptionsRequest,
-          ListTopicSubscriptionsResponse,
-          String,
-          ListTopicSubscriptionsPage,
-          ListTopicSubscriptionsFixedSizeCollection> {
+          ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String,
+          ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> {
 
     public static ApiFuture createAsync(
         PageContext context,
@@ -1603,9 +1476,7 @@ private ListTopicSubscriptionsPagedResponse(ListTopicSubscriptionsPage page) {
 
   public static class ListTopicSubscriptionsPage
       extends AbstractPage<
-          ListTopicSubscriptionsRequest,
-          ListTopicSubscriptionsResponse,
-          String,
+          ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String,
           ListTopicSubscriptionsPage> {
 
     private ListTopicSubscriptionsPage(
@@ -1635,11 +1506,8 @@ public ApiFuture createPageAsync(
 
   public static class ListTopicSubscriptionsFixedSizeCollection
       extends AbstractFixedSizeCollection<
-          ListTopicSubscriptionsRequest,
-          ListTopicSubscriptionsResponse,
-          String,
-          ListTopicSubscriptionsPage,
-          ListTopicSubscriptionsFixedSizeCollection> {
+          ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String,
+          ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> {
 
     private ListTopicSubscriptionsFixedSizeCollection(
         List pages, int collectionSize) {
@@ -1659,10 +1527,7 @@ protected ListTopicSubscriptionsFixedSizeCollection createCollection(
 
   public static class ListTopicSnapshotsPagedResponse
       extends AbstractPagedListResponse<
-          ListTopicSnapshotsRequest,
-          ListTopicSnapshotsResponse,
-          String,
-          ListTopicSnapshotsPage,
+          ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage,
           ListTopicSnapshotsFixedSizeCollection> {
 
     public static ApiFuture createAsync(
@@ -1712,10 +1577,7 @@ public ApiFuture createPageAsync(
 
   public static class ListTopicSnapshotsFixedSizeCollection
       extends AbstractFixedSizeCollection<
-          ListTopicSnapshotsRequest,
-          ListTopicSnapshotsResponse,
-          String,
-          ListTopicSnapshotsPage,
+          ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage,
           ListTopicSnapshotsFixedSizeCollection> {
 
     private ListTopicSnapshotsFixedSizeCollection(
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
similarity index 95%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
index 41ebfd68d..519a75417 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,6 +30,7 @@
 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;
@@ -64,9 +65,9 @@
  * 

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -75,6 +76,8 @@ *

For example, to set the total timeout of createTopic to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder();
  * topicAdminSettingsBuilder
  *     .createTopicSettings()
@@ -119,8 +122,7 @@ public UnaryCallSettings getTopicSettings() {
 
   /** Returns the object with the settings used for calls to listTopicSubscriptions. */
   public PagedCallSettings<
-          ListTopicSubscriptionsRequest,
-          ListTopicSubscriptionsResponse,
+          ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse,
           ListTopicSubscriptionsPagedResponse>
       listTopicSubscriptionsSettings() {
     return ((PublisherStubSettings) getStubSettings()).listTopicSubscriptionsSettings();
@@ -284,8 +286,7 @@ public UnaryCallSettings.Builder getTopicSettings() {
 
     /** Returns the builder for the settings used for calls to listTopicSubscriptions. */
     public PagedCallSettings.Builder<
-            ListTopicSubscriptionsRequest,
-            ListTopicSubscriptionsResponse,
+            ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse,
             ListTopicSubscriptionsPagedResponse>
         listTopicSubscriptionsSettings() {
       return getStubSettingsBuilder().listTopicSubscriptionsSettings();
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json
similarity index 100%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
similarity index 85%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
index 128d54247..6e17761f9 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -27,6 +27,8 @@
  * 

Sample for TopicAdminClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
  *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
  *   Topic response = topicAdminClient.createTopic(name);
@@ -42,6 +44,8 @@
  * 

Sample for SubscriptionAdminClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
  *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
  *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
@@ -59,6 +63,8 @@
  * 

Sample for SchemaServiceClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
  *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   Schema schema = Schema.newBuilder().build();
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
index 35e7f539a..140ba0474 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
index 2b2e725c1..bc855e57e 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -51,6 +51,7 @@
 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/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
index b1e3e27cc..25bb84500 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
index e5cd65fb6..cfd83cf86 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -45,6 +45,7 @@
 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/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
index 97d867601..555d231b3 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
index 523c0376a..d29c04424 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -59,6 +59,7 @@
 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/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
index 9b90ca986..c26fe479c 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
similarity index 97%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
index 166775ec3..3ac382c73 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -88,9 +88,9 @@
  * 

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -99,6 +99,8 @@ *

For example, to set the total timeout of createTopic to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
  * topicAdminSettingsBuilder
  *     .createTopicSettings()
@@ -128,8 +130,7 @@ public class PublisherStubSettings extends StubSettings {
   private final PagedCallSettings
       listTopicsSettings;
   private final PagedCallSettings<
-          ListTopicSubscriptionsRequest,
-          ListTopicSubscriptionsResponse,
+          ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse,
           ListTopicSubscriptionsPagedResponse>
       listTopicSubscriptionsSettings;
   private final PagedCallSettings<
@@ -278,13 +279,11 @@ public ApiFuture getFuturePagedResponse(
           };
 
   private static final PagedListResponseFactory<
-          ListTopicSubscriptionsRequest,
-          ListTopicSubscriptionsResponse,
+          ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse,
           ListTopicSubscriptionsPagedResponse>
       LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_FACT =
           new PagedListResponseFactory<
-              ListTopicSubscriptionsRequest,
-              ListTopicSubscriptionsResponse,
+              ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse,
               ListTopicSubscriptionsPagedResponse>() {
             @Override
             public ApiFuture getFuturePagedResponse(
@@ -305,8 +304,7 @@ public ApiFuture getFuturePagedResponse(
           ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse>
       LIST_TOPIC_SNAPSHOTS_PAGE_STR_FACT =
           new PagedListResponseFactory<
-              ListTopicSnapshotsRequest,
-              ListTopicSnapshotsResponse,
+              ListTopicSnapshotsRequest, ListTopicSnapshotsResponse,
               ListTopicSnapshotsPagedResponse>() {
             @Override
             public ApiFuture getFuturePagedResponse(
@@ -415,8 +413,7 @@ public UnaryCallSettings getTopicSettings() {
 
   /** Returns the object with the settings used for calls to listTopicSubscriptions. */
   public PagedCallSettings<
-          ListTopicSubscriptionsRequest,
-          ListTopicSubscriptionsResponse,
+          ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse,
           ListTopicSubscriptionsPagedResponse>
       listTopicSubscriptionsSettings() {
     return listTopicSubscriptionsSettings;
@@ -556,8 +553,7 @@ public static class Builder extends StubSettings.Builder
         listTopicsSettings;
     private final PagedCallSettings.Builder<
-            ListTopicSubscriptionsRequest,
-            ListTopicSubscriptionsResponse,
+            ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse,
             ListTopicSubscriptionsPagedResponse>
         listTopicSubscriptionsSettings;
     private final PagedCallSettings.Builder<
@@ -844,8 +840,7 @@ public UnaryCallSettings.Builder getTopicSettings() {
 
     /** Returns the builder for the settings used for calls to listTopicSubscriptions. */
     public PagedCallSettings.Builder<
-            ListTopicSubscriptionsRequest,
-            ListTopicSubscriptionsResponse,
+            ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse,
             ListTopicSubscriptionsPagedResponse>
         listTopicSubscriptionsSettings() {
       return listTopicSubscriptionsSettings;
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java
index b194653b3..47aac9109 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
similarity index 98%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
index fb8a87653..89628daf1 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -71,9 +71,9 @@
  * 

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -82,6 +82,8 @@ *

For example, to set the total timeout of createSchema to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
  *     SchemaServiceStubSettings.newBuilder();
  * schemaServiceSettingsBuilder
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java
index 7233e2008..8eeab5261 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
similarity index 98%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
index 32733fbf9..b62bec2c4 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -86,9 +86,9 @@
  * 

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -97,6 +97,8 @@ *

For example, to set the total timeout of createSubscription to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
  *     SubscriberStubSettings.newBuilder();
  * subscriptionAdminSettingsBuilder
@@ -227,8 +229,7 @@ public Iterable extractResources(ListSnapshotsResponse payload) {
           ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse>
       LIST_SUBSCRIPTIONS_PAGE_STR_FACT =
           new PagedListResponseFactory<
-              ListSubscriptionsRequest,
-              ListSubscriptionsResponse,
+              ListSubscriptionsRequest, ListSubscriptionsResponse,
               ListSubscriptionsPagedResponse>() {
             @Override
             public ApiFuture getFuturePagedResponse(
@@ -402,7 +403,8 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
 
   /** Returns a builder for the default ChannelProvider for this service. */
   public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
-    return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20);
+    return InstantiatingGrpcChannelProvider.newBuilder()
+        .setMaxInboundMessageSize(Integer.MAX_VALUE);
   }
 
   public static TransportChannelProvider defaultTransportChannelProvider() {
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java
similarity index 98%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java
index e7583f2d9..85c3e07a0 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java
similarity index 99%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java
index e4528ae53..089b0b380 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java
similarity index 98%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java
index 78513630a..31d2b2b09 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java
similarity index 99%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java
index 920917858..53f88cfe6 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java
similarity index 98%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java
index a7fc32c58..4ebffafed 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java
similarity index 99%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java
index 5b908db48..6124aab4d 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java
similarity index 98%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java
index 8d3f29fe0..2615733f7 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java
similarity index 99%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java
index a181138d9..9747d2ca0 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java
similarity index 99%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java
index 864f9f013..92673b9d9 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
similarity index 99%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
index dbb87a03e..d3402991a 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
similarity index 99%
rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
index a3c4e4245..0d50563fe 100644
--- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java
similarity index 50%
rename from grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java
rename to owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java
index 638e841d7..340a9acc6 100644
--- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java
+++ b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java
@@ -1,25 +1,8 @@
-/*
- * Copyright 2020 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.
@@ -36,518 +19,401 @@ private PublisherGrpc() {}
   public static final String SERVICE_NAME = "google.pubsub.v1.Publisher";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic>
-      getCreateTopicMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
-      getUpdateTopicMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
-      getUpdateTopicMethod() {
-    io.grpc.MethodDescriptor
-        getUpdateTopicMethod;
+  public static io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
-      getPublishMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getPublishMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
-      getGetTopicMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
-      getGetTopicMethod() {
-    io.grpc.MethodDescriptor
-        getGetTopicMethod;
+  public static io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
-      getListTopicsMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getListTopicsMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
-          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
-      getListTopicSubscriptionsMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ListTopicSnapshotsRequest,
-          com.google.pubsub.v1.ListTopicSnapshotsResponse>
-      getListTopicSnapshotsMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getListTopicSnapshotsMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
-      getDeleteTopicMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
-      getDeleteTopicMethod() {
-    io.grpc.MethodDescriptor
-        getDeleteTopicMethod;
+  public static io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.DetachSubscriptionRequest,
-          com.google.pubsub.v1.DetachSubscriptionResponse>
-      getDetachSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getDetachSubscriptionMethod() {
+    io.grpc.MethodDescriptor 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.
    * 
*/ - public abstract static class PublisherImplBase implements io.grpc.BindableService { + public static abstract class PublisherImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); } /** - * - * *
      * Updates an existing topic. 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.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.
      * 
*/ - 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.ServerCalls.asyncUnimplementedUnaryCall(getPublishMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTopicSubscriptionsMethod(), responseObserver); + public 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,
@@ -556,17 +422,12 @@ public void listTopicSubscriptions(
      * state captured by a snapshot.
      * 
*/ - public void listTopicSnapshots( - com.google.pubsub.v1.ListTopicSnapshotsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTopicSnapshotsMethod(), responseObserver); + public 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
@@ -575,16 +436,12 @@ public void listTopicSnapshots(
      * 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.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
@@ -592,192 +449,168 @@ public void deleteTopic(
      * subscription, pushes to the endpoint will stop.
      * 
*/ - public void detachSubscription( - com.google.pubsub.v1.DetachSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetachSubscriptionMethod(), responseObserver); + public void detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachSubscriptionMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - this, METHODID_CREATE_TOPIC))) + getCreateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic>( + this, METHODID_CREATE_TOPIC))) .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>( - this, METHODID_UPDATE_TOPIC))) + getUpdateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateTopicRequest, + com.google.pubsub.v1.Topic>( + this, METHODID_UPDATE_TOPIC))) .addMethod( - getPublishMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>( - this, METHODID_PUBLISH))) + getPublishMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PublishRequest, + com.google.pubsub.v1.PublishResponse>( + this, METHODID_PUBLISH))) .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>( - this, METHODID_GET_TOPIC))) + getGetTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetTopicRequest, + com.google.pubsub.v1.Topic>( + this, METHODID_GET_TOPIC))) .addMethod( - getListTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicsRequest, - com.google.pubsub.v1.ListTopicsResponse>(this, METHODID_LIST_TOPICS))) + getListTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicsRequest, + com.google.pubsub.v1.ListTopicsResponse>( + this, METHODID_LIST_TOPICS))) .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSubscriptionsRequest, - com.google.pubsub.v1.ListTopicSubscriptionsResponse>( - this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) + getListTopicSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSubscriptionsRequest, + com.google.pubsub.v1.ListTopicSubscriptionsResponse>( + this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) .addMethod( - getListTopicSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSnapshotsRequest, - com.google.pubsub.v1.ListTopicSnapshotsResponse>( - this, METHODID_LIST_TOPIC_SNAPSHOTS))) + getListTopicSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSnapshotsRequest, + com.google.pubsub.v1.ListTopicSnapshotsResponse>( + this, METHODID_LIST_TOPIC_SNAPSHOTS))) .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_TOPIC))) + getDeleteTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteTopicRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_TOPIC))) .addMethod( - getDetachSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DetachSubscriptionRequest, - com.google.pubsub.v1.DetachSubscriptionResponse>( - this, METHODID_DETACH_SUBSCRIPTION))) + getDetachSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DetachSubscriptionRequest, + com.google.pubsub.v1.DetachSubscriptionResponse>( + this, METHODID_DETACH_SUBSCRIPTION))) .build(); } } /** - * - * *
    * 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) { + 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/admin#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. 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,
@@ -786,19 +619,13 @@ public void listTopicSubscriptions(
      * 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
@@ -807,18 +634,13 @@ public void listTopicSnapshots(
      * 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
@@ -826,28 +648,22 @@ public void deleteTopic(
      * 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); } } /** - * - * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public static final class PublisherBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private PublisherBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -858,8 +674,6 @@ protected PublisherBlockingStub build( } /** - * - * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -871,8 +685,6 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request
     }
 
     /**
-     *
-     *
      * 
      * Updates an existing topic. Note that certain properties of a
      * topic are not modifiable.
@@ -884,22 +696,17 @@ 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.
      * 
@@ -910,34 +717,26 @@ 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,
@@ -946,15 +745,12 @@ 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
@@ -969,8 +765,6 @@ 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
@@ -978,77 +772,67 @@ 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); } } /** - * - * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public static final class PublisherFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PublisherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherFutureStub extends io.grpc.stub.AbstractFutureStub { + 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/admin#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. 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.
      * 
@@ -1060,36 +844,28 @@ public com.google.common.util.concurrent.ListenableFuture * Lists matching topics. *
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ListTopicsResponse> - listTopics(com.google.pubsub.v1.ListTopicsRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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< - com.google.pubsub.v1.ListTopicSubscriptionsResponse> - listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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,
@@ -1098,16 +874,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture<
-            com.google.pubsub.v1.ListTopicSnapshotsResponse>
-        listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture 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
@@ -1116,15 +889,13 @@ 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
@@ -1132,9 +903,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture<
-            com.google.pubsub.v1.DetachSubscriptionResponse>
-        detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture detachSubscription(
+        com.google.pubsub.v1.DetachSubscriptionRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), request);
     }
@@ -1150,11 +920,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 PublisherImplBase serviceImpl;
     private final int methodId;
 
@@ -1168,53 +938,40 @@ private static final class MethodHandlers
     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();
@@ -1232,9 +989,8 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private abstract static class PublisherBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
-          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private static abstract class PublisherBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     PublisherBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -1276,20 +1032,18 @@ 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/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
new file mode 100644
index 000000000..e6514bb44
--- /dev/null
+++ b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
@@ -0,0 +1,733 @@
+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 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 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 static abstract class SchemaServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a schema.
+     * 
+ */ + public void createSchema(com.google.pubsub.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); + } + + /** + *
+     * Gets a schema.
+     * 
+ */ + public 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.
+     * 
+ */ + public void listSchemas(com.google.pubsub.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); + } + + /** + *
+     * Deletes a schema.
+     * 
+ */ + public void deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); + } + + /** + *
+     * Validates a schema.
+     * 
+ */ + public 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.
+     * 
+ */ + public void validateMessage(com.google.pubsub.v1.ValidateMessageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateMessageMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_CREATE_SCHEMA))) + .addMethod( + getGetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSchemaRequest, + com.google.pubsub.v1.Schema>( + this, METHODID_GET_SCHEMA))) + .addMethod( + getListSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSchemasRequest, + com.google.pubsub.v1.ListSchemasResponse>( + this, METHODID_LIST_SCHEMAS))) + .addMethod( + getDeleteSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSchemaRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SCHEMA))) + .addMethod( + getValidateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateSchemaRequest, + com.google.pubsub.v1.ValidateSchemaResponse>( + this, METHODID_VALIDATE_SCHEMA))) + .addMethod( + getValidateMessageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateMessageRequest, + com.google.pubsub.v1.ValidateMessageResponse>( + this, METHODID_VALIDATE_MESSAGE))) + .build(); + } + } + + /** + *
+   * 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); + } + + /** + *
+     * 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); + } + } + + /** + *
+   * 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); + } + + /** + *
+     * 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); + } + } + + /** + *
+   * 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); + } + + /** + *
+     * 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_DELETE_SCHEMA = 3; + private static final int METHODID_VALIDATE_SCHEMA = 4; + private static final int METHODID_VALIDATE_MESSAGE = 5; + + 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 SchemaServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SchemaServiceImplBase 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_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(); + } + } + } + + 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 String methodName; + + SchemaServiceMethodDescriptorSupplier(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(getDeleteSchemaMethod()) + .addMethod(getValidateSchemaMethod()) + .addMethod(getValidateMessageMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java similarity index 57% rename from grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index de5a11c89..08d62c379 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 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
@@ -37,709 +20,556 @@ private SubscriberGrpc() {}
   public static final String SERVICE_NAME = "google.pubsub.v1.Subscriber";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
-      getCreateSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
-      getCreateSubscriptionMethod() {
-    io.grpc.MethodDescriptor
-        getCreateSubscriptionMethod;
+  public static io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
-      getGetSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getGetSubscriptionMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
-      getUpdateSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getUpdateSubscriptionMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ListSubscriptionsRequest,
-          com.google.pubsub.v1.ListSubscriptionsResponse>
-      getListSubscriptionsMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getListSubscriptionsMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
-      getDeleteSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
-      getDeleteSubscriptionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
-        getDeleteSubscriptionMethod;
+  public static io.grpc.MethodDescriptor getDeleteSubscriptionMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
-      getModifyAckDeadlineMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
-      getModifyAckDeadlineMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
-        getModifyAckDeadlineMethod;
+  public static io.grpc.MethodDescriptor getModifyAckDeadlineMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
-      getAcknowledgeMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
-      getAcknowledgeMethod() {
-    io.grpc.MethodDescriptor
-        getAcknowledgeMethod;
+  public static io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
-      getPullMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
-      getPullMethod() {
-    io.grpc.MethodDescriptor
-        getPullMethod;
+  public static io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
-      getStreamingPullMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getStreamingPullMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
-      getModifyPushConfigMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
-      getModifyPushConfigMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
-        getModifyPushConfigMethod;
+  public static io.grpc.MethodDescriptor getModifyPushConfigMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getGetSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getGetSnapshotMethod() {
-    io.grpc.MethodDescriptor
-        getGetSnapshotMethod;
+  public static io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
-      getListSnapshotsMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getListSnapshotsMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getCreateSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getCreateSnapshotMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getUpdateSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          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;
+  public static io.grpc.MethodDescriptor getUpdateSnapshotMethod() {
+    io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
-      getDeleteSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
-      getDeleteSnapshotMethod() {
-    io.grpc.MethodDescriptor
-        getDeleteSnapshotMethod;
+  public static io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
-      getSeekMethod;
+  private static volatile io.grpc.MethodDescriptor 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<
-          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
-      getSeekMethod() {
-    io.grpc.MethodDescriptor
-        getSeekMethod;
+  public static io.grpc.MethodDescriptor 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
    * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ - public abstract static class SubscriberImplBase implements io.grpc.BindableService { + public static abstract class SubscriberImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -753,60 +583,43 @@ public abstract static class SubscriberImplBase implements io.grpc.BindableServi
      * 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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( - getGetSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); } /** - * - * *
      * Updates an existing subscription. 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.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); } /** - * - * *
      * Lists matching subscriptions.
      * 
*/ - public void listSubscriptions( - com.google.pubsub.v1.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSubscriptionsMethod(), responseObserver); + public 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
@@ -815,16 +628,12 @@ public void listSubscriptions(
      * 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.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
@@ -833,16 +642,12 @@ public void deleteSubscription(
      * 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.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
@@ -852,31 +657,24 @@ public void modifyAckDeadline(
      * 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.ServerCalls.asyncUnimplementedUnaryCall( - getAcknowledgeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAcknowledgeMethod(), responseObserver); } /** - * - * *
      * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - 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.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
@@ -889,13 +687,10 @@ public void pull(
      */
     public 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
@@ -904,16 +699,12 @@ 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.ServerCalls.asyncUnimplementedUnaryCall( - getModifyPushConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getModifyPushConfigMethod(), responseObserver); } /** - * - * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -922,16 +713,12 @@ public void modifyPushConfig(
      * subscription to the 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.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
@@ -940,16 +727,12 @@ public void getSnapshot(
      * 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.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,
@@ -969,16 +752,12 @@ public void listSnapshots(
      * 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.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); } /** - * - * *
      * Updates an existing snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -988,16 +767,12 @@ public void createSnapshot(
      * 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.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
@@ -1010,16 +785,12 @@ public void updateSnapshot(
      * 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.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]
@@ -1030,119 +801,130 @@ public void deleteSnapshot(
      * 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.ServerCalls.asyncUnimplementedUnaryCall(getSeekMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { 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>( - this, METHODID_CREATE_SUBSCRIPTION))) + getCreateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription>( + this, METHODID_CREATE_SUBSCRIPTION))) .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSubscriptionRequest, - com.google.pubsub.v1.Subscription>(this, METHODID_GET_SUBSCRIPTION))) + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSubscriptionRequest, + com.google.pubsub.v1.Subscription>( + this, METHODID_GET_SUBSCRIPTION))) .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSubscriptionRequest, - com.google.pubsub.v1.Subscription>(this, METHODID_UPDATE_SUBSCRIPTION))) + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSubscriptionRequest, + com.google.pubsub.v1.Subscription>( + this, METHODID_UPDATE_SUBSCRIPTION))) .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSubscriptionsRequest, - com.google.pubsub.v1.ListSubscriptionsResponse>( - this, METHODID_LIST_SUBSCRIPTIONS))) + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSubscriptionsRequest, + com.google.pubsub.v1.ListSubscriptionsResponse>( + this, METHODID_LIST_SUBSCRIPTIONS))) .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SUBSCRIPTION))) + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSubscriptionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SUBSCRIPTION))) .addMethod( - getModifyAckDeadlineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>( - this, METHODID_MODIFY_ACK_DEADLINE))) + getModifyAckDeadlineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyAckDeadlineRequest, + com.google.protobuf.Empty>( + this, METHODID_MODIFY_ACK_DEADLINE))) .addMethod( - getAcknowledgeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>( - this, METHODID_ACKNOWLEDGE))) + getAcknowledgeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.AcknowledgeRequest, + com.google.protobuf.Empty>( + this, METHODID_ACKNOWLEDGE))) .addMethod( - getPullMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>( - this, METHODID_PULL))) + getPullMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PullRequest, + com.google.pubsub.v1.PullResponse>( + this, METHODID_PULL))) .addMethod( - getStreamingPullMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.pubsub.v1.StreamingPullRequest, - com.google.pubsub.v1.StreamingPullResponse>(this, METHODID_STREAMING_PULL))) + getStreamingPullMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.pubsub.v1.StreamingPullRequest, + com.google.pubsub.v1.StreamingPullResponse>( + this, METHODID_STREAMING_PULL))) .addMethod( - getModifyPushConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( - this, METHODID_MODIFY_PUSH_CONFIG))) + getModifyPushConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyPushConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_MODIFY_PUSH_CONFIG))) .addMethod( - getGetSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_GET_SNAPSHOT))) + getGetSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_GET_SNAPSHOT))) .addMethod( - getListSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSnapshotsRequest, - com.google.pubsub.v1.ListSnapshotsResponse>(this, METHODID_LIST_SNAPSHOTS))) + getListSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSnapshotsRequest, + com.google.pubsub.v1.ListSnapshotsResponse>( + this, METHODID_LIST_SNAPSHOTS))) .addMethod( - getCreateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_CREATE_SNAPSHOT))) + getCreateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_CREATE_SNAPSHOT))) .addMethod( - getUpdateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_UPDATE_SNAPSHOT))) + getUpdateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_UPDATE_SNAPSHOT))) .addMethod( - getDeleteSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SNAPSHOT))) + getDeleteSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSnapshotRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SNAPSHOT))) .addMethod( - getSeekMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>( - this, METHODID_SEEK))) + getSeekMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.SeekRequest, + com.google.pubsub.v1.SeekResponse>( + this, METHODID_SEEK))) .build(); } } /** - * - * *
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
@@ -1150,18 +932,18 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * 
*/ public static final class SubscriberStub extends io.grpc.stub.AbstractAsyncStub { - private SubscriberStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + 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/admin#resource_names).
@@ -1175,68 +957,47 @@ protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions call
      * 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. 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
@@ -1245,18 +1006,13 @@ public void listSubscriptions(
      * 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
@@ -1265,18 +1021,13 @@ public void deleteSubscription(
      * 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
@@ -1286,34 +1037,26 @@ public void modifyAckDeadline(
      * 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. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - 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
@@ -1331,8 +1074,6 @@ 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
@@ -1341,18 +1082,13 @@ 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
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1361,18 +1097,13 @@ public void modifyPushConfig(
      * subscription to the 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
@@ -1381,18 +1112,13 @@ public void getSnapshot(
      * 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,
@@ -1412,18 +1138,13 @@ public void listSnapshots(
      * 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. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1433,18 +1154,13 @@ public void createSnapshot(
      * 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
@@ -1457,18 +1173,13 @@ public void updateSnapshot(
      * 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]
@@ -1479,8 +1190,7 @@ public void deleteSnapshot(
      * 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); @@ -1488,17 +1198,15 @@ public void seek( } /** - * - * *
    * 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 SubscriberBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SubscriberBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SubscriberBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1509,8 +1217,6 @@ protected SubscriberBlockingStub build( } /** - * - * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -1524,55 +1230,43 @@ protected SubscriberBlockingStub build(
      * 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. 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
@@ -1581,15 +1275,12 @@ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(
      * 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
@@ -1598,15 +1289,12 @@ public com.google.protobuf.Empty deleteSubscription(
      * 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
@@ -1622,8 +1310,6 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq
     }
 
     /**
-     *
-     *
      * 
      * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
@@ -1636,8 +1322,6 @@ 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
@@ -1646,15 +1330,12 @@ 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
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1663,15 +1344,12 @@ public com.google.protobuf.Empty modifyPushConfig(
      * subscription to the 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
@@ -1680,15 +1358,12 @@ public com.google.pubsub.v1.Snapshot getSnapshot(
      * 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,
@@ -1708,15 +1383,12 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(
      * 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. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1726,15 +1398,12 @@ public com.google.pubsub.v1.Snapshot createSnapshot(
      * 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
@@ -1747,15 +1416,12 @@ public com.google.pubsub.v1.Snapshot updateSnapshot(
      * 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]
@@ -1773,28 +1439,25 @@ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest r
   }
 
   /**
-   *
-   *
    * 
    * 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 SubscriberFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SubscriberFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberFutureStub extends io.grpc.stub.AbstractFutureStub { + 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/admin#resource_names).
@@ -1808,56 +1471,47 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * 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. 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< - com.google.pubsub.v1.ListSubscriptionsResponse> - listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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
@@ -1866,15 +1520,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * subscription or its topic unless the same topic is specified.
      * 
*/ - 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
@@ -1883,15 +1535,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * subscription-level `ackDeadlineSeconds` used for subsequent messages.
      * 
*/ - 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
@@ -1901,30 +1551,26 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * than once will not result in an error.
      * 
*/ - 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. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - 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
@@ -1933,15 +1579,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * continuously through the call regardless of changes to the `PushConfig`.
      * 
*/ - 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
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1950,15 +1594,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * subscription to the state captured by a snapshot.
      * 
*/ - 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
@@ -1967,16 +1609,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * state captured by a snapshot.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ListSnapshotsResponse> - listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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,
@@ -1996,15 +1635,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * REST API requests, you must specify a name in the request.
      * 
*/ - 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. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -2014,15 +1651,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * captured by a snapshot.
      * 
*/ - 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
@@ -2035,15 +1670,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * snapshot or its subscription, unless the same subscription is specified.
      * 
*/ - 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]
@@ -2054,8 +1687,8 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * snapshot must be on the same topic.
      * 
*/ - 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); } @@ -2078,11 +1711,11 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_SEEK = 14; private static final int METHODID_STREAMING_PULL = 15; - 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 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 SubscriberImplBase serviceImpl; private final int methodId; @@ -2096,80 +1729,63 @@ private static final class MethodHandlers 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: @@ -2183,19 +1799,16 @@ 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(); } } } - private abstract static class SubscriberBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SubscriberBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SubscriberBaseDescriptorSupplier() {} @java.lang.Override @@ -2237,27 +1850,25 @@ 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java similarity index 71% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 38f0841ad..349a946e7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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.EMPTY; @@ -44,15 +26,16 @@ private AcknowledgeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AcknowledgeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AcknowledgeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private AcknowledgeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ackIds_.add(s); - break; + subscription_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ackIds_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private AcknowledgeRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); @@ -112,36 +94,28 @@ private AcknowledgeRequest( makeExtensionsImmutable(); } } - - 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; 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 @@ -150,32 +124,30 @@ 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 { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int ACK_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList 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
@@ -195,15 +165,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * 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
@@ -211,15 +179,12 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
    * 
* * 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
@@ -227,7 +192,6 @@ 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. */ @@ -235,8 +199,6 @@ 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
@@ -244,16 +206,15 @@ 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; @@ -265,7 +226,8 @@ 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_); } @@ -300,15 +262,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,127 +295,118 @@ 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() @@ -459,15 +414,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +435,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_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 @@ -500,8 +456,7 @@ 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); + com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); int from_bitField0_ = bitField0_; result.subscription_ = subscription_; if (((bitField0_ & 0x00000001) != 0)) { @@ -517,39 +472,38 @@ public com.google.pubsub.v1.AcknowledgeRequest 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.AcknowledgeRequest) { - return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest) other); + return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); } else { super.mergeFrom(other); return this; @@ -600,28 +554,23 @@ public Builder mergeFrom( } 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; @@ -630,24 +579,21 @@ 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 { @@ -655,87 +601,70 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -743,15 +672,13 @@ 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() { return ackIds_.getUnmodifiableView(); } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -759,15 +686,12 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
      * 
* * 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
@@ -775,7 +699,6 @@ 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. */ @@ -783,8 +706,6 @@ 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
@@ -792,16 +713,14 @@ 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
@@ -809,23 +728,21 @@ public com.google.protobuf.ByteString getAckIdsBytes(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) { + public Builder setAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); 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
@@ -833,22 +750,20 @@ public Builder setAckIds(int index, java.lang.String value) {
      * 
* * 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) { + public Builder addAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); 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
@@ -856,19 +771,18 @@ public Builder addAckIds(java.lang.String value) {
      * 
* * 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_); 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
@@ -876,7 +790,6 @@ public Builder addAllAckIds(java.lang.Iterable values) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -886,8 +799,6 @@ public Builder clearAckIds() { 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
@@ -895,23 +806,23 @@ 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) { + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(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); } @@ -921,12 +832,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(); } @@ -935,16 +846,16 @@ 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 { - return new AcknowledgeRequest(input, extensionRegistry); - } - }; + 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 { + return new AcknowledgeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -959,4 +870,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 4951b0bb1..3f461f31d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 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 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
@@ -64,13 +37,11 @@ public interface AcknowledgeRequestOrBuilder
    * 
* * 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
@@ -78,13 +49,10 @@ public interface AcknowledgeRequestOrBuilder
    * 
* * 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
@@ -92,14 +60,11 @@ public interface AcknowledgeRequestOrBuilder
    * 
* * 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
@@ -107,9 +72,9 @@ public interface AcknowledgeRequestOrBuilder
    * 
* * 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 9f2348931..6bdeff4f2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private CreateSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSchemaRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,41 +54,38 @@ private CreateSchemaRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schema_ != null) { + subBuilder = schema_.toBuilder(); } - case 18: - { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); - } - schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); - } - - break; + schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schema_); + schema_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - schemaId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + schemaId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,42 +93,35 @@ private CreateSchemaRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } public static final int PARENT_FIELD_NUMBER = 1; 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 @@ -157,32 +130,30 @@ 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 { @@ -193,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -203,7 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the schema field is set. */ @java.lang.Override @@ -211,8 +179,6 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -221,7 +187,6 @@ public boolean hasSchema() {
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ @java.lang.Override @@ -229,8 +194,6 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -248,8 +211,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
   public static final int SCHEMA_ID_FIELD_NUMBER = 3;
   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.
@@ -258,7 +219,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
    * 
* * string schema_id = 3; - * * @return The schemaId. */ @java.lang.Override @@ -267,15 +227,14 @@ 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.
@@ -284,15 +243,16 @@ 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 { @@ -301,7 +261,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +272,8 @@ 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,7 +296,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schema_ != null) { - 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_); @@ -349,19 +310,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -386,127 +350,118 @@ 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() @@ -514,15 +469,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +496,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 @@ -561,8 +517,7 @@ 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); + com.google.pubsub.v1.CreateSchemaRequest result = new com.google.pubsub.v1.CreateSchemaRequest(this); result.parent_ = parent_; if (schemaBuilder_ == null) { result.schema_ = schema_; @@ -578,39 +533,38 @@ public com.google.pubsub.v1.CreateSchemaRequest 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.CreateSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest) other); + return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -661,23 +615,19 @@ public Builder mergeFrom( 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; @@ -686,24 +636,21 @@ 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 { @@ -711,70 +658,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -782,13 +716,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -797,15 +726,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the schema field is set. */ public boolean hasSchema() { return schemaBuilder_ != null || schema_ != null; } /** - * - * *
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -814,7 +740,6 @@ public boolean hasSchema() {
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ public com.google.pubsub.v1.Schema getSchema() { @@ -825,8 +750,6 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** - * - * *
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -850,8 +773,6 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -861,7 +782,8 @@ 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();
         onChanged();
@@ -872,8 +794,6 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -886,7 +806,8 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
     public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
       if (schemaBuilder_ == null) {
         if (schema_ != null) {
-          schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial();
+          schema_ =
+            com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial();
         } else {
           schema_ = value;
         }
@@ -898,8 +819,6 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -921,8 +840,6 @@ public Builder clearSchema() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -933,13 +850,11 @@ public Builder clearSchema() {
      * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() {
-
+      
       onChanged();
       return getSchemaFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -953,12 +868,11 @@ 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.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -969,17 +883,14 @@ 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_;
@@ -987,8 +898,6 @@ 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.
@@ -997,13 +906,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; @@ -1012,8 +921,6 @@ public java.lang.String getSchemaId() { } } /** - * - * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -1022,14 +929,15 @@ 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 { @@ -1037,8 +945,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } } /** - * - * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -1047,22 +953,20 @@ public com.google.protobuf.ByteString getSchemaIdBytes() {
      * 
* * string schema_id = 3; - * * @param value The schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaId(java.lang.String value) { + public Builder setSchemaId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schemaId_ = value; onChanged(); return this; } /** - * - * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -1071,18 +975,15 @@ public Builder setSchemaId(java.lang.String value) {
      * 
* * string schema_id = 3; - * * @return This builder for chaining. */ public Builder clearSchemaId() { - + schemaId_ = getDefaultInstance().getSchemaId(); onChanged(); return this; } /** - * - * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -1091,23 +992,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) { + public Builder setSchemaIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaId_ = 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); } @@ -1117,12 +1018,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(); } @@ -1131,16 +1032,16 @@ 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 { - return new CreateSchemaRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1155,4 +1056,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.CreateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 395a549cf..329e106b9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 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 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.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -65,13 +38,10 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * .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.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -80,13 +50,10 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * .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.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -99,8 +66,6 @@ public interface CreateSchemaRequestOrBuilder
   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.
@@ -109,13 +74,10 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * 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.
@@ -124,8 +86,8 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ - com.google.protobuf.ByteString getSchemaIdBytes(); + com.google.protobuf.ByteString + getSchemaIdBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 6140d5e45..adebdf417 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private CreateSnapshotRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,40 +55,38 @@ private CreateSnapshotRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + subscription_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,44 +94,41 @@ private CreateSnapshotRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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; 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
@@ -160,10 +138,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * name rules</a>. 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 @@ -172,15 +147,14 @@ 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
@@ -190,18 +164,17 @@ public java.lang.String getName() {
    * name rules</a>. 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 { @@ -212,8 +185,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBSCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -226,10 +197,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 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 @@ -238,15 +206,14 @@ 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:
@@ -259,18 +226,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. */ @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 { @@ -279,23 +245,24 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } public static final int LABELS_FIELD_NUMBER = 3; - private static final class LabelsDefaultEntryHolder { - 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, - ""); + 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, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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_; } @@ -304,8 +271,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -313,22 +278,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 3;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -337,12 +302,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -351,16 +315,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      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;
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -369,11 +333,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 3;
    */
   @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();
     }
@@ -381,7 +346,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -393,15 +357,20 @@ 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);
     unknownFields.writeTo(output);
   }
 
@@ -417,15 +386,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -435,17 +404,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.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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -470,147 +441,140 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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() @@ -618,15 +582,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -639,9 +604,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 @@ -660,8 +625,7 @@ 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); + com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.subscription_ = subscription_; @@ -675,39 +639,38 @@ public com.google.pubsub.v1.CreateSnapshotRequest 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.CreateSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest) other); + return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -724,7 +687,8 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { subscription_ = other.subscription_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -753,13 +717,10 @@ public Builder mergeFrom( } 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
@@ -769,16 +730,14 @@ public Builder mergeFrom(
      * name rules</a>. 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; @@ -787,8 +746,6 @@ 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
@@ -798,17 +755,16 @@ public java.lang.String getName() {
      * name rules</a>. 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 { @@ -816,8 +772,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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
@@ -827,25 +781,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * name rules</a>. 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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
@@ -855,21 +805,16 @@ public Builder setName(java.lang.String value) {
      * name rules</a>. 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() { - + name_ = getDefaultInstance().getName(); 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
@@ -879,19 +824,17 @@ public Builder clearName() {
      * name rules</a>. 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -899,8 +842,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -913,16 +854,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 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; @@ -931,8 +870,6 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -945,17 +882,16 @@ 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 { @@ -963,8 +899,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -977,25 +911,21 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -1008,21 +938,16 @@ public Builder setSubscription(java.lang.String value) {
      * 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() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -1035,39 +960,38 @@ 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) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -1079,8 +1003,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1088,22 +1010,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 3;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1112,12 +1034,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1126,17 +1047,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        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;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1145,11 +1065,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 3;
      */
     @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();
       }
@@ -1157,12 +1078,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1170,21 +1090,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 3;
      */
-    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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1192,20 +1114,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 3;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    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");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1213,13 +1134,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 3;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       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);
     }
 
@@ -1229,12 +1153,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();
   }
@@ -1243,16 +1167,16 @@ 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 {
-          return new CreateSnapshotRequest(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new CreateSnapshotRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1267,4 +1191,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
similarity index 68%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
index 647f8506e..208a01e30 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
 
 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
@@ -35,16 +17,11 @@ public interface CreateSnapshotRequestOrBuilder
    * name rules</a>. 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
@@ -54,17 +31,13 @@ public interface CreateSnapshotRequestOrBuilder
    * name rules</a>. 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:
@@ -77,16 +50,11 @@ public interface CreateSnapshotRequestOrBuilder
    * 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:
@@ -99,17 +67,13 @@ public interface CreateSnapshotRequestOrBuilder
    * 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(); /** - * - * *
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -119,8 +83,6 @@ public interface CreateSnapshotRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -128,13 +90,15 @@ public interface CreateSnapshotRequestOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  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();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -142,10 +106,9 @@ public interface CreateSnapshotRequestOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -155,13 +118,11 @@ public interface CreateSnapshotRequestOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -169,5 +130,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
similarity index 77%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
index 018a74139..e6cd796e0 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * Dead lettering is done on a best effort basis. The same message might be
  * dead lettered multiple times.
@@ -30,31 +13,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeadLetterPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,25 +56,24 @@ private DeadLetterPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              deadLetterTopic_ = s;
-              break;
-            }
-          case 16:
-            {
-              maxDeliveryAttempts_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            deadLetterTopic_ = s;
+            break;
+          }
+          case 16: {
+
+            maxDeliveryAttempts_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -99,33 +81,29 @@ private DeadLetterPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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;
   private volatile java.lang.Object deadLetterTopic_;
   /**
-   *
-   *
    * 
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -138,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string dead_letter_topic = 1; - * * @return The deadLetterTopic. */ @java.lang.Override @@ -147,15 +124,14 @@ 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; } } /** - * - * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -168,15 +144,16 @@ public java.lang.String getDeadLetterTopic() {
    * 
* * string dead_letter_topic = 1; - * * @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 { @@ -187,8 +164,6 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { public static final int MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER = 2; private int maxDeliveryAttempts_; /** - * - * *
    * The maximum number of delivery attempts for any message. The value must be
    * between 5 and 100.
@@ -202,7 +177,6 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
    * 
* * int32 max_delivery_attempts = 2; - * * @return The maxDeliveryAttempts. */ @java.lang.Override @@ -211,7 +185,6 @@ public int getMaxDeliveryAttempts() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +196,8 @@ 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_); } @@ -243,7 +217,8 @@ 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -253,15 +228,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -282,103 +259,97 @@ 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.
@@ -388,23 +359,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
@@ -412,15 +381,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -432,9 +402,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
@@ -453,8 +423,7 @@ 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);
+      com.google.pubsub.v1.DeadLetterPolicy result = new com.google.pubsub.v1.DeadLetterPolicy(this);
       result.deadLetterTopic_ = deadLetterTopic_;
       result.maxDeliveryAttempts_ = maxDeliveryAttempts_;
       onBuilt();
@@ -465,39 +434,38 @@ public com.google.pubsub.v1.DeadLetterPolicy 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.DeadLetterPolicy) {
-        return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy) other);
+        return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -544,8 +512,6 @@ public Builder mergeFrom(
 
     private java.lang.Object deadLetterTopic_ = "";
     /**
-     *
-     *
      * 
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -558,13 +524,13 @@ public Builder mergeFrom(
      * 
* * string dead_letter_topic = 1; - * * @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; @@ -573,8 +539,6 @@ public java.lang.String getDeadLetterTopic() { } } /** - * - * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -587,14 +551,15 @@ public java.lang.String getDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1; - * * @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 { @@ -602,8 +567,6 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { } } /** - * - * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -616,22 +579,20 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
      * 
* * string dead_letter_topic = 1; - * * @param value The deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopic(java.lang.String value) { + public Builder setDeadLetterTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deadLetterTopic_ = value; onChanged(); return this; } /** - * - * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -644,18 +605,15 @@ public Builder setDeadLetterTopic(java.lang.String value) {
      * 
* * string dead_letter_topic = 1; - * * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { - + deadLetterTopic_ = getDefaultInstance().getDeadLetterTopic(); onChanged(); return this; } /** - * - * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -668,25 +626,23 @@ public Builder clearDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1; - * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { + public Builder setDeadLetterTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deadLetterTopic_ = value; onChanged(); return this; } - private int maxDeliveryAttempts_; + private int maxDeliveryAttempts_ ; /** - * - * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -700,7 +656,6 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_delivery_attempts = 2; - * * @return The maxDeliveryAttempts. */ @java.lang.Override @@ -708,8 +663,6 @@ public int getMaxDeliveryAttempts() { return maxDeliveryAttempts_; } /** - * - * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -723,19 +676,16 @@ public int getMaxDeliveryAttempts() {
      * 
* * int32 max_delivery_attempts = 2; - * * @param value The maxDeliveryAttempts to set. * @return This builder for chaining. */ public Builder setMaxDeliveryAttempts(int value) { - + maxDeliveryAttempts_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -749,18 +699,17 @@ public Builder setMaxDeliveryAttempts(int value) {
      * 
* * int32 max_delivery_attempts = 2; - * * @return This builder for chaining. */ public Builder clearMaxDeliveryAttempts() { - + maxDeliveryAttempts_ = 0; 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); } @@ -770,12 +719,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(); } @@ -784,16 +733,16 @@ 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 { - return new DeadLetterPolicy(input, extensionRegistry); - } - }; + 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 { + return new DeadLetterPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,4 +757,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeadLetterPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java similarity index 76% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 1e3060f7b..a08edfcd9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -38,13 +20,10 @@ public interface DeadLetterPolicyOrBuilder
    * 
* * string dead_letter_topic = 1; - * * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** - * - * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -57,14 +36,12 @@ public interface DeadLetterPolicyOrBuilder
    * 
* * string dead_letter_topic = 1; - * * @return The bytes for deadLetterTopic. */ - com.google.protobuf.ByteString getDeadLetterTopicBytes(); + com.google.protobuf.ByteString + getDeadLetterTopicBytes(); /** - * - * *
    * The maximum number of delivery attempts for any message. The value must be
    * between 5 and 100.
@@ -78,7 +55,6 @@ public interface DeadLetterPolicyOrBuilder
    * 
* * int32 max_delivery_attempts = 2; - * * @return The maxDeliveryAttempts. */ int getMaxDeliveryAttempts(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 84747a7ae..6d2e7eed0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteSchemaRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteSchemaRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -135,32 +110,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 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ 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_); } @@ -205,14 +178,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +205,118 @@ 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() @@ -359,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +343,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 @@ -398,8 +364,7 @@ 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); + com.google.pubsub.v1.DeleteSchemaRequest result = new com.google.pubsub.v1.DeleteSchemaRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +374,38 @@ public com.google.pubsub.v1.DeleteSchemaRequest 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.DeleteSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest) other); + return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -485,23 +449,19 @@ public Builder mergeFrom( 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; @@ -510,24 +470,21 @@ 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 { @@ -535,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -615,12 +559,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(); } @@ -629,16 +573,16 @@ 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 { - return new DeleteSchemaRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -653,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..2901f155e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 8113bad2e..96070669d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteSnapshotRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - snapshot_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + snapshot_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteSnapshotRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -135,32 +110,30 @@ 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ 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_); } @@ -205,15 +178,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ 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() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,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 @@ -399,8 +364,7 @@ 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); + com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this); result.snapshot_ = snapshot_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.pubsub.v1.DeleteSnapshotRequest 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.DeleteSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest) other); + return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -486,23 +449,19 @@ public Builder mergeFrom( 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; @@ -511,24 +470,21 @@ 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 { @@ -536,77 +492,64 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } } /** - * - * *
      * 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) { + public Builder setSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshot_ = value; 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() { - + snapshot_ = getDefaultInstance().getSnapshot(); 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) = { ... } * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = 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); } @@ -616,12 +559,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(); } @@ -630,16 +573,16 @@ 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 { - return new DeleteSnapshotRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..f7ee8d19c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 90bb58433..20f87ecda 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteSubscriptionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subscription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteSubscriptionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -135,32 +110,30 @@ 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ 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_); } @@ -205,15 +178,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ 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() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,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 @@ -399,8 +364,7 @@ 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); + com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest 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.DeleteSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest) other); + return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -486,23 +449,19 @@ public Builder mergeFrom( 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; @@ -511,24 +470,21 @@ 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 { @@ -536,77 +492,64 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = 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); } @@ -616,12 +559,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(); } @@ -630,16 +573,16 @@ 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 { - return new DeleteSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..a0d563a50 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 5b3a9e2cb..8e68c47ef 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteTopicRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + topic_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteTopicRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -135,32 +110,30 @@ 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ 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_); } @@ -205,14 +178,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +205,118 @@ 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() @@ -359,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +343,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 @@ -398,8 +364,7 @@ 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); + com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); result.topic_ = topic_; onBuilt(); return result; @@ -409,39 +374,38 @@ public com.google.pubsub.v1.DeleteTopicRequest 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.DeleteTopicRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest) other); + return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -485,23 +449,19 @@ public Builder mergeFrom( 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; @@ -510,24 +470,21 @@ 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 { @@ -535,77 +492,64 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = 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); } @@ -615,12 +559,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(); } @@ -629,16 +573,16 @@ 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 { - return new DeleteTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -653,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..c776f2a4b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 80e218214..b7b797ecd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetachSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DetachSubscriptionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subscription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DetachSubscriptionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -135,32 +110,30 @@ 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ 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_); } @@ -205,15 +178,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ 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() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,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 @@ -399,8 +364,7 @@ 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); + com.google.pubsub.v1.DetachSubscriptionRequest result = new com.google.pubsub.v1.DetachSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.pubsub.v1.DetachSubscriptionRequest 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.DetachSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest) other); + return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -486,23 +449,19 @@ public Builder mergeFrom( 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; @@ -511,24 +470,21 @@ 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 { @@ -536,77 +492,64 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = 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); } @@ -616,12 +559,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(); } @@ -630,16 +573,16 @@ 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 { - return new DetachSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new DetachSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.DetachSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..0acda3201 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java similarity index 67% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 425eff37f..cfb391c46 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; /** - * - * *
  * Response for the DetachSubscription method.
  * Reserved for future use.
@@ -28,29 +11,30 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DetachSubscriptionResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,13 +53,13 @@ private DetachSubscriptionResponse(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,30 +67,27 @@ private DetachSubscriptionResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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;
@@ -118,7 +99,8 @@ 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 {
     unknownFields.writeTo(output);
   }
 
@@ -136,13 +118,12 @@ 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -160,104 +141,97 @@ 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.
@@ -265,23 +239,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
@@ -289,15 +261,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -305,9 +278,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
@@ -326,8 +299,7 @@ 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;
     }
@@ -336,39 +308,38 @@ 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;
@@ -376,8 +347,7 @@ 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.unknownFields);
       onChanged();
       return this;
@@ -406,9 +376,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -418,12 +388,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();
   }
@@ -432,16 +402,16 @@ 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 {
-          return new DetachSubscriptionResponse(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new DetachSubscriptionResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -456,4 +426,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.pubsub.v1.DetachSubscriptionResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
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
new file mode 100644
index 000000000..e9e8bdf14
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/pubsub.proto
+
+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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
similarity index 67%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
index 838fe7682..8ae906633 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
@@ -1,36 +1,18 @@
-/*
- * Copyright 2020 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
 
 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
    * 
@@ -39,8 +21,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
    * JSON encoding
    * 
@@ -49,8 +29,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { */ JSON(1), /** - * - * *
    * Binary encoding, as defined by the schema type. For some schema types,
    * binary encoding may not be available.
@@ -63,8 +41,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Unspecified
    * 
@@ -73,8 +49,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
    * JSON encoding
    * 
@@ -83,8 +57,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { */ 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.
@@ -94,6 +66,7 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int BINARY_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -118,49 +91,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 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<
+      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() {
     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;
@@ -176,3 +149,4 @@ private Encoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Encoding)
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
similarity index 75%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
index e9ed8b2f7..09336d5e6 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * A policy that specifies the conditions for resource expiration (i.e.,
  * automatic resource deletion).
@@ -28,29 +11,30 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ExpirationPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,27 +53,26 @@ private ExpirationPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (ttl_ != null) {
-                subBuilder = ttl_.toBuilder();
-              }
-              ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(ttl_);
-                ttl_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (ttl_ != null) {
+              subBuilder = ttl_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(ttl_);
+              ttl_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,33 +80,29 @@ private ExpirationPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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);
   }
 
   public static final int TTL_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration ttl_;
   /**
-   *
-   *
    * 
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -134,7 +113,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Duration ttl = 1; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -142,8 +120,6 @@ public boolean hasTtl() { return ttl_ != null; } /** - * - * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -154,7 +130,6 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 1; - * * @return The ttl. */ @java.lang.Override @@ -162,8 +137,6 @@ public com.google.protobuf.Duration getTtl() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } /** - * - * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -181,7 +154,6 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -193,7 +165,8 @@ 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 (ttl_ != null) {
       output.writeMessage(1, getTtl());
     }
@@ -207,7 +180,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (ttl_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTtl());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getTtl());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -217,7 +191,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);
@@ -226,7 +200,8 @@ 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -248,103 +223,97 @@ 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).
@@ -352,23 +321,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
@@ -376,15 +343,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +366,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
@@ -419,8 +387,7 @@ 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);
+      com.google.pubsub.v1.ExpirationPolicy result = new com.google.pubsub.v1.ExpirationPolicy(this);
       if (ttlBuilder_ == null) {
         result.ttl_ = ttl_;
       } else {
@@ -434,39 +401,38 @@ public com.google.pubsub.v1.ExpirationPolicy 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.ExpirationPolicy) {
-        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy) other);
+        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -509,13 +475,8 @@ public Builder mergeFrom(
 
     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_;
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -526,15 +487,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration ttl = 1; - * * @return Whether the ttl field is set. */ public boolean hasTtl() { return ttlBuilder_ != null || ttl_ != null; } /** - * - * *
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -545,7 +503,6 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 1; - * * @return The ttl. */ public com.google.protobuf.Duration getTtl() { @@ -556,8 +513,6 @@ public com.google.protobuf.Duration getTtl() { } } /** - * - * *
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -583,8 +538,6 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -596,7 +549,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 1;
      */
-    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         ttl_ = builderForValue.build();
         onChanged();
@@ -607,8 +561,6 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -623,7 +575,8 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
         if (ttl_ != null) {
-          ttl_ = com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
+          ttl_ =
+            com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
         } else {
           ttl_ = value;
         }
@@ -635,8 +588,6 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -660,8 +611,6 @@ public Builder clearTtl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -674,13 +623,11 @@ public Builder clearTtl() {
      * .google.protobuf.Duration ttl = 1;
      */
     public com.google.protobuf.Duration.Builder getTtlBuilder() {
-
+      
       onChanged();
       return getTtlFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -696,12 +643,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -714,23 +660,21 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 1;
      */
     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);
     }
 
@@ -740,12 +684,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();
   }
@@ -754,16 +698,16 @@ 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 {
-          return new ExpirationPolicy(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new ExpirationPolicy(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -778,4 +722,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ExpirationPolicy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
similarity index 73%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
index ac04be2f7..097989dce 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
 
 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 {
 
   /**
-   *
-   *
    * 
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -36,13 +18,10 @@ public interface ExpirationPolicyOrBuilder
    * 
* * .google.protobuf.Duration ttl = 1; - * * @return Whether the ttl field is set. */ boolean hasTtl(); /** - * - * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -53,13 +32,10 @@ public interface ExpirationPolicyOrBuilder
    * 
* * .google.protobuf.Duration ttl = 1; - * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** - * - * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
similarity index 70%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
index 9a1f22ba3..21836f83c 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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
 
 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; @@ -44,15 +26,16 @@ private GetSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSchemaRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private GetSchemaRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - view_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + view_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,42 +80,35 @@ private GetSchemaRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -143,32 +117,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. 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 { @@ -179,8 +151,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_; /** - * - * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -188,16 +158,12 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .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 `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -205,18 +171,15 @@ public int getViewValue() {
    * 
* * .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() { @SuppressWarnings("deprecation") com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(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; @@ -228,7 +191,8 @@ 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_); } @@ -248,7 +212,8 @@ 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -258,14 +223,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,126 +253,118 @@ 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() @@ -414,15 +372,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +393,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 @@ -455,8 +414,7 @@ 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); + com.google.pubsub.v1.GetSchemaRequest result = new com.google.pubsub.v1.GetSchemaRequest(this); result.name_ = name_; result.view_ = view_; onBuilt(); @@ -467,39 +425,38 @@ public com.google.pubsub.v1.GetSchemaRequest 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.GetSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.GetSchemaRequest) other); + return mergeFrom((com.google.pubsub.v1.GetSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -546,23 +503,19 @@ public Builder mergeFrom( 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; @@ -571,24 +524,21 @@ 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 { @@ -596,70 +546,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -667,8 +604,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -676,16 +611,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .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 `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -693,19 +624,16 @@ public int getViewValue() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** - * - * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -713,7 +641,6 @@ public Builder setViewValue(int value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ @java.lang.Override @@ -723,8 +650,6 @@ 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 `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -732,7 +657,6 @@ public com.google.pubsub.v1.SchemaView getView() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @param value The view to set. * @return This builder for chaining. */ @@ -740,14 +664,12 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -755,18 +677,17 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; 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); } @@ -776,12 +697,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(); } @@ -790,16 +711,16 @@ 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 { - return new GetSchemaRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,4 +735,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 54c9481e2..e06bc63f9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 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 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 `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -64,13 +37,10 @@ public interface GetSchemaRequestOrBuilder
    * 
* * .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 `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -78,7 +48,6 @@ public interface GetSchemaRequestOrBuilder
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ com.google.pubsub.v1.SchemaView getView(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index e40c7802e..df560469d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetSnapshotRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - snapshot_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + snapshot_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetSnapshotRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -135,32 +110,30 @@ 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ 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_); } @@ -205,14 +178,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +205,118 @@ 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() @@ -359,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +343,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 @@ -398,8 +364,7 @@ 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); + com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); result.snapshot_ = snapshot_; onBuilt(); return result; @@ -409,39 +374,38 @@ public com.google.pubsub.v1.GetSnapshotRequest 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.GetSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest) other); + return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -485,23 +449,19 @@ public Builder mergeFrom( 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; @@ -510,24 +470,21 @@ 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 { @@ -535,77 +492,64 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } } /** - * - * *
      * 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) { + public Builder setSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshot_ = value; 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() { - + snapshot_ = getDefaultInstance().getSnapshot(); 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) = { ... } * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = 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); } @@ -615,12 +559,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(); } @@ -629,16 +573,16 @@ 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 { - return new GetSnapshotRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -653,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..d0c929953 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 0a0122d3c..85aaa7138 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetSubscriptionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subscription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetSubscriptionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -135,32 +110,30 @@ 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ 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_); } @@ -205,15 +178,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ 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() @@ -360,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,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 @@ -399,8 +364,7 @@ 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); + com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.pubsub.v1.GetSubscriptionRequest 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.GetSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest) other); + return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -486,23 +449,19 @@ public Builder mergeFrom( 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; @@ -511,24 +470,21 @@ 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 { @@ -536,77 +492,64 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = 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); } @@ -616,12 +559,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(); } @@ -630,16 +573,16 @@ 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 { - return new GetSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..1b1f6dccb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 43e15615e..e3d16e0d8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetTopicRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + topic_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetTopicRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -135,32 +110,30 @@ 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ 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_); } @@ -205,14 +178,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +205,118 @@ 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() @@ -358,15 +324,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +343,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 @@ -407,39 +374,38 @@ public com.google.pubsub.v1.GetTopicRequest 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.GetTopicRequest) { - return mergeFrom((com.google.pubsub.v1.GetTopicRequest) other); + return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -483,23 +449,19 @@ public Builder mergeFrom( 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; @@ -508,24 +470,21 @@ 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 { @@ -533,77 +492,64 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = 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); } @@ -613,12 +559,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(); } @@ -627,16 +573,16 @@ 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 { - return new GetTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new GetTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..f29eae1a6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 9e75e40f4..9f82523bc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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; @@ -45,15 +27,16 @@ private ListSchemasRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSchemasRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSchemasRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListSchemasRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + parent_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - view_ = rawValue; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + view_ = rawValue; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,42 +92,35 @@ private ListSchemasRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -156,32 +129,30 @@ 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 { @@ -192,8 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int 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
@@ -201,16 +170,12 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .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
@@ -218,11 +183,9 @@ public int getViewValue() {
    * 
* * .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() { @SuppressWarnings("deprecation") com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; @@ -231,14 +194,11 @@ public com.google.pubsub.v1.SchemaView getView() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Maximum number of schemas to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -249,8 +209,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; 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
@@ -258,7 +216,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -267,15 +224,14 @@ 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
@@ -283,15 +239,16 @@ 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 { @@ -300,7 +257,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,7 +268,8 @@ 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_); } @@ -338,10 +295,12 @@ 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_); @@ -354,17 +313,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,127 +351,118 @@ 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() @@ -517,15 +470,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -541,9 +495,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 @@ -562,8 +516,7 @@ 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); + com.google.pubsub.v1.ListSchemasRequest result = new com.google.pubsub.v1.ListSchemasRequest(this); result.parent_ = parent_; result.view_ = view_; result.pageSize_ = pageSize_; @@ -576,39 +529,38 @@ public com.google.pubsub.v1.ListSchemasRequest 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.ListSchemasRequest) { - return mergeFrom((com.google.pubsub.v1.ListSchemasRequest) other); + return mergeFrom((com.google.pubsub.v1.ListSchemasRequest)other); } else { super.mergeFrom(other); return this; @@ -662,23 +614,19 @@ public Builder mergeFrom( 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; @@ -687,24 +635,21 @@ 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 { @@ -712,70 +657,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -783,8 +715,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -792,16 +722,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * .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
@@ -809,19 +735,16 @@ public int getViewValue() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); 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
@@ -829,7 +752,6 @@ public Builder setViewValue(int value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ @java.lang.Override @@ -839,8 +761,6 @@ 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
@@ -848,7 +768,6 @@ public com.google.pubsub.v1.SchemaView getView() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @param value The view to set. * @return This builder for chaining. */ @@ -856,14 +775,12 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); 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
@@ -871,26 +788,22 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -898,36 +811,30 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -935,8 +842,6 @@ 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
@@ -944,13 +849,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; @@ -959,8 +864,6 @@ 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
@@ -968,14 +871,15 @@ 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 { @@ -983,8 +887,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -992,22 +894,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -1015,18 +915,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -1034,23 +931,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -1060,12 +957,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(); } @@ -1074,16 +971,16 @@ 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 { - return new ListSchemasRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSchemasRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1098,4 +995,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSchemasRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index bd5787e76..49bdd3109 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 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 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
@@ -64,13 +37,10 @@ public interface ListSchemasRequestOrBuilder
    * 
* * .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
@@ -78,27 +48,21 @@ public interface ListSchemasRequestOrBuilder
    * 
* * .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
@@ -106,13 +70,10 @@ public interface ListSchemasRequestOrBuilder
    * 
* * 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
@@ -120,8 +81,8 @@ public interface ListSchemasRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index d7acc8862..d39f94764 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListSchemasResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSchemasResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSchemasResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListSchemasResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - schemas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - schemas_.add( - input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + schemas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + schemas_.add( + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListSchemasResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); @@ -112,27 +94,22 @@ private ListSchemasResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List schemas_; /** - * - * *
    * The resulting schemas.
    * 
@@ -144,8 +121,6 @@ public java.util.List getSchemasList() { return schemas_; } /** - * - * *
    * The resulting schemas.
    * 
@@ -153,12 +128,11 @@ 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.
    * 
@@ -170,8 +144,6 @@ public int getSchemasCount() { return schemas_.size(); } /** - * - * *
    * The resulting schemas.
    * 
@@ -183,8 +155,6 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } /** - * - * *
    * The resulting schemas.
    * 
@@ -192,22 +162,20 @@ 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; 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 @@ -216,30 +184,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 { @@ -248,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +227,8 @@ 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)); } @@ -277,7 +245,8 @@ 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_); @@ -290,15 +259,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,127 +292,118 @@ 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() @@ -449,17 +411,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) { getSchemasFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +437,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 @@ -496,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (schemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -517,39 +478,38 @@ public com.google.pubsub.v1.ListSchemasResponse 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.ListSchemasResponse) { - return mergeFrom((com.google.pubsub.v1.ListSchemasResponse) other); + return mergeFrom((com.google.pubsub.v1.ListSchemasResponse)other); } else { super.mergeFrom(other); return this; @@ -576,10 +536,9 @@ 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_); } @@ -617,28 +576,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -653,8 +605,6 @@ public java.util.List getSchemasList() { } } /** - * - * *
      * The resulting schemas.
      * 
@@ -669,8 +619,6 @@ public int getSchemasCount() { } } /** - * - * *
      * The resulting schemas.
      * 
@@ -685,15 +633,14 @@ 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(); @@ -707,15 +654,14 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { 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()); @@ -726,8 +672,6 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builder return this; } /** - * - * *
      * The resulting schemas.
      * 
@@ -748,15 +692,14 @@ 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(); @@ -770,15 +713,14 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { 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()); @@ -789,15 +731,14 @@ public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { 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()); @@ -808,18 +749,18 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builder 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); @@ -827,8 +768,6 @@ public Builder addAllSchemas(java.lang.Iterable * The resulting schemas. *
@@ -846,8 +785,6 @@ public Builder clearSchemas() { return this; } /** - * - * *
      * The resulting schemas.
      * 
@@ -865,44 +802,39 @@ 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 { @@ -910,8 +842,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { } } /** - * - * *
      * The resulting schemas.
      * 
@@ -919,46 +849,42 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { * 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_; @@ -966,21 +892,19 @@ public java.util.List getSchemasBuilderList 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; @@ -989,22 +913,21 @@ 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 { @@ -1012,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1086,12 +1002,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(); } @@ -1100,16 +1016,16 @@ 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 { - return new ListSchemasResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSchemasResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSchemasResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 3ee2015b1..aaa6844d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 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.
    * 
@@ -44,8 +25,6 @@ public interface ListSchemasResponseOrBuilder */ com.google.pubsub.v1.Schema getSchemas(int index); /** - * - * *
    * The resulting schemas.
    * 
@@ -54,50 +33,43 @@ public interface ListSchemasResponseOrBuilder */ 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index c23abd212..e88d3579a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSnapshotsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSnapshotsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListSnapshotsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListSnapshotsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -148,32 +122,30 @@ 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 { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of snapshots to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -211,7 +178,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,15 +186,14 @@ 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 `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -236,15 +201,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @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 { @@ -253,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +230,8 @@ 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_); } @@ -288,7 +254,8 @@ 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_); @@ -301,17 +268,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,127 +303,118 @@ 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() @@ -462,15 +422,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +445,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 @@ -505,8 +466,7 @@ 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); + com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -518,39 +478,38 @@ public com.google.pubsub.v1.ListSnapshotsRequest 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.ListSnapshotsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other); } else { super.mergeFrom(other); return this; @@ -601,23 +560,19 @@ public Builder mergeFrom( 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; @@ -626,24 +581,21 @@ 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 { @@ -651,85 +603,69 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * 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) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; 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() { - + project_ = getDefaultInstance().getProject(); 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) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -737,36 +673,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -774,8 +704,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -783,13 +711,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; @@ -798,8 +726,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -807,14 +733,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @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 { @@ -822,8 +749,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -831,22 +756,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -854,18 +777,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -873,23 +793,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -899,12 +819,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(); } @@ -913,16 +833,16 @@ 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 { - return new ListSnapshotsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSnapshotsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -937,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index c4a67ace0..2a859ca35 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 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 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(); /** - * - * *
    * Maximum number of snapshots to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -77,13 +47,10 @@ public interface ListSnapshotsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -91,8 +58,8 @@ public interface ListSnapshotsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 8d44aa126..5a56dde2e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSnapshotsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSnapshotsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListSnapshotsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snapshots_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - snapshots_.add( - input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + snapshots_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + snapshots_.add( + input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListSnapshotsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); @@ -112,27 +94,22 @@ private ListSnapshotsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List snapshots_; /** - * - * *
    * The resulting snapshots.
    * 
@@ -144,8 +121,6 @@ public java.util.List getSnapshotsList() { return snapshots_; } /** - * - * *
    * The resulting snapshots.
    * 
@@ -153,13 +128,11 @@ public java.util.List getSnapshotsList() { * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSnapshotsOrBuilderList() { return snapshots_; } /** - * - * *
    * The resulting snapshots.
    * 
@@ -171,8 +144,6 @@ public int getSnapshotsCount() { return snapshots_.size(); } /** - * - * *
    * The resulting snapshots.
    * 
@@ -184,8 +155,6 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } /** - * - * *
    * The resulting snapshots.
    * 
@@ -193,22 +162,20 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ @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; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * 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; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,30 +184,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 snapshot that match the
    * request; this value should be passed in a new `ListSnapshotsRequest`.
    * 
* * 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 { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,8 @@ 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)); } @@ -278,7 +245,8 @@ 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_); @@ -291,16 +259,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +292,118 @@ 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() @@ -451,17 +411,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) { getSnapshotsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +437,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 @@ -498,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (snapshotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -519,39 +478,38 @@ public com.google.pubsub.v1.ListSnapshotsResponse 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.ListSnapshotsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other); } else { super.mergeFrom(other); return this; @@ -578,10 +536,9 @@ 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_); } @@ -619,28 +576,21 @@ public Builder mergeFrom( } 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_; /** - * - * *
      * The resulting snapshots.
      * 
@@ -655,8 +605,6 @@ public java.util.List getSnapshotsList() { } } /** - * - * *
      * The resulting snapshots.
      * 
@@ -671,8 +619,6 @@ public int getSnapshotsCount() { } } /** - * - * *
      * The resulting snapshots.
      * 
@@ -687,15 +633,14 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { } } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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(); @@ -709,15 +654,14 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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()); @@ -728,8 +672,6 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui return this; } /** - * - * *
      * The resulting snapshots.
      * 
@@ -750,15 +692,14 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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(); @@ -772,15 +713,14 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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()); @@ -791,15 +731,14 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValu return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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()); @@ -810,8 +749,6 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui return this; } /** - * - * *
      * The resulting snapshots.
      * 
@@ -822,7 +759,8 @@ 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); @@ -830,8 +768,6 @@ public Builder addAllSnapshots( return this; } /** - * - * *
      * The resulting snapshots.
      * 
@@ -849,8 +785,6 @@ public Builder clearSnapshots() { return this; } /** - * - * *
      * The resulting snapshots.
      * 
@@ -868,44 +802,39 @@ public Builder removeSnapshots(int index) { return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { + public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder( + int index) { return getSnapshotsFieldBuilder().getBuilder(index); } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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); } } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsOrBuilderList() { + public java.util.List + getSnapshotsOrBuilderList() { if (snapshotsBuilder_ != null) { return snapshotsBuilder_.getMessageOrBuilderList(); } else { @@ -913,8 +842,6 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { } } /** - * - * *
      * The resulting snapshots.
      * 
@@ -922,47 +849,42 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ 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()); } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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()); } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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_; @@ -970,21 +892,19 @@ public java.util.List getSnapshotsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * 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; - * * @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; @@ -993,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * 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; - * * @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 { @@ -1016,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1090,12 +1002,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(); } @@ -1104,16 +1016,16 @@ 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 { - return new ListSnapshotsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSnapshotsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1040,6 @@ 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/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index bbbf2955d..2f9eb5709 100644 --- a/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 @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; -public interface ListSnapshotsResponseOrBuilder - extends +public interface ListSnapshotsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - java.util.List getSnapshotsList(); + java.util.List + getSnapshotsList(); /** - * - * *
    * The resulting snapshots.
    * 
@@ -44,8 +25,6 @@ public interface ListSnapshotsResponseOrBuilder */ com.google.pubsub.v1.Snapshot getSnapshots(int index); /** - * - * *
    * The resulting snapshots.
    * 
@@ -54,50 +33,43 @@ public interface ListSnapshotsResponseOrBuilder */ int getSnapshotsCount(); /** - * - * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - java.util.List getSnapshotsOrBuilderList(); + java.util.List + getSnapshotsOrBuilderList(); /** - * - * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); + com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index); /** - * - * *
    * 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; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * 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; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index d7db4c0ea..2e184c39a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSubscriptionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListSubscriptionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListSubscriptionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -148,32 +122,30 @@ 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 { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of subscriptions to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -211,7 +178,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,15 +186,14 @@ 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 `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -236,15 +201,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @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 { @@ -253,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +230,8 @@ 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_); } @@ -288,7 +254,8 @@ 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_); @@ -301,17 +268,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,127 +303,118 @@ 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() @@ -462,15 +422,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +445,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 @@ -505,8 +466,7 @@ 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); + com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -518,39 +478,38 @@ public com.google.pubsub.v1.ListSubscriptionsRequest 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.ListSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); } else { super.mergeFrom(other); return this; @@ -601,23 +560,19 @@ public Builder mergeFrom( 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; @@ -626,24 +581,21 @@ 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 { @@ -651,85 +603,69 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * 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) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; 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() { - + project_ = getDefaultInstance().getProject(); 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) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -737,36 +673,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -774,8 +704,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -783,13 +711,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; @@ -798,8 +726,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -807,14 +733,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @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 { @@ -822,8 +749,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -831,22 +756,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -854,18 +777,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -873,23 +793,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -899,12 +819,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(); } @@ -913,16 +833,16 @@ 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 { - return new ListSubscriptionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSubscriptionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -937,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 73b1fac51..18b75f777 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 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 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(); /** - * - * *
    * Maximum number of subscriptions to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -77,13 +47,10 @@ public interface ListSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -91,8 +58,8 @@ public interface ListSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java similarity index 75% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 237045561..7e6f86ffd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSubscriptionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSubscriptionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListSubscriptionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - subscriptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - subscriptions_.add( - input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + subscriptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + subscriptions_.add( + input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListSubscriptionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -112,27 +94,22 @@ private ListSubscriptionsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List subscriptions_; /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -144,8 +121,6 @@ public java.util.List getSubscriptionsList() return subscriptions_; } /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -153,13 +128,11 @@ public java.util.List getSubscriptionsList() * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSubscriptionsOrBuilderList() { return subscriptions_; } /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -171,8 +144,6 @@ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -184,8 +155,6 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -193,15 +162,14 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ @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; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -209,7 +177,6 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,15 +185,14 @@ 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 subscriptions that match
    * the request; this value should be passed in a new
@@ -234,15 +200,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -251,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +229,8 @@ 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)); } @@ -280,7 +247,8 @@ 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_); @@ -293,16 +261,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,127 +294,118 @@ 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() @@ -453,17 +413,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) { getSubscriptionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +439,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 @@ -500,8 +460,7 @@ 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); int from_bitField0_ = bitField0_; if (subscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -521,39 +480,38 @@ public com.google.pubsub.v1.ListSubscriptionsResponse 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.ListSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; @@ -580,10 +538,9 @@ 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_); } @@ -621,28 +578,21 @@ public Builder mergeFrom( } 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_; /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -657,8 +607,6 @@ public java.util.List getSubscriptionsList() } } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -673,8 +621,6 @@ public int getSubscriptionsCount() { } } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -689,15 +635,14 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { } } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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(); @@ -711,8 +656,6 @@ public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription val return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -731,8 +674,6 @@ public Builder setSubscriptions( return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -753,15 +694,14 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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(); @@ -775,15 +715,14 @@ public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription val return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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()); @@ -794,8 +733,6 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builde return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -814,8 +751,6 @@ public Builder addSubscriptions( return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -826,7 +761,8 @@ 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); @@ -834,8 +770,6 @@ public Builder addAllSubscriptions( return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -853,8 +787,6 @@ public Builder clearSubscriptions() { return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -872,44 +804,39 @@ public Builder removeSubscriptions(int index) { return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { + public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder( + int index) { return getSubscriptionsFieldBuilder().getBuilder(index); } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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); } } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public java.util.List - getSubscriptionsOrBuilderList() { + public java.util.List + getSubscriptionsOrBuilderList() { if (subscriptionsBuilder_ != null) { return subscriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -917,8 +844,6 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int } } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -926,46 +851,38 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ 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()); } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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()); } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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(), @@ -977,8 +894,6 @@ public java.util.List getSubscription private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -986,13 +901,13 @@ public java.util.List getSubscription
      * 
* * 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; @@ -1001,8 +916,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -1010,14 +923,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1025,8 +939,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -1034,22 +946,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -1057,18 +967,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -1076,23 +983,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1102,12 +1009,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(); } @@ -1116,16 +1023,16 @@ 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 { - return new ListSubscriptionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSubscriptionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1140,4 +1047,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 1dcf23dd0..acc6e8f80 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - java.util.List getSubscriptionsList(); + java.util.List + getSubscriptionsList(); /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -44,8 +25,6 @@ public interface ListSubscriptionsResponseOrBuilder */ com.google.pubsub.v1.Subscription getSubscriptions(int index); /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -54,30 +33,25 @@ public interface ListSubscriptionsResponseOrBuilder */ int getSubscriptionsCount(); /** - * - * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - java.util.List + java.util.List getSubscriptionsOrBuilderList(); /** - * - * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index); + com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -85,13 +59,10 @@ public interface ListSubscriptionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -99,8 +70,8 @@ public interface ListSubscriptionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java similarity index 70% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 17a383573..aff65b971 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListTopicSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSnapshotsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicSnapshotsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListTopicSnapshotsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + topic_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListTopicSnapshotsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -148,32 +122,30 @@ 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 { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of snapshot names to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -211,7 +178,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,15 +186,14 @@ 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 `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -236,15 +201,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @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 { @@ -253,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +230,8 @@ 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_); } @@ -288,7 +254,8 @@ 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_); @@ -301,17 +268,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,127 +303,118 @@ 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() @@ -462,15 +422,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +445,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 @@ -505,8 +466,7 @@ 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); + com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); result.topic_ = topic_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -518,39 +478,38 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest 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.ListTopicSnapshotsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other); } else { super.mergeFrom(other); return this; @@ -601,23 +560,19 @@ public Builder mergeFrom( 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; @@ -626,24 +581,21 @@ 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 { @@ -651,85 +603,69 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -737,36 +673,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -774,8 +704,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -783,13 +711,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; @@ -798,8 +726,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -807,14 +733,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @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 { @@ -822,8 +749,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -831,22 +756,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -854,18 +777,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -873,23 +793,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -899,12 +819,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(); } @@ -913,16 +833,16 @@ 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 { - return new ListTopicSnapshotsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSnapshotsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -937,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 3e3382705..63e1913b0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 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 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(); /** - * - * *
    * Maximum number of snapshot names to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -77,13 +47,10 @@ public interface ListTopicSnapshotsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -91,8 +58,8 @@ public interface ListTopicSnapshotsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index ea2130886..0e5eee8e8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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.EMPTY; nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListTopicSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSnapshotsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicSnapshotsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListTopicSnapshotsResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snapshots_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - snapshots_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + snapshots_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + snapshots_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListTopicSnapshotsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); @@ -112,61 +94,50 @@ private ListTopicSnapshotsResponse( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.LazyStringList snapshots_; /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @return A list containing the snapshots. */ - public com.google.protobuf.ProtocolStringList getSnapshotsList() { + public com.google.protobuf.ProtocolStringList + getSnapshotsList() { return snapshots_; } /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); } /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @param index The index of the element to return. * @return The snapshots at the given index. */ @@ -174,26 +145,22 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @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; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -201,7 +168,6 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -210,15 +176,14 @@ 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 snapshots that match
    * the request; this value should be passed in a new
@@ -226,15 +191,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -243,7 +209,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,7 +220,8 @@ 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)); } @@ -290,16 +256,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,127 +289,118 @@ 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() @@ -450,15 +408,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +429,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_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 @@ -491,8 +450,7 @@ 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); + com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); @@ -508,39 +466,38 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse 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.ListTopicSnapshotsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other); } else { super.mergeFrom(other); return this; @@ -548,8 +505,7 @@ 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_; @@ -592,55 +548,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList snapshots_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSnapshotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { snapshots_ = new com.google.protobuf.LazyStringArrayList(snapshots_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @return A list containing the snapshots. */ - public com.google.protobuf.ProtocolStringList getSnapshotsList() { + public com.google.protobuf.ProtocolStringList + getSnapshotsList() { return snapshots_.getUnmodifiableView(); } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param index The index of the element to return. * @return The snapshots at the given index. */ @@ -648,90 +593,80 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @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); } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @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) { + public Builder setSnapshots( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); return this; } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param value The snapshots to add. * @return This builder for chaining. */ - public Builder addSnapshots(java.lang.String value) { + public Builder addSnapshots( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); return this; } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @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_); onChanged(); return this; } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @return This builder for chaining. */ public Builder clearSnapshots() { @@ -741,22 +676,20 @@ public Builder clearSnapshots() { return this; } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param value The bytes of the snapshots to add. * @return This builder for chaining. */ - public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { + public Builder addSnapshotsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); @@ -765,8 +698,6 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -774,13 +705,13 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -789,8 +720,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -798,14 +727,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -813,8 +743,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -822,22 +750,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -845,18 +771,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -864,23 +787,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -890,12 +813,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(); } @@ -904,16 +827,16 @@ 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 { - return new ListTopicSnapshotsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSnapshotsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,4 +851,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 778a80008..09729ce06 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,82 +1,54 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @return A list containing the snapshots. */ - java.util.List getSnapshotsList(); + java.util.List + getSnapshotsList(); /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @return The count of snapshots. */ int getSnapshotsCount(); /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @param index The index of the element to return. * @return The snapshots at the given index. */ java.lang.String getSnapshots(int index); /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @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); /** - * - * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -84,13 +56,10 @@ public interface ListTopicSnapshotsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -98,8 +67,8 @@ public interface ListTopicSnapshotsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index ae8c370d6..fb207b641 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListTopicSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSubscriptionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicSubscriptionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListTopicSubscriptionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + topic_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListTopicSubscriptionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -148,32 +122,30 @@ 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 { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of subscription names to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -211,7 +178,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,15 +186,14 @@ 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 `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -236,15 +201,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @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 { @@ -253,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +230,8 @@ 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_); } @@ -288,7 +254,8 @@ 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_); @@ -301,17 +268,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,126 +304,117 @@ 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() @@ -462,15 +422,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +445,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 @@ -505,8 +466,7 @@ 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); + com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); result.topic_ = topic_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -518,39 +478,38 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest 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.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); } else { super.mergeFrom(other); return this; @@ -558,8 +517,7 @@ 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_; onChanged(); @@ -590,8 +548,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -603,23 +560,19 @@ public Builder mergeFrom( 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; @@ -628,24 +581,21 @@ 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 { @@ -653,85 +603,69 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -739,36 +673,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -776,8 +704,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -785,13 +711,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; @@ -800,8 +726,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -809,14 +733,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @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 { @@ -824,8 +749,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -833,22 +756,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -856,18 +777,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -875,23 +793,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -901,12 +819,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(); } @@ -915,16 +833,16 @@ 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 { - return new ListTopicSubscriptionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSubscriptionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -939,4 +857,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 2d09f8895..950ac7b4e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 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 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(); /** - * - * *
    * Maximum number of subscription names to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -77,13 +47,10 @@ public interface ListTopicSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -91,8 +58,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 16bfc8bfe..ea21fa1f7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 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 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.EMPTY; nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListTopicSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSubscriptionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicSubscriptionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,30 +55,28 @@ private ListTopicSubscriptionsResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - subscriptions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - subscriptions_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + subscriptions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + subscriptions_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListTopicSubscriptionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); @@ -113,61 +94,50 @@ private ListTopicSubscriptionsResponse( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.LazyStringList subscriptions_; /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList + getSubscriptionsList() { return subscriptions_; } /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -175,26 +145,22 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.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; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -211,15 +176,14 @@ 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 subscriptions that match
    * the request; this value should be passed in a new
@@ -227,15 +191,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -244,7 +209,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +220,8 @@ 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)); } @@ -291,16 +256,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,126 +290,117 @@ 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() @@ -451,15 +408,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +429,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_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 @@ -492,8 +450,7 @@ 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); + com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); @@ -509,39 +466,38 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse 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.ListTopicSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; @@ -549,8 +505,7 @@ 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_; @@ -584,8 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -594,55 +548,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList subscriptions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList + getSubscriptionsList() { return subscriptions_.getUnmodifiableView(); } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -650,90 +593,80 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.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); } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.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) { + public Builder setSubscriptions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubscriptionsIsMutable(); + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @param value The subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptions(java.lang.String value) { + public Builder addSubscriptions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubscriptionsIsMutable(); + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.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_); onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSubscriptions() { @@ -743,22 +676,20 @@ public Builder clearSubscriptions() { return this; } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.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) { + public Builder addSubscriptionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); @@ -767,8 +698,6 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -776,13 +705,13 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -791,8 +720,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -800,14 +727,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -815,8 +743,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -824,22 +750,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -847,18 +771,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -866,23 +787,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -892,12 +813,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(); } @@ -906,16 +827,16 @@ 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 { - return new ListTopicSubscriptionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSubscriptionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +851,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index dffc961db..28f5759b8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,82 +1,54 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the subscriptions. */ - java.util.List getSubscriptionsList(); + java.util.List + getSubscriptionsList(); /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of subscriptions. */ int getSubscriptionsCount(); /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.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); /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.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); /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -84,13 +56,10 @@ public interface ListTopicSubscriptionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -98,8 +67,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index cbb0a15ed..d7eb278f4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListTopicsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListTopicsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -148,32 +122,30 @@ 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 { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of topics to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -202,8 +171,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -211,7 +178,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,15 +186,14 @@ 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 `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -236,15 +201,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @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 { @@ -253,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +230,8 @@ 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_); } @@ -288,7 +254,8 @@ 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_); @@ -301,16 +268,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,127 +303,118 @@ 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() @@ -461,15 +422,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +445,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 @@ -504,8 +466,7 @@ 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); + com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -517,39 +478,38 @@ public com.google.pubsub.v1.ListTopicsRequest 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.ListTopicsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); } else { super.mergeFrom(other); return this; @@ -600,23 +560,19 @@ public Builder mergeFrom( 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; @@ -625,24 +581,21 @@ 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 { @@ -650,85 +603,69 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * 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) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; 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() { - + project_ = getDefaultInstance().getProject(); 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) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -736,36 +673,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -773,8 +704,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -782,13 +711,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; @@ -797,8 +726,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -806,14 +733,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @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 { @@ -821,8 +749,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -830,22 +756,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -853,18 +777,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -872,23 +793,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -898,12 +819,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(); } @@ -912,16 +833,16 @@ 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 { - return new ListTopicsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTopicsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 8f5219329..d6acb0277 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 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 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(); /** - * - * *
    * Maximum number of topics to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -77,13 +47,10 @@ public interface ListTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -91,8 +58,8 @@ public interface ListTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index ba9cb473c..6a4ad7bfc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private ListTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListTopicsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - topics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - topics_.add( - input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + topics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + topics_.add( + input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListTopicsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -112,27 +94,22 @@ private ListTopicsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List topics_; /** - * - * *
    * The resulting topics.
    * 
@@ -144,8 +121,6 @@ public java.util.List getTopicsList() { return topics_; } /** - * - * *
    * The resulting topics.
    * 
@@ -153,12 +128,11 @@ public java.util.List getTopicsList() { * repeated .google.pubsub.v1.Topic topics = 1; */ @java.lang.Override - public java.util.List getTopicsOrBuilderList() { + public java.util.List + getTopicsOrBuilderList() { return topics_; } /** - * - * *
    * The resulting topics.
    * 
@@ -170,8 +144,6 @@ public int getTopicsCount() { return topics_.size(); } /** - * - * *
    * The resulting topics.
    * 
@@ -183,8 +155,6 @@ public com.google.pubsub.v1.Topic getTopics(int index) { return topics_.get(index); } /** - * - * *
    * The resulting topics.
    * 
@@ -192,22 +162,20 @@ public com.google.pubsub.v1.Topic getTopics(int index) { * repeated .google.pubsub.v1.Topic topics = 1; */ @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; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * 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; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,30 +184,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 topics that match the
    * request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * 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 { @@ -248,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +227,8 @@ 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)); } @@ -277,7 +245,8 @@ 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_); @@ -290,15 +259,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,127 +292,118 @@ 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() @@ -449,17 +411,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) { getTopicsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +437,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 @@ -496,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -517,39 +478,38 @@ public com.google.pubsub.v1.ListTopicsResponse 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.ListTopicsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); } else { super.mergeFrom(other); return this; @@ -576,10 +536,9 @@ 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_); } @@ -617,27 +576,21 @@ public Builder mergeFrom( } 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_; /** - * - * *
      * The resulting topics.
      * 
@@ -652,8 +605,6 @@ public java.util.List getTopicsList() { } } /** - * - * *
      * The resulting topics.
      * 
@@ -668,8 +619,6 @@ public int getTopicsCount() { } } /** - * - * *
      * The resulting topics.
      * 
@@ -684,15 +633,14 @@ public com.google.pubsub.v1.Topic getTopics(int index) { } } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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(); @@ -706,15 +654,14 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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()); @@ -725,8 +672,6 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo return this; } /** - * - * *
      * The resulting topics.
      * 
@@ -747,15 +692,14 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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(); @@ -769,15 +713,14 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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()); @@ -788,15 +731,14 @@ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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()); @@ -807,18 +749,18 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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); @@ -826,8 +768,6 @@ public Builder addAllTopics(java.lang.Iterable * The resulting topics. *
@@ -845,8 +785,6 @@ public Builder clearTopics() { return this; } /** - * - * *
      * The resulting topics.
      * 
@@ -864,43 +802,39 @@ public Builder removeTopics(int index) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { + public com.google.pubsub.v1.Topic.Builder getTopicsBuilder( + int index) { return getTopicsFieldBuilder().getBuilder(index); } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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); } } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public java.util.List getTopicsOrBuilderList() { + public java.util.List + getTopicsOrBuilderList() { if (topicsBuilder_ != null) { return topicsBuilder_.getMessageOrBuilderList(); } else { @@ -908,8 +842,6 @@ public java.util.List getTopicsOr } } /** - * - * *
      * The resulting topics.
      * 
@@ -917,46 +849,42 @@ public java.util.List getTopicsOr * repeated .google.pubsub.v1.Topic topics = 1; */ 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()); } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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()); } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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_; @@ -964,21 +892,19 @@ public java.util.List getTopicsBuilderList() private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * 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; - * * @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; @@ -987,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * 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; - * * @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 { @@ -1010,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * 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; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1084,12 +1002,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(); } @@ -1098,16 +1016,16 @@ 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 { - return new ListTopicsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTopicsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index c29de3514..3706fd7e5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - java.util.List getTopicsList(); + java.util.List + getTopicsList(); /** - * - * *
    * The resulting topics.
    * 
@@ -44,8 +25,6 @@ public interface ListTopicsResponseOrBuilder */ com.google.pubsub.v1.Topic getTopics(int index); /** - * - * *
    * The resulting topics.
    * 
@@ -54,50 +33,43 @@ public interface ListTopicsResponseOrBuilder */ int getTopicsCount(); /** - * - * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - java.util.List getTopicsOrBuilderList(); + java.util.List + getTopicsOrBuilderList(); /** - * - * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index); + com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( + int index); /** - * - * *
    * 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; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * 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; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java similarity index 74% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index c02987c8e..83b12b7b8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MessageStoragePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MessageStoragePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private MessageStoragePolicy( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allowedPersistenceRegions_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + allowedPersistenceRegions_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private MessageStoragePolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); @@ -104,27 +87,22 @@ private MessageStoragePolicy( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.LazyStringList allowedPersistenceRegions_; /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -134,15 +112,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string allowed_persistence_regions = 1; - * * @return A list containing the allowedPersistenceRegions. */ - public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { + public com.google.protobuf.ProtocolStringList + getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_; } /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -152,15 +128,12 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList()
    * 
* * repeated string allowed_persistence_regions = 1; - * * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -170,7 +143,6 @@ public int getAllowedPersistenceRegionsCount() {
    * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ @@ -178,8 +150,6 @@ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -189,16 +159,15 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
    * 
* * repeated string allowed_persistence_regions = 1; - * * @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); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,10 +179,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)); } unknownFields.writeTo(output); } @@ -240,16 +209,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.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 (!getAllowedPersistenceRegionsList() + .equals(other.getAllowedPersistenceRegionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,127 +238,118 @@ public int hashCode() { 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() @@ -398,15 +357,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +376,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_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 @@ -437,8 +397,7 @@ 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); + com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); @@ -453,39 +412,38 @@ public com.google.pubsub.v1.MessageStoragePolicy 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.MessageStoragePolicy) { - return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy) other); + return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other); } else { super.mergeFrom(other); return this; @@ -532,22 +490,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedPersistenceRegionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedPersistenceRegions_ = - new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); + allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -557,15 +509,13 @@ private void ensureAllowedPersistenceRegionsIsMutable() {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @return A list containing the allowedPersistenceRegions. */ - public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { + public com.google.protobuf.ProtocolStringList + getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_.getUnmodifiableView(); } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -575,15 +525,12 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList()
      * 
* * repeated string allowed_persistence_regions = 1; - * * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -593,7 +540,6 @@ public int getAllowedPersistenceRegionsCount() {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ @@ -601,8 +547,6 @@ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -612,16 +556,14 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @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); } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -631,23 +573,21 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde
      * 
* * repeated string allowed_persistence_regions = 1; - * * @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) { + public Builder setAllowedPersistenceRegions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedPersistenceRegionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -657,22 +597,20 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param value The allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllowedPersistenceRegions(java.lang.String value) { + public Builder addAllowedPersistenceRegions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedPersistenceRegionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(value); onChanged(); return this; } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -682,19 +620,18 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @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_); onChanged(); return this; } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -704,7 +641,6 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable
      *
      * repeated string allowed_persistence_regions = 1;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAllowedPersistenceRegions() {
@@ -714,8 +650,6 @@ public Builder clearAllowedPersistenceRegions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -725,23 +659,23 @@ public Builder clearAllowedPersistenceRegions() {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param value The bytes of the allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString value) { + public Builder addAllowedPersistenceRegionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(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); } @@ -751,12 +685,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(); } @@ -765,16 +699,16 @@ 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 { - return new MessageStoragePolicy(input, extensionRegistry); - } - }; + 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 { + return new MessageStoragePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -789,4 +723,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java similarity index 75% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index e606797dc..7eec02f6f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -35,13 +17,11 @@ public interface MessageStoragePolicyOrBuilder
    * 
* * repeated string allowed_persistence_regions = 1; - * * @return A list containing the allowedPersistenceRegions. */ - java.util.List getAllowedPersistenceRegionsList(); + java.util.List + getAllowedPersistenceRegionsList(); /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -51,13 +31,10 @@ public interface MessageStoragePolicyOrBuilder
    * 
* * repeated string allowed_persistence_regions = 1; - * * @return The count of allowedPersistenceRegions. */ int getAllowedPersistenceRegionsCount(); /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -67,14 +44,11 @@ public interface MessageStoragePolicyOrBuilder
    * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ java.lang.String getAllowedPersistenceRegions(int index); /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -84,9 +58,9 @@ public interface MessageStoragePolicyOrBuilder
    * 
* * repeated string allowed_persistence_regions = 1; - * * @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); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index f3c067c7d..fe8cc2b02 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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.EMPTY; @@ -44,15 +26,16 @@ private ModifyAckDeadlineRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModifyAckDeadlineRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModifyAckDeadlineRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,35 +55,33 @@ private ModifyAckDeadlineRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 24: - { - ackDeadlineSeconds_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ackIds_.add(s); - break; + subscription_ = s; + break; + } + case 24: { + + ackDeadlineSeconds_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ackIds_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +89,8 @@ private ModifyAckDeadlineRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); @@ -117,36 +99,28 @@ private ModifyAckDeadlineRequest( makeExtensionsImmutable(); } } - - 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; 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 @@ -155,32 +129,30 @@ 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 { @@ -191,42 +163,34 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int ACK_IDS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList ackIds_; /** - * - * *
    * 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. */ @@ -234,26 +198,22 @@ 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_; /** - * - * *
    * 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
@@ -266,7 +226,6 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
    * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -275,7 +234,6 @@ public int getAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,7 +245,8 @@ 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_); } @@ -310,7 +269,8 @@ 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; @@ -328,17 +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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,127 +325,118 @@ 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() @@ -491,15 +444,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -513,9 +467,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_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 @@ -534,8 +488,7 @@ 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); + com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; result.subscription_ = subscription_; if (((bitField0_ & 0x00000001) != 0)) { @@ -552,39 +505,38 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest 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.ModifyAckDeadlineRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest) other); + return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); } else { super.mergeFrom(other); return this; @@ -638,28 +590,23 @@ public Builder mergeFrom( } 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; @@ -668,24 +615,21 @@ 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 { @@ -693,121 +637,98 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * 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_.getUnmodifiableView(); } /** - * - * *
      * 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. */ @@ -815,90 +736,80 @@ 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) { + public Builder setAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); 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) { + public Builder addAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); 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_); 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() { @@ -908,32 +819,28 @@ public Builder clearAckIds() { 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) { + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); 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
@@ -946,7 +853,6 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -954,8 +860,6 @@ 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
@@ -968,19 +872,16 @@ public int getAckDeadlineSeconds() {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setAckDeadlineSeconds(int value) { - + ackDeadlineSeconds_ = value; onChanged(); 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
@@ -993,18 +894,17 @@ public Builder setAckDeadlineSeconds(int value) {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - + ackDeadlineSeconds_ = 0; 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); } @@ -1014,12 +914,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(); } @@ -1028,16 +928,16 @@ 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 { - return new ModifyAckDeadlineRequest(input, extensionRegistry); - } - }; + 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 { + return new ModifyAckDeadlineRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,4 +952,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 663ca36d9..934a38975 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,113 +1,76 @@ -/* - * Copyright 2020 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 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
@@ -120,7 +83,6 @@ public interface ModifyAckDeadlineRequestOrBuilder
    * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java similarity index 70% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index f3d869b47..4cc075d2c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModifyPushConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,35 +53,32 @@ private ModifyPushConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; + subscription_ = s; + break; + } + case 18: { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); } - case 18: - { - com.google.pubsub.v1.PushConfig.Builder subBuilder = null; - if (pushConfig_ != null) { - subBuilder = pushConfig_.toBuilder(); - } - pushConfig_ = - input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pushConfig_); - pushConfig_ = subBuilder.buildPartial(); - } - - break; + pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,42 +86,35 @@ private ModifyPushConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; 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 @@ -150,32 +123,30 @@ 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 { @@ -186,8 +157,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PUSH_CONFIG_FIELD_NUMBER = 2; private com.google.pubsub.v1.PushConfig pushConfig_; /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -196,9 +165,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 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 @@ -206,8 +173,6 @@ public boolean hasPushConfig() { return pushConfig_ != null; } /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -216,9 +181,7 @@ 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 @@ -226,8 +189,6 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -236,8 +197,7 @@ 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() { @@ -245,7 +205,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +216,8 @@ 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_); } @@ -277,7 +237,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (pushConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPushConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,18 +248,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -322,127 +284,118 @@ 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() @@ -450,15 +403,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +428,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 @@ -495,8 +449,7 @@ 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); + com.google.pubsub.v1.ModifyPushConfigRequest result = new com.google.pubsub.v1.ModifyPushConfigRequest(this); result.subscription_ = subscription_; if (pushConfigBuilder_ == null) { result.pushConfig_ = pushConfig_; @@ -511,39 +464,38 @@ public com.google.pubsub.v1.ModifyPushConfigRequest 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.ModifyPushConfigRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest) other); + return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -590,23 +542,19 @@ public Builder mergeFrom( 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; @@ -615,24 +563,21 @@ 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 { @@ -640,70 +585,57 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; @@ -711,13 +643,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { 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.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -726,17 +653,13 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString 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]; * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfigBuilder_ != null || pushConfig_ != null; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -745,23 +668,17 @@ 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.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -770,8 +687,7 @@ 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) { @@ -787,8 +703,6 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -797,10 +711,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(); onChanged(); @@ -811,8 +725,6 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV return this; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -821,16 +733,13 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV
      * 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 (pushConfig_ != null) { pushConfig_ = - com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial(); } else { pushConfig_ = value; } @@ -842,8 +751,6 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -852,8 +759,7 @@ 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() { if (pushConfigBuilder_ == null) { @@ -867,8 +773,6 @@ public Builder clearPushConfig() { return this; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -877,17 +781,14 @@ 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() { - + onChanged(); return getPushConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -896,21 +797,17 @@ 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.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -919,28 +816,24 @@ 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); } @@ -950,12 +843,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(); } @@ -964,16 +857,16 @@ 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 { - return new ModifyPushConfigRequest(input, extensionRegistry); - } - }; + 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 { + return new ModifyPushConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -988,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 10a208c31..3b80a1389 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 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 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.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -65,15 +38,11 @@ public interface ModifyPushConfigRequestOrBuilder
    * 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.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -82,15 +51,11 @@ public interface ModifyPushConfigRequestOrBuilder
    * 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.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -99,8 +64,7 @@ public interface ModifyPushConfigRequestOrBuilder
    * 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java similarity index 99% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index 4050e3e1a..9526c02ab 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java similarity index 64% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 4d0732319..266801fc9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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(); @@ -44,15 +26,16 @@ private PublishRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublishRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private PublishRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - messages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - messages_.add( - input.readMessage( - com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); - break; + topic_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + messages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + messages_.add( + input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private PublishRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -113,36 +94,28 @@ private PublishRequest( makeExtensionsImmutable(); } } - - 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; 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 @@ -151,32 +124,30 @@ 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 { @@ -187,84 +158,64 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int MESSAGES_FIELD_NUMBER = 2; 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; @@ -276,7 +227,8 @@ 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_); } @@ -296,7 +248,8 @@ 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -306,15 +259,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,126 +292,118 @@ 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() @@ -464,17 +411,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) { getMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +437,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 @@ -531,39 +478,38 @@ public com.google.pubsub.v1.PublishRequest 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.PublishRequest) { - return mergeFrom((com.google.pubsub.v1.PublishRequest) other); + return mergeFrom((com.google.pubsub.v1.PublishRequest)other); } else { super.mergeFrom(other); return this; @@ -594,10 +540,9 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000001); - messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessagesFieldBuilder() - : null; + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); } @@ -631,28 +576,23 @@ public Builder mergeFrom( } 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; @@ -661,24 +601,21 @@ 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 { @@ -686,101 +623,80 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } private java.util.List messages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000001; - } + } } 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) { @@ -790,15 +706,11 @@ 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) { @@ -808,15 +720,11 @@ 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) { @@ -826,17 +734,14 @@ 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(); @@ -850,15 +755,11 @@ public Builder setMessages(int index, 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 setMessages( int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { @@ -872,15 +773,11 @@ 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) { @@ -896,17 +793,14 @@ 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(); @@ -920,17 +814,14 @@ public Builder addMessages(int index, 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(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()); @@ -941,15 +832,11 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderFor 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) { @@ -963,21 +850,18 @@ 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); @@ -985,15 +869,11 @@ 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) { @@ -1006,15 +886,11 @@ 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) { @@ -1027,50 +903,39 @@ 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 { @@ -1078,69 +943,56 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde } } /** - * - * *
      * 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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -1150,12 +1002,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(); } @@ -1164,16 +1016,16 @@ 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 { - return new PublishRequest(input, extensionRegistry); - } - }; + 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 { + return new PublishRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1188,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..96eba7dc9 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 25caaf8bc..ee06a2eae 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublishResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private PublishResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - messageIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - messageIds_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + messageIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + messageIds_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private PublishResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { messageIds_ = messageIds_.getUnmodifiableView(); @@ -104,27 +87,22 @@ private PublishResponse( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.LazyStringList messageIds_; /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -132,15 +110,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string message_ids = 1; - * * @return A list containing the messageIds. */ - public com.google.protobuf.ProtocolStringList getMessageIdsList() { + public com.google.protobuf.ProtocolStringList + getMessageIdsList() { return messageIds_; } /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -148,15 +124,12 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() {
    * 
* * repeated string message_ids = 1; - * * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); } /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -164,7 +137,6 @@ public int getMessageIdsCount() {
    * 
* * repeated string message_ids = 1; - * * @param index The index of the element to return. * @return The messageIds at the given index. */ @@ -172,8 +144,6 @@ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -181,16 +151,15 @@ public java.lang.String getMessageIds(int index) {
    * 
* * repeated string message_ids = 1; - * * @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; @@ -202,7 +171,8 @@ 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)); } @@ -231,14 +201,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -259,126 +230,118 @@ 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() @@ -386,15 +349,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -404,9 +368,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_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 @@ -440,39 +404,38 @@ public com.google.pubsub.v1.PublishResponse 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.PublishResponse) { - return mergeFrom((com.google.pubsub.v1.PublishResponse) other); + return mergeFrom((com.google.pubsub.v1.PublishResponse)other); } else { super.mergeFrom(other); return this; @@ -519,21 +482,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList messageIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMessageIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messageIds_ = new com.google.protobuf.LazyStringArrayList(messageIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -541,15 +499,13 @@ private void ensureMessageIdsIsMutable() {
      * 
* * repeated string message_ids = 1; - * * @return A list containing the messageIds. */ - public com.google.protobuf.ProtocolStringList getMessageIdsList() { + public com.google.protobuf.ProtocolStringList + getMessageIdsList() { return messageIds_.getUnmodifiableView(); } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -557,15 +513,12 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() {
      * 
* * repeated string message_ids = 1; - * * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -573,7 +526,6 @@ public int getMessageIdsCount() {
      * 
* * repeated string message_ids = 1; - * * @param index The index of the element to return. * @return The messageIds at the given index. */ @@ -581,8 +533,6 @@ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -590,16 +540,14 @@ public java.lang.String getMessageIds(int index) {
      * 
* * repeated string message_ids = 1; - * * @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); } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -607,23 +555,21 @@ public com.google.protobuf.ByteString getMessageIdsBytes(int index) {
      * 
* * repeated string message_ids = 1; - * * @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) { + public Builder setMessageIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdsIsMutable(); + throw new NullPointerException(); + } + ensureMessageIdsIsMutable(); messageIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -631,22 +577,20 @@ public Builder setMessageIds(int index, java.lang.String value) {
      * 
* * repeated string message_ids = 1; - * * @param value The messageIds to add. * @return This builder for chaining. */ - public Builder addMessageIds(java.lang.String value) { + public Builder addMessageIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdsIsMutable(); + throw new NullPointerException(); + } + ensureMessageIdsIsMutable(); messageIds_.add(value); onChanged(); return this; } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -654,19 +598,18 @@ public Builder addMessageIds(java.lang.String value) {
      * 
* * repeated string message_ids = 1; - * * @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_); onChanged(); return this; } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -674,7 +617,6 @@ public Builder addAllMessageIds(java.lang.Iterable values) {
      * 
* * repeated string message_ids = 1; - * * @return This builder for chaining. */ public Builder clearMessageIds() { @@ -684,8 +626,6 @@ public Builder clearMessageIds() { return this; } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -693,23 +633,23 @@ public Builder clearMessageIds() {
      * 
* * repeated string message_ids = 1; - * * @param value The bytes of the messageIds to add. * @return This builder for chaining. */ - public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) { + public Builder addMessageIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMessageIdsIsMutable(); messageIds_.add(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); } @@ -719,12 +659,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(); } @@ -733,16 +673,16 @@ 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 { - return new PublishResponse(input, extensionRegistry); - } - }; + 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 { + return new PublishResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -757,4 +697,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 27dbe63f8..a7b56d66f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -33,13 +15,11 @@ public interface PublishResponseOrBuilder
    * 
* * repeated string message_ids = 1; - * * @return A list containing the messageIds. */ - java.util.List getMessageIdsList(); + java.util.List + getMessageIdsList(); /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -47,13 +27,10 @@ public interface PublishResponseOrBuilder
    * 
* * repeated string message_ids = 1; - * * @return The count of messageIds. */ int getMessageIdsCount(); /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -61,14 +38,11 @@ public interface PublishResponseOrBuilder
    * 
* * repeated string message_ids = 1; - * * @param index The index of the element to return. * @return The messageIds at the given index. */ java.lang.String getMessageIds(int index); /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -76,9 +50,9 @@ public interface PublishResponseOrBuilder
    * 
* * repeated string message_ids = 1; - * * @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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index f9243a265..56e0332fd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 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.
@@ -34,16 +17,15 @@
  *
  * 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_ = "";
@@ -52,15 +34,16 @@ private PubsubMessage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PubsubMessage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PubsubMessage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,62 +63,56 @@ private PubsubMessage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              data_ = input.readBytes();
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                attributes_ =
-                    com.google.protobuf.MapField.newMapField(
-                        AttributesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry attributes__ =
-                  input.readMessage(
-                      AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue());
-              break;
+          case 10: {
+
+            data_ = input.readBytes();
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              attributes_ = com.google.protobuf.MapField.newMapField(
+                  AttributesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            com.google.protobuf.MapEntry
+            attributes__ = input.readMessage(
+                AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            attributes_.getMutableMap().put(
+                attributes__.getKey(), attributes__.getValue());
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              messageId_ = s;
-              break;
+            messageId_ = s;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (publishTime_ != null) {
+              subBuilder = publishTime_.toBuilder();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (publishTime_ != null) {
-                subBuilder = publishTime_.toBuilder();
-              }
-              publishTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(publishTime_);
-                publishTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            publishTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(publishTime_);
+              publishTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              orderingKey_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            orderingKey_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -143,51 +120,47 @@ private PubsubMessage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       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);
   }
 
   public static final int DATA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString data_;
   /**
-   *
-   *
    * 
    * The message data field. If this field is empty, the message must contain
    * at least one attribute.
    * 
* * bytes data = 1; - * * @return The data. */ @java.lang.Override @@ -196,23 +169,24 @@ 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 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< + 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, + ""); } - - private com.google.protobuf.MapField attributes_; - - private com.google.protobuf.MapField internalGetAttributes() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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_; } @@ -221,8 +195,6 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
    * 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
@@ -231,22 +203,22 @@ public int getAttributesCount() {
    *
    * map<string, string> attributes = 2;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * 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
@@ -256,12 +228,11 @@ public java.util.Map getAttributes() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
+
   public java.util.Map getAttributesMap() {
     return internalGetAttributes().getMap();
   }
   /**
-   *
-   *
    * 
    * 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
@@ -271,17 +242,16 @@ public java.util.Map getAttributesMap() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
+
   public java.lang.String getAttributesOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAttributes().getMap();
+      java.lang.String key,
+      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;
   }
   /**
-   *
-   *
    * 
    * 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
@@ -291,11 +261,12 @@ public java.lang.String getAttributesOrDefault(
    * map<string, string> attributes = 2;
    */
   @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();
     }
@@ -305,8 +276,6 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
   public static final int MESSAGE_ID_FIELD_NUMBER = 3;
   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
@@ -315,7 +284,6 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
    * 
* * string message_id = 3; - * * @return The messageId. */ @java.lang.Override @@ -324,15 +292,14 @@ 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
@@ -341,15 +308,16 @@ 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 { @@ -360,8 +328,6 @@ public com.google.protobuf.ByteString getMessageIdBytes() { 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
@@ -369,7 +335,6 @@ public com.google.protobuf.ByteString getMessageIdBytes() {
    * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -377,8 +342,6 @@ public boolean hasPublishTime() { return publishTime_ != null; } /** - * - * *
    * 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
@@ -386,7 +349,6 @@ public boolean hasPublishTime() {
    * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @return The publishTime. */ @java.lang.Override @@ -394,8 +356,6 @@ 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
@@ -412,8 +372,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
   public static final int ORDERING_KEY_FIELD_NUMBER = 5;
   private volatile java.lang.Object orderingKey_;
   /**
-   *
-   *
    * 
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -424,7 +382,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * string ordering_key = 5; - * * @return The orderingKey. */ @java.lang.Override @@ -433,15 +390,14 @@ 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; } } /** - * - * *
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -452,15 +408,16 @@ public java.lang.String getOrderingKey() {
    * 
* * string ordering_key = 5; - * * @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 { @@ -469,7 +426,6 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -481,12 +437,17 @@ 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_); } @@ -506,23 +467,25 @@ 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 (publishTime_ != null) { - 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_); @@ -535,21 +498,26 @@ 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -580,103 +548,97 @@ 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.
@@ -690,43 +652,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         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.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         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()
@@ -734,15 +696,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -763,9 +726,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
@@ -804,39 +767,38 @@ public com.google.pubsub.v1.PubsubMessage 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.PubsubMessage) {
-        return mergeFrom((com.google.pubsub.v1.PubsubMessage) other);
+        return mergeFrom((com.google.pubsub.v1.PubsubMessage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -848,7 +810,8 @@ 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());
       if (!other.getMessageId().isEmpty()) {
         messageId_ = other.messageId_;
         onChanged();
@@ -888,20 +851,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; - * * @return The data. */ @java.lang.Override @@ -909,64 +868,56 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * - * *
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; - * * @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(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** - * - * *
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; - * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; } - private com.google.protobuf.MapField attributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField - internalGetAttributes() { + internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } - private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged(); - ; + internalGetMutableAttributes() { + onChanged();; 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(); @@ -978,8 +929,6 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
      * 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
@@ -988,22 +937,22 @@ public int getAttributesCount() {
      *
      * map<string, string> attributes = 2;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1013,12 +962,11 @@ public java.util.Map getAttributes() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
+
     public java.util.Map getAttributesMap() {
       return internalGetAttributes().getMap();
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1028,17 +976,16 @@ public java.util.Map getAttributesMap() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
+
     public java.lang.String getAttributesOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAttributes().getMap();
+        java.lang.String key,
+        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;
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1048,11 +995,12 @@ public java.lang.String getAttributesOrDefault(
      * map<string, string> attributes = 2;
      */
     @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();
       }
@@ -1060,12 +1008,11 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
     }
 
     public Builder clearAttributes() {
-      internalGetMutableAttributes().getMutableMap().clear();
+      internalGetMutableAttributes().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1074,21 +1021,23 @@ public Builder clearAttributes() {
      *
      * map<string, string> attributes = 2;
      */
-    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() {
       return internalGetMutableAttributes().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1097,20 +1046,19 @@ public java.util.Map getMutableAttributes()
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAttributes(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    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");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableAttributes().getMutableMap().put(key, value);
+      internalGetMutableAttributes().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1119,15 +1067,16 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAllAttributes(java.util.Map values) {
-      internalGetMutableAttributes().getMutableMap().putAll(values);
+
+    public Builder putAllAttributes(
+        java.util.Map values) {
+      internalGetMutableAttributes().getMutableMap()
+          .putAll(values);
       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
@@ -1136,13 +1085,13 @@ public Builder putAllAttributes(java.util.Map
      *
      * 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;
@@ -1151,8 +1100,6 @@ 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
@@ -1161,14 +1108,15 @@ 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 { @@ -1176,8 +1124,6 @@ public com.google.protobuf.ByteString getMessageIdBytes() { } } /** - * - * *
      * 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
@@ -1186,22 +1132,20 @@ public com.google.protobuf.ByteString getMessageIdBytes() {
      * 
* * string message_id = 3; - * * @param value The messageId to set. * @return This builder for chaining. */ - public Builder setMessageId(java.lang.String value) { + public Builder setMessageId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + messageId_ = value; 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
@@ -1210,18 +1154,15 @@ public Builder setMessageId(java.lang.String value) {
      * 
* * string message_id = 3; - * * @return This builder for chaining. */ public Builder clearMessageId() { - + messageId_ = getDefaultInstance().getMessageId(); 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
@@ -1230,16 +1171,16 @@ 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) { + public Builder setMessageIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + messageId_ = value; onChanged(); return this; @@ -1247,13 +1188,8 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { 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
@@ -1261,15 +1197,12 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return publishTimeBuilder_ != null || publishTime_ != null; } /** - * - * *
      * 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
@@ -1277,21 +1210,16 @@ 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
@@ -1314,8 +1242,6 @@ 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
@@ -1324,7 +1250,8 @@ 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();
         onChanged();
@@ -1335,8 +1262,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
       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
@@ -1349,9 +1274,7 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
         if (publishTime_ != null) {
           publishTime_ =
-              com.google.protobuf.Timestamp.newBuilder(publishTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(publishTime_).mergeFrom(value).buildPartial();
         } else {
           publishTime_ = value;
         }
@@ -1363,8 +1286,6 @@ 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
@@ -1385,8 +1306,6 @@ 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
@@ -1396,13 +1315,11 @@ public Builder clearPublishTime() {
      * .google.protobuf.Timestamp publish_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
-
+      
       onChanged();
       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
@@ -1415,14 +1332,11 @@ 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
@@ -1432,17 +1346,14 @@ 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_;
@@ -1450,8 +1361,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
 
     private java.lang.Object orderingKey_ = "";
     /**
-     *
-     *
      * 
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1462,13 +1371,13 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * string ordering_key = 5; - * * @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; @@ -1477,8 +1386,6 @@ public java.lang.String getOrderingKey() { } } /** - * - * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1489,14 +1396,15 @@ public java.lang.String getOrderingKey() {
      * 
* * string ordering_key = 5; - * * @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 { @@ -1504,8 +1412,6 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { } } /** - * - * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1516,22 +1422,20 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() {
      * 
* * string ordering_key = 5; - * * @param value The orderingKey to set. * @return This builder for chaining. */ - public Builder setOrderingKey(java.lang.String value) { + public Builder setOrderingKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderingKey_ = value; onChanged(); return this; } /** - * - * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1542,18 +1446,15 @@ public Builder setOrderingKey(java.lang.String value) {
      * 
* * string ordering_key = 5; - * * @return This builder for chaining. */ public Builder clearOrderingKey() { - + orderingKey_ = getDefaultInstance().getOrderingKey(); onChanged(); return this; } /** - * - * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1564,23 +1465,23 @@ public Builder clearOrderingKey() {
      * 
* * string ordering_key = 5; - * * @param value The bytes for orderingKey to set. * @return This builder for chaining. */ - public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { + public Builder setOrderingKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderingKey_ = 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); } @@ -1590,12 +1491,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(); } @@ -1604,16 +1505,16 @@ 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 { - return new PubsubMessage(input, extensionRegistry); - } - }; + 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 { + return new PubsubMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1628,4 +1529,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java similarity index 79% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index c06beec09..7d3aaaf26 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,45 +1,24 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * The message data field. If this field is empty, the message must contain
    * at least one attribute.
    * 
* * bytes data = 1; - * * @return The data. */ com.google.protobuf.ByteString getData(); /** - * - * *
    * 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
@@ -50,8 +29,6 @@ public interface PubsubMessageOrBuilder
    */
   int getAttributesCount();
   /**
-   *
-   *
    * 
    * 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
@@ -60,13 +37,15 @@ public interface PubsubMessageOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  boolean containsAttributes(java.lang.String key);
-  /** Use {@link #getAttributesMap()} instead. */
+  boolean containsAttributes(
+      java.lang.String key);
+  /**
+   * Use {@link #getAttributesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAttributes();
+  java.util.Map
+  getAttributes();
   /**
-   *
-   *
    * 
    * 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
@@ -75,10 +54,9 @@ public interface PubsubMessageOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  java.util.Map getAttributesMap();
+  java.util.Map
+  getAttributesMap();
   /**
-   *
-   *
    * 
    * 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
@@ -89,13 +67,11 @@ public interface PubsubMessageOrBuilder
    */
 
   /* nullable */
-  java.lang.String getAttributesOrDefault(
+java.lang.String getAttributesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * 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
@@ -104,11 +80,11 @@ java.lang.String getAttributesOrDefault(
    *
    * map<string, string> attributes = 2;
    */
-  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
@@ -117,13 +93,10 @@ java.lang.String getAttributesOrDefault(
    * 
* * 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
@@ -132,14 +105,12 @@ java.lang.String getAttributesOrDefault(
    * 
* * 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
@@ -147,13 +118,10 @@ java.lang.String getAttributesOrDefault(
    * 
* * .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
@@ -161,13 +129,10 @@ java.lang.String getAttributesOrDefault(
    * 
* * .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
@@ -179,8 +144,6 @@ java.lang.String getAttributesOrDefault(
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -191,13 +154,10 @@ java.lang.String getAttributesOrDefault(
    * 
* * string ordering_key = 5; - * * @return The orderingKey. */ java.lang.String getOrderingKey(); /** - * - * *
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -208,8 +168,8 @@ java.lang.String getAttributesOrDefault(
    * 
* * string ordering_key = 5; - * * @return The bytes for orderingKey. */ - com.google.protobuf.ByteString getOrderingKeyBytes(); + com.google.protobuf.ByteString + getOrderingKeyBytes(); } 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 new file mode 100644 index 000000000..006fa3771 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -0,0 +1,952 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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_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_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_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\";\n\024MessageStoragePolicy\022#\n\033allowed_p" + + "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" + + "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" + + "gle.pubsub.v1.Encoding\"\303\003\n\005Topic\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" + + "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" + + "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" + + "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" + + "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." + + "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" + + "\022=\n\032message_retention_duration\030\010 \001(\0132\031.g" + + "oogle.protobuf.Duration\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pub" + + "sub.googleapis.com/Topic\022!projects/{proj" + + "ect}/topics/{topic}\022\017_deleted-topic_\"\361\001\n" + + "\rPubsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattribut" + + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" + + "e.AttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attribu" + + "tesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"E\n\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" + + "A\035\n\033pubsub.googleapis.com/Topic\"w\n\022Updat" + + "eTopicRequest\022+\n\005topic\030\001 \001(\0132\027.google.pu" + + "bsub.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\016Publ" + + "ishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + + "b.googleapis.com/Topic\0226\n\010messages\030\002 \003(\013" + + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"&" + + "\n\017PublishResponse\022\023\n\013message_ids\030\001 \003(\t\"\200" + + "\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB3\340" + + "A\002\372A-\n+cloudresourcemanager.googleapis.c" + + "om/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006topic" + + "s\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n\017next" + + "_page_token\030\002 \001(\t\"z\n\035ListTopicSubscripti" + + "onsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + + "b.googleapis.com/Topic\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListTopicSubscr" + + "iptionsResponse\022>\n\rsubscriptions\030\001 \003(\tB\'" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "\027\n\017next_page_token\030\002 \001(\t\"v\n\031ListTopicSna" + + "pshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032ListTopicSna" + + "pshotsResponse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"H\n\022DeleteTopicRequest" + + "\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleap" + + "is.com/Topic\"]\n\031DetachSubscriptionReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\"\034\n\032DetachSub" + + "scriptionResponse\"\260\006\n\014Subscription\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\0221\n\013push_config" + + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" + + "ack_deadline_seconds\030\005 \001(\005\022\035\n\025retain_ack" + + "ed_messages\030\007 \001(\010\022=\n\032message_retention_d" + + "uration\030\010 \001(\0132\031.google.protobuf.Duration" + + "\022:\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subs" + + "cription.LabelsEntry\022\037\n\027enable_message_o" + + "rdering\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\013" + + "2\".google.pubsub.v1.ExpirationPolicy\022\016\n\006" + + "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" + + "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" + + "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" + + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_ex" + + "actly_once_delivery\030\020 \001(\010\022H\n topic_messa" + + "ge_retention_duration\030\021 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub." + + "googleapis.com/Subscription\022/projects/{p" + + "roject}/subscriptions/{subscription}\"u\n\013" + + "RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\0222\n\017maximum_backo" + + "ff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020D" + + "eadLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001" + + "(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Exp" + + "irationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.prot" + + "obuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_end" + + "point\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google" + + ".pubsub.v1.PushConfig.AttributesEntry\022<\n" + + "\noidc_token\030\003 \001(\0132&.google.pubsub.v1.Pus" + + "hConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025serv" + + "ice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(" + + "\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"m\n" + + "\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007mess" + + "age\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessa" + + "ge\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSubsc" + + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" + + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" + + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscrip" + + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubscr" + + "iptions\030\001 \003(\0132\036.google.pubsub.v1.Subscri" + + "ption\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Delete" + + "SubscriptionRequest\022@\n\014subscription\030\001 \001(" + + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" + + "ption\"\223\001\n\027ModifyPushConfigRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\0226\n\013push_config\030\002 \001(\013" + + "2\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013" + + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" + + "$\n\"pubsub.googleapis.com/Subscription\022!\n" + + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_" + + "messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021r" + + "eceived_messages\030\001 \003(\0132!.google.pubsub.v" + + "1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlineR" + + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" + + "bsub.googleapis.com/Subscription\022\024\n\007ack_" + + "ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003" + + " \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"" + + "\251\002\n\024StreamingPullRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_de" + + "adline_seconds\030\003 \003(\005\022\037\n\027modify_deadline_" + + "ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_sec" + + "onds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030ma" + + "x_outstanding_messages\030\007 \001(\003\022\035\n\025max_outs" + + "tanding_bytes\030\010 \001(\003\"\262\005\n\025StreamingPullRes" + + "ponse\022<\n\021received_messages\030\001 \003(\0132!.googl" + + "e.pubsub.v1.ReceivedMessage\022a\n\030acknowled" + + "ge_confirmation\030\005 \001(\0132?.google.pubsub.v1" + + ".StreamingPullResponse.AcknowledgeConfir" + + "mation\022o\n modify_ack_deadline_confirmati" + + "on\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" + + "lResponse.ModifyAckDeadlineConfirmation\022" + + "_\n\027subscription_properties\030\004 \001(\0132>.googl" + + "e.pubsub.v1.StreamingPullResponse.Subscr" + + "iptionProperties\032j\n\027AcknowledgeConfirmat" + + "ion\022\023\n\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_" + + "ids\030\002 \003(\tB\002\010\001\022\035\n\021unordered_ack_ids\030\003 \003(\t" + + "B\002\010\001\032Q\n\035ModifyAckDeadlineConfirmation\022\023\n" + + "\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_ids\030\002 " + + "\003(\tB\002\010\001\032a\n\026SubscriptionProperties\022%\n\035exa" + + "ctly_once_delivery_enabled\030\001 \001(\010\022 \n\030mess" + + "age_ordering_enabled\030\002 \001(\010J\004\010\002\020\003\"\203\002\n\025Cre" + + "ateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A " + + "\n\036pubsub.googleapis.com/Snapshot\022@\n\014subs" + + "cription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\022C\n\006labels\030\003 \003(\01323.goo" + + "gle.pubsub.v1.CreateSnapshotRequest.Labe" + + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest" + + "\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sn" + + "apshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014" + + "\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub" + + ".googleapis.com/Topic\022/\n\013expire_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\0226\n\006labels" + + "\030\004 \003(\0132&.google.pubsub.v1.Snapshot.Label" + + "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" + + "m/Snapshot\022\'projects/{project}/snapshots" + + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" + + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" + + "om/Snapshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007" + + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + + "ger.googleapis.com/Project\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapsho" + + "tsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.google.p" + + "ubsub.v1.Snapshot\022\027\n\017next_page_token\030\002 \001" + + "(\t\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030" + + "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" + + "pshot\"\276\001\n\013SeekRequest\022@\n\014subscription\030\001 " + + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" + + "ription\022*\n\004time\030\002 \001(\0132\032.google.protobuf." + + "TimestampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubs" + + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" + + "\n\014SeekResponse2\243\013\n\tPublisher\022q\n\013CreateTo" + + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" + + "bsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=project" + + "s/*/topics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$" + + ".google.pubsub.v1.UpdateTopicRequest\032\027.g" + + "oogle.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topi" + + "c.name=projects/*/topics/*}:\001*\022\223\001\n\007Publi" + + "sh\022 .google.pubsub.v1.PublishRequest\032!.g" + + "oogle.pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"" + + "\'/v1/{topic=projects/*/topics/*}:publish" + + ":\001*\332A\016topic,messages\022w\n\010GetTopic\022!.googl" + + "e.pubsub.v1.GetTopicRequest\032\027.google.pub" + + "sub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{topic=project" + + "s/*/topics/*}\332A\005topic\022\212\001\n\nListTopics\022#.g" + + "oogle.pubsub.v1.ListTopicsRequest\032$.goog" + + "le.pubsub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022" + + "\037/v1/{project=projects/*}/topics\332A\007proje" + + "ct\022\272\001\n\026ListTopicSubscriptions\022/.google.p" + + "ubsub.v1.ListTopicSubscriptionsRequest\0320" + + ".google.pubsub.v1.ListTopicSubscriptions" + + "Response\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/" + + "topics/*}/subscriptions\332A\005topic\022\252\001\n\022List" + + "TopicSnapshots\022+.google.pubsub.v1.ListTo" + + "picSnapshotsRequest\032,.google.pubsub.v1.L" + + "istTopicSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{" + + "topic=projects/*/topics/*}/snapshots\332A\005t" + + "opic\022|\n\013DeleteTopic\022$.google.pubsub.v1.D" + + "eleteTopicRequest\032\026.google.protobuf.Empt" + + "y\"/\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" + + "*}\332A\005topic\022\255\001\n\022DetachSubscription\022+.goog" + + "le.pubsub.v1.DetachSubscriptionRequest\032," + + ".google.pubsub.v1.DetachSubscriptionResp" + + "onse\"<\202\323\344\223\0026\"4/v1/{subscription=projects" + + "/*/subscriptions/*}:detach\032p\312A\025pubsub.go" + + "ogleapis.com\322AUhttps://www.googleapis.co" + + "m/auth/cloud-platform,https://www.google" + + "apis.com/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022" + + "CreateSubscription\022\036.google.pubsub.v1.Su" + + "bscription\032\036.google.pubsub.v1.Subscripti" + + "on\"^\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" + + "ptions/*}:\001*\332A+name,topic,push_config,ac" + + "k_deadline_seconds\022\241\001\n\017GetSubscription\022(" + + ".google.pubsub.v1.GetSubscriptionRequest" + + "\032\036.google.pubsub.v1.Subscription\"D\202\323\344\223\002/" + + "\022-/v1/{subscription=projects/*/subscript" + + "ions/*}\332A\014subscription\022\240\001\n\022UpdateSubscri" + + "ption\022+.google.pubsub.v1.UpdateSubscript" + + "ionRequest\032\036.google.pubsub.v1.Subscripti" + + "on\"=\202\323\344\223\002722/v1/{subscription.name=proje" + + "cts/*/subscriptions/*}:\001*\022\246\001\n\021ListSubscr" + + "iptions\022*.google.pubsub.v1.ListSubscript" + + "ionsRequest\032+.google.pubsub.v1.ListSubsc" + + "riptionsResponse\"8\202\323\344\223\002(\022&/v1/{project=p" + + "rojects/*}/subscriptions\332A\007project\022\237\001\n\022D" + + "eleteSubscription\022+.google.pubsub.v1.Del" + + "eteSubscriptionRequest\032\026.google.protobuf" + + ".Empty\"D\202\323\344\223\002/*-/v1/{subscription=projec" + + "ts/*/subscriptions/*}\332A\014subscription\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.Mo" + + "difyAckDeadlineRequest\032\026.google.protobuf" + + ".Empty\"v\202\323\344\223\002D\"?/v1/{subscription=projec" + + "ts/*/subscriptions/*}:modifyAckDeadline:" + + "\001*\332A)subscription,ack_ids,ack_deadline_s" + + "econds\022\250\001\n\013Acknowledge\022$.google.pubsub.v" + + "1.AcknowledgeRequest\032\026.google.protobuf.E" + + "mpty\"[\202\323\344\223\002>\"9/v1/{subscription=projects" + + "/*/subscriptions/*}:acknowledge:\001*\332A\024sub" + + "scription,ack_ids\022\320\001\n\004Pull\022\035.google.pubs" + + "ub.v1.PullRequest\032\036.google.pubsub.v1.Pul" + + "lResponse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:pull:\001*\332A,subs" + + "cription,return_immediately,max_messages" + + "\332A\031subscription,max_messages\022f\n\rStreamin" + + "gPull\022&.google.pubsub.v1.StreamingPullRe" + + "quest\032\'.google.pubsub.v1.StreamingPullRe" + + "sponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).goog" + + "le.pubsub.v1.ModifyPushConfigRequest\032\026.g" + + "oogle.protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subsc" + + "ription=projects/*/subscriptions/*}:modi" + + "fyPushConfig:\001*\332A\030subscription,push_conf" + + "ig\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1.Ge" + + "tSnapshotRequest\032\032.google.pubsub.v1.Snap" + + "shot\"8\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/s" + + "napshots/*}\332A\010snapshot\022\226\001\n\rListSnapshots" + + "\022&.google.pubsub.v1.ListSnapshotsRequest" + + "\032\'.google.pubsub.v1.ListSnapshotsRespons" + + "e\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" + + "shots\332A\007project\022\227\001\n\016CreateSnapshot\022\'.goo" + + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" + + "ogle.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{na" + + "me=projects/*/snapshots/*}:\001*\332A\021name,sub" + + "scription\022\214\001\n\016UpdateSnapshot\022\'.google.pu" + + "bsub.v1.UpdateSnapshotRequest\032\032.google.p" + + "ubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot" + + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" + + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" + + "pshotRequest\032\026.google.protobuf.Empty\"8\202\323" + + "\344\223\002\'*%/v1/{snapshot=projects/*/snapshots" + + "/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubsub." + + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" + + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" + + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" + + ".googleapis.com\322AUhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/pubsubB\256\001\n\024com.google.p" + + "ubsub.v1B\013PubsubProtoP\001Z6google.golang.o" + + "rg/genproto/googleapis/pubsub/v1;pubsub\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", }); + 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", }); + internal_static_google_pubsub_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(2); + 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", }); + 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(3); + 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(4); + 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(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(10); + 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(11); + 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(12); + 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(13); + 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(14); + 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(15); + 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(16); + 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(17); + 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", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", "Labels", "EnableMessageOrdering", "ExpirationPolicy", "Filter", "DeadLetterPolicy", "RetryPolicy", "Detached", "EnableExactlyOnceDelivery", "TopicMessageRetentionDuration", }); + 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(18); + 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(19); + 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(20); + 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(21); + 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", "AuthenticationMethod", }); + 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_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); + 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_ReceivedMessage_descriptor = + getDescriptor().getMessageTypes().get(22); + 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(23); + 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(24); + 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(25); + 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(26); + 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(27); + 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(28); + 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(29); + 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(30); + 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(31); + 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(32); + 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(33); + 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(34); + 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", }); + 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", }); + 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(35); + 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(36); + 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(37); + 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(38); + 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(39); + 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(40); + 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(41); + 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(42); + 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(43); + 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 81ff04645..360d03fbb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PullRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +53,29 @@ private PullRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 16: - { - returnImmediately_ = input.readBool(); - break; - } - case 24: - { - maxMessages_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subscription_ = s; + break; + } + case 16: { + + returnImmediately_ = input.readBool(); + break; + } + case 24: { + + maxMessages_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,22 +83,22 @@ private PullRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } @@ -124,17 +106,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int SUBSCRIPTION_FIELD_NUMBER = 1; 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 @@ -143,32 +120,30 @@ 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 { @@ -179,8 +154,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2; 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`
@@ -191,24 +164,19 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 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=1035 + * 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=1035 * @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_; /** - * - * *
    * 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
@@ -216,7 +184,6 @@ public boolean getReturnImmediately() {
    * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxMessages. */ @java.lang.Override @@ -225,7 +192,6 @@ public int getMaxMessages() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +203,8 @@ 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_); } @@ -260,10 +227,12 @@ 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,16 +242,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,7 +269,8 @@ 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) + unknownFields.hashCode(); @@ -305,126 +278,118 @@ 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() @@ -432,15 +397,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +420,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 @@ -487,39 +453,38 @@ public com.google.pubsub.v1.PullRequest 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.PullRequest) { - return mergeFrom((com.google.pubsub.v1.PullRequest) other); + return mergeFrom((com.google.pubsub.v1.PullRequest)other); } else { super.mergeFrom(other); return this; @@ -569,23 +534,19 @@ public Builder mergeFrom( 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; @@ -594,24 +555,21 @@ 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 { @@ -619,79 +577,64 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); 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`
@@ -702,22 +645,16 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * 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=1035 + * 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=1035 * @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`
@@ -728,25 +665,19 @@ public boolean getReturnImmediately() {
      * 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=1035 + * 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=1035 * @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; onChanged(); 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`
@@ -757,26 +688,20 @@ public Builder setReturnImmediately(boolean value) {
      * 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=1035 + * 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=1035 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearReturnImmediately() { - + @java.lang.Deprecated public Builder clearReturnImmediately() { + 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
@@ -784,7 +709,6 @@ public Builder clearReturnImmediately() {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxMessages. */ @java.lang.Override @@ -792,8 +716,6 @@ 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
@@ -801,19 +723,16 @@ public int getMaxMessages() {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The maxMessages to set. * @return This builder for chaining. */ public Builder setMaxMessages(int value) { - + maxMessages_ = value; onChanged(); 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
@@ -821,18 +740,17 @@ public Builder setMaxMessages(int value) {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMaxMessages() { - + maxMessages_ = 0; 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); } @@ -842,12 +760,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(); } @@ -856,16 +774,16 @@ 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 { - return new PullRequest(input, extensionRegistry); - } - }; + 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 { + return new PullRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -880,4 +798,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 962ab3955..cfdf30e66 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 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 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`
@@ -67,19 +40,14 @@ public interface PullRequestOrBuilder
    * 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=1035 + * 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=1035 * @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
@@ -87,7 +55,6 @@ public interface PullRequestOrBuilder
    * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxMessages. */ int getMaxMessages(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java similarity index 78% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index f0482b4c3..9c7d2825a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PullResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private PullResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - receivedMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - receivedMessages_.add( - input.readMessage( - com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + receivedMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + receivedMessages_.add( + input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private PullResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); @@ -105,27 +87,22 @@ private PullResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List receivedMessages_; /** - * - * *
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -140,8 +117,6 @@ public java.util.List getReceivedMessagesL
     return receivedMessages_;
   }
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -152,13 +127,11 @@ public java.util.List getReceivedMessagesL
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getReceivedMessagesOrBuilderList() {
     return receivedMessages_;
   }
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -173,8 +146,6 @@ public int getReceivedMessagesCount() {
     return receivedMessages_.size();
   }
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -189,8 +160,6 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
     return receivedMessages_.get(index);
   }
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -201,12 +170,12 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
   @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;
@@ -218,7 +187,8 @@ 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));
     }
@@ -232,7 +202,8 @@ 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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -242,14 +213,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.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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -270,126 +242,118 @@ 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() @@ -397,17 +361,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) { getReceivedMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +385,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 @@ -461,39 +425,38 @@ public com.google.pubsub.v1.PullResponse 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.PullResponse) { - return mergeFrom((com.google.pubsub.v1.PullResponse) other); + return mergeFrom((com.google.pubsub.v1.PullResponse)other); } else { super.mergeFrom(other); return this; @@ -520,10 +483,9 @@ 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_); } @@ -557,29 +519,21 @@ public Builder mergeFrom( } 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_; /** - * - * *
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -597,8 +551,6 @@ public java.util.List getReceivedMessagesL
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -616,8 +568,6 @@ public int getReceivedMessagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -635,8 +585,6 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -646,7 +594,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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();
@@ -660,8 +609,6 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -683,8 +630,6 @@ public Builder setReceivedMessages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -708,8 +653,6 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -719,7 +662,8 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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();
@@ -733,8 +677,6 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -756,8 +698,6 @@ public Builder addReceivedMessages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -779,8 +719,6 @@ public Builder addReceivedMessages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -794,7 +732,8 @@ 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);
@@ -802,8 +741,6 @@ public Builder addAllReceivedMessages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -824,8 +761,6 @@ public Builder clearReceivedMessages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -846,8 +781,6 @@ public Builder removeReceivedMessages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -857,12 +790,11 @@ public Builder removeReceivedMessages(int index) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) {
+    public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(
+        int index) {
       return getReceivedMessagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -872,16 +804,14 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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);
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -891,8 +821,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public java.util.List
-        getReceivedMessagesOrBuilderList() {
+    public java.util.List 
+         getReceivedMessagesOrBuilderList() {
       if (receivedMessagesBuilder_ != null) {
         return receivedMessagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -900,8 +830,6 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -912,12 +840,10 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
     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());
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -927,13 +853,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder()
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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());
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -943,22 +868,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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(),
@@ -967,9 +886,9 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i
       }
       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);
     }
 
@@ -979,12 +898,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();
   }
@@ -993,16 +912,16 @@ 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 {
-          return new PullResponse(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new PullResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1017,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
similarity index 76%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
index f7843870e..b03221915 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
 
 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 {
 
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -35,10 +17,9 @@ public interface PullResponseOrBuilder
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  java.util.List getReceivedMessagesList();
+  java.util.List 
+      getReceivedMessagesList();
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -50,8 +31,6 @@ public interface PullResponseOrBuilder
    */
   com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index);
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -63,8 +42,6 @@ public interface PullResponseOrBuilder
    */
   int getReceivedMessagesCount();
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -74,11 +51,9 @@ public interface PullResponseOrBuilder
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  java.util.List
+  java.util.List 
       getReceivedMessagesOrBuilderList();
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -88,5 +63,6 @@ public interface PullResponseOrBuilder
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index);
+  com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
similarity index 76%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
index c551db41d..1135a6322 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PushConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,53 +54,46 @@ private PushConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - pushEndpoint_ = s; - break; + pushEndpoint_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attributes_ = - com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry attributes__ = - input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue()); - break; + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + attributes_.getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + break; + } + case 26: { + com.google.pubsub.v1.PushConfig.OidcToken.Builder subBuilder = null; + if (authenticationMethodCase_ == 3) { + subBuilder = ((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_).toBuilder(); } - case 26: - { - com.google.pubsub.v1.PushConfig.OidcToken.Builder subBuilder = null; - if (authenticationMethodCase_ == 3) { - subBuilder = - ((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_).toBuilder(); - } - authenticationMethod_ = - input.readMessage( - com.google.pubsub.v1.PushConfig.OidcToken.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); - authenticationMethod_ = subBuilder.buildPartial(); - } - authenticationMethodCase_ = 3; - break; + authenticationMethod_ = + input.readMessage(com.google.pubsub.v1.PushConfig.OidcToken.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); + authenticationMethod_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authenticationMethodCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,45 +101,43 @@ private PushConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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 { /** - * - * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -173,13 +147,10 @@ public interface OidcTokenOrBuilder
      * 
* * string service_account_email = 1; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -189,14 +160,12 @@ public interface OidcTokenOrBuilder
      * 
* * string service_account_email = 1; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -207,13 +176,10 @@ public interface OidcTokenOrBuilder
      * 
* * string audience = 2; - * * @return The audience. */ java.lang.String getAudience(); /** - * - * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -224,14 +190,12 @@ public interface OidcTokenOrBuilder
      * 
* * string audience = 2; - * * @return The bytes for audience. */ - com.google.protobuf.ByteString getAudienceBytes(); + com.google.protobuf.ByteString + getAudienceBytes(); } /** - * - * *
    * Contains information needed for generating an
    * [OpenID Connect
@@ -240,16 +204,15 @@ public interface OidcTokenOrBuilder
    *
    * 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_ = "";
@@ -257,15 +220,16 @@ private OidcToken() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new OidcToken();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private OidcToken(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -284,27 +248,25 @@ private OidcToken(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                serviceAccountEmail_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              serviceAccountEmail_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                audience_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              audience_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -312,33 +274,29 @@ private OidcToken(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    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;
     private volatile java.lang.Object serviceAccountEmail_;
     /**
-     *
-     *
      * 
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -348,7 +306,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string service_account_email = 1; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -357,15 +314,14 @@ 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; } } /** - * - * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -375,15 +331,16 @@ public java.lang.String getServiceAccountEmail() {
      * 
* * string service_account_email = 1; - * * @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 { @@ -394,8 +351,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int AUDIENCE_FIELD_NUMBER = 2; private volatile java.lang.Object audience_; /** - * - * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -406,7 +361,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
      * 
* * string audience = 2; - * * @return The audience. */ @java.lang.Override @@ -415,15 +369,14 @@ 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; } } /** - * - * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -434,15 +387,16 @@ public java.lang.String getAudience() {
      * 
* * string audience = 2; - * * @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 { @@ -451,7 +405,6 @@ public com.google.protobuf.ByteString getAudienceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -463,7 +416,8 @@ 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_); } @@ -493,16 +447,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -523,94 +478,88 @@ 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 @@ -620,8 +569,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Contains information needed for generating an
      * [OpenID Connect
@@ -630,24 +577,21 @@ 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()
@@ -655,15 +599,16 @@ 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) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -675,9 +620,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
@@ -696,8 +641,7 @@ 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);
+        com.google.pubsub.v1.PushConfig.OidcToken result = new com.google.pubsub.v1.PushConfig.OidcToken(this);
         result.serviceAccountEmail_ = serviceAccountEmail_;
         result.audience_ = audience_;
         onBuilt();
@@ -708,41 +652,38 @@ public com.google.pubsub.v1.PushConfig.OidcToken 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.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;
@@ -790,8 +731,6 @@ public Builder mergeFrom(
 
       private java.lang.Object serviceAccountEmail_ = "";
       /**
-       *
-       *
        * 
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -801,13 +740,13 @@ public Builder mergeFrom(
        * 
* * string service_account_email = 1; - * * @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; @@ -816,8 +755,6 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -827,14 +764,15 @@ public java.lang.String getServiceAccountEmail() {
        * 
* * string service_account_email = 1; - * * @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 { @@ -842,8 +780,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -853,22 +789,20 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
        * 
* * string service_account_email = 1; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { + public Builder setServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -878,18 +812,15 @@ public Builder setServiceAccountEmail(java.lang.String value) {
        * 
* * string service_account_email = 1; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** - * - * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -899,16 +830,16 @@ public Builder clearServiceAccountEmail() {
        * 
* * string service_account_email = 1; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -916,8 +847,6 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) private java.lang.Object audience_ = ""; /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -928,13 +857,13 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
        * 
* * string audience = 2; - * * @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; @@ -943,8 +872,6 @@ public java.lang.String getAudience() { } } /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -955,14 +882,15 @@ public java.lang.String getAudience() {
        * 
* * string audience = 2; - * * @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 { @@ -970,8 +898,6 @@ public com.google.protobuf.ByteString getAudienceBytes() { } } /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -982,22 +908,20 @@ public com.google.protobuf.ByteString getAudienceBytes() {
        * 
* * string audience = 2; - * * @param value The audience to set. * @return This builder for chaining. */ - public Builder setAudience(java.lang.String value) { + public Builder setAudience( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audience_ = value; onChanged(); return this; } /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -1008,18 +932,15 @@ public Builder setAudience(java.lang.String value) {
        * 
* * string audience = 2; - * * @return This builder for chaining. */ public Builder clearAudience() { - + audience_ = getDefaultInstance().getAudience(); onChanged(); return this; } /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -1030,21 +951,20 @@ public Builder clearAudience() {
        * 
* * string audience = 2; - * * @param value The bytes for audience to set. * @return This builder for chaining. */ - public Builder setAudienceBytes(com.google.protobuf.ByteString value) { + public Builder setAudienceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audience_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1057,12 +977,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(); } @@ -1071,16 +991,16 @@ 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 { - return new OidcToken(input, extensionRegistry); - } - }; + 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 { + return new OidcToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1095,19 +1015,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int authenticationMethodCase_ = 0; 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; } @@ -1123,36 +1041,31 @@ 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_); } public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object pushEndpoint_; /** - * - * *
    * 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; - * * @return The pushEndpoint. */ @java.lang.Override @@ -1161,30 +1074,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; } } /** - * - * *
    * 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; - * * @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 { @@ -1193,23 +1106,24 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { } public static final int ATTRIBUTES_FIELD_NUMBER = 2; - private static final class AttributesDefaultEntryHolder { - 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, - ""); + 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, + ""); } - - private com.google.protobuf.MapField attributes_; - - private com.google.protobuf.MapField internalGetAttributes() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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_; } @@ -1218,8 +1132,6 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1241,22 +1153,22 @@ public int getAttributesCount() {
    *
    * map<string, string> attributes = 2;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1279,12 +1191,11 @@ public java.util.Map getAttributes() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
+
   public java.util.Map getAttributesMap() {
     return internalGetAttributes().getMap();
   }
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1307,17 +1218,16 @@ public java.util.Map getAttributesMap() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
+
   public java.lang.String getAttributesOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAttributes().getMap();
+      java.lang.String key,
+      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;
   }
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1340,11 +1250,12 @@ public java.lang.String getAttributesOrDefault(
    * map<string, string> attributes = 2;
    */
   @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();
     }
@@ -1353,15 +1264,12 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
 
   public static final int OIDC_TOKEN_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * 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; - * * @return Whether the oidcToken field is set. */ @java.lang.Override @@ -1369,27 +1277,22 @@ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } /** - * - * *
    * 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; - * * @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(); } /** - * - * *
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
@@ -1400,13 +1303,12 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() {
   @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();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1418,12 +1320,17 @@ 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_);
     }
@@ -1439,20 +1346,19 @@ 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_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1462,19 +1368,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.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:
@@ -1509,143 +1418,138 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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); } @@ -1655,15 +1559,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1676,9 +1581,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 @@ -1718,39 +1623,38 @@ public com.google.pubsub.v1.PushConfig 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.PushConfig) { - return mergeFrom((com.google.pubsub.v1.PushConfig) other); + return mergeFrom((com.google.pubsub.v1.PushConfig)other); } else { super.mergeFrom(other); return this; @@ -1763,17 +1667,16 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { pushEndpoint_ = other.pushEndpoint_; onChanged(); } - internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); 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; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1803,12 +1706,12 @@ public Builder mergeFrom( } 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() { @@ -1822,21 +1725,19 @@ public Builder clearAuthenticationMethod() { private java.lang.Object pushEndpoint_ = ""; /** - * - * *
      * 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; - * * @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; @@ -1845,22 +1746,21 @@ public java.lang.String getPushEndpoint() { } } /** - * - * *
      * 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; - * * @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 { @@ -1868,87 +1768,78 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { } } /** - * - * *
      * 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; - * * @param value The pushEndpoint to set. * @return This builder for chaining. */ - public Builder setPushEndpoint(java.lang.String value) { + public Builder setPushEndpoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pushEndpoint_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearPushEndpoint() { - + pushEndpoint_ = getDefaultInstance().getPushEndpoint(); onChanged(); return this; } /** - * - * *
      * 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; - * * @param value The bytes for pushEndpoint to set. * @return This builder for chaining. */ - public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { + public Builder setPushEndpointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pushEndpoint_ = value; onChanged(); return this; } - private com.google.protobuf.MapField attributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField - internalGetAttributes() { + internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } - private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged(); - ; + internalGetMutableAttributes() { + onChanged();; 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(); @@ -1960,8 +1851,6 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -1983,22 +1872,22 @@ public int getAttributesCount() {
      *
      * map<string, string> attributes = 2;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2021,12 +1910,11 @@ public java.util.Map getAttributes() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
+
     public java.util.Map getAttributesMap() {
       return internalGetAttributes().getMap();
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2049,17 +1937,16 @@ public java.util.Map getAttributesMap() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
+
     public java.lang.String getAttributesOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAttributes().getMap();
+        java.lang.String key,
+        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;
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2082,11 +1969,12 @@ public java.lang.String getAttributesOrDefault(
      * map<string, string> attributes = 2;
      */
     @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();
       }
@@ -2094,12 +1982,11 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
     }
 
     public Builder clearAttributes() {
-      internalGetMutableAttributes().getMutableMap().clear();
+      internalGetMutableAttributes().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2121,21 +2008,23 @@ public Builder clearAttributes() {
      *
      * map<string, string> attributes = 2;
      */
-    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() {
       return internalGetMutableAttributes().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2157,20 +2046,19 @@ public java.util.Map getMutableAttributes()
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAttributes(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    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");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableAttributes().getMutableMap().put(key, value);
+      internalGetMutableAttributes().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2192,26 +2080,23 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAllAttributes(java.util.Map values) {
-      internalGetMutableAttributes().getMutableMap().putAll(values);
+
+    public Builder putAllAttributes(
+        java.util.Map values) {
+      internalGetMutableAttributes().getMutableMap()
+          .putAll(values);
       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_;
     /**
-     *
-     *
      * 
      * 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; - * * @return Whether the oidcToken field is set. */ @java.lang.Override @@ -2219,15 +2104,12 @@ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } /** - * - * *
      * 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; - * * @return The oidcToken. */ @java.lang.Override @@ -2245,8 +2127,6 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { } } /** - * - * *
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2268,8 +2148,6 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2277,7 +2155,8 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
      *
      * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;
      */
-    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();
@@ -2288,8 +2167,6 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2299,14 +2176,10 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder bu
      */
     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;
         }
@@ -2322,8 +2195,6 @@ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2348,8 +2219,6 @@ public Builder clearOidcToken() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2361,8 +2230,6 @@ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() {
       return getOidcTokenFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2382,8 +2249,6 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(
       }
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2392,32 +2257,26 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(
      * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;
      */
     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());
         authenticationMethod_ = null;
       }
       authenticationMethodCase_ = 3;
-      onChanged();
-      ;
+      onChanged();;
       return oidcTokenBuilder_;
     }
-
     @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);
     }
 
@@ -2427,12 +2286,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();
   }
@@ -2441,16 +2300,16 @@ 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 {
-          return new PushConfig(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new PushConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2465,4 +2324,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
similarity index 86%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
index 6499b5346..7c8148f2e 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
@@ -1,58 +1,35 @@
-/*
- * Copyright 2020 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
 
 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 {
 
   /**
-   *
-   *
    * 
    * 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; - * * @return The pushEndpoint. */ java.lang.String getPushEndpoint(); /** - * - * *
    * 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; - * * @return The bytes for pushEndpoint. */ - com.google.protobuf.ByteString getPushEndpointBytes(); + com.google.protobuf.ByteString + getPushEndpointBytes(); /** - * - * *
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -76,8 +53,6 @@ public interface PushConfigOrBuilder
    */
   int getAttributesCount();
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -99,13 +74,15 @@ public interface PushConfigOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  boolean containsAttributes(java.lang.String key);
-  /** Use {@link #getAttributesMap()} instead. */
+  boolean containsAttributes(
+      java.lang.String key);
+  /**
+   * Use {@link #getAttributesMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAttributes();
+  java.util.Map
+  getAttributes();
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -127,10 +104,9 @@ public interface PushConfigOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  java.util.Map getAttributesMap();
+  java.util.Map
+  getAttributesMap();
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -154,13 +130,11 @@ public interface PushConfigOrBuilder
    */
 
   /* nullable */
-  java.lang.String getAttributesOrDefault(
+java.lang.String getAttributesOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -182,37 +156,31 @@ java.lang.String getAttributesOrDefault(
    *
    * map<string, string> attributes = 2;
    */
-  java.lang.String getAttributesOrThrow(java.lang.String key);
+
+  java.lang.String getAttributesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * 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; - * * @return Whether the oidcToken field is set. */ boolean hasOidcToken(); /** - * - * *
    * 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; - * * @return The oidcToken. */ com.google.pubsub.v1.PushConfig.OidcToken getOidcToken(); /** - * - * *
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
similarity index 73%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
index 7145c9e05..62c9eec3d 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReceivedMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,40 +53,37 @@ private ReceivedMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - ackId_ = s; - break; - } - case 18: - { - com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; - if (message_ != null) { - subBuilder = message_.toBuilder(); - } - message_ = - input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - - break; + ackId_ = s; + break; + } + case 18: { + com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); } - case 24: - { - deliveryAttempt_ = input.readInt32(); - break; + message_ = input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 24: { + + deliveryAttempt_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,39 +91,34 @@ private ReceivedMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } public static final int ACK_ID_FIELD_NUMBER = 1; private volatile java.lang.Object ackId_; /** - * - * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; - * * @return The ackId. */ @java.lang.Override @@ -152,29 +127,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; } } /** - * - * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; - * * @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 { @@ -185,14 +160,11 @@ public com.google.protobuf.ByteString getAckIdBytes() { public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.pubsub.v1.PubsubMessage message_; /** - * - * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return Whether the message field is set. */ @java.lang.Override @@ -200,14 +172,11 @@ public boolean hasMessage() { return message_ != null; } /** - * - * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return The message. */ @java.lang.Override @@ -215,8 +184,6 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } /** - * - * *
    * The message.
    * 
@@ -231,8 +198,6 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 3; private int deliveryAttempt_; /** - * - * *
    * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    * the associated message to a subscriber.
@@ -249,7 +214,6 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
    * 
* * int32 delivery_attempt = 3; - * * @return The deliveryAttempt. */ @java.lang.Override @@ -258,7 +222,6 @@ public int getDeliveryAttempt() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +233,8 @@ 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_); } @@ -293,10 +257,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); } if (message_ != null) { - 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -306,19 +272,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -343,126 +312,118 @@ 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() @@ -470,15 +431,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +458,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 @@ -533,39 +495,38 @@ public com.google.pubsub.v1.ReceivedMessage 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.ReceivedMessage) { - return mergeFrom((com.google.pubsub.v1.ReceivedMessage) other); + return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); } else { super.mergeFrom(other); return this; @@ -615,20 +576,18 @@ public Builder mergeFrom( private java.lang.Object ackId_ = ""; /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @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; @@ -637,21 +596,20 @@ public java.lang.String getAckId() { } } /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @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 { @@ -659,61 +617,54 @@ public com.google.protobuf.ByteString getAckIdBytes() { } } /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @param value The ackId to set. * @return This builder for chaining. */ - public Builder setAckId(java.lang.String value) { + public Builder setAckId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ackId_ = value; onChanged(); return this; } /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @return This builder for chaining. */ public Builder clearAckId() { - + ackId_ = getDefaultInstance().getAckId(); onChanged(); return this; } /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @param value The bytes for ackId to set. * @return This builder for chaining. */ - public Builder setAckIdBytes(com.google.protobuf.ByteString value) { + public Builder setAckIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ackId_ = value; onChanged(); return this; @@ -721,47 +672,34 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return Whether the message field is set. */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** - * - * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @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(); } } /** - * - * *
      * The message.
      * 
@@ -782,15 +720,14 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** - * - * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; */ - 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(); onChanged(); @@ -801,8 +738,6 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForV return this; } /** - * - * *
      * The message.
      * 
@@ -813,9 +748,7 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = - com.google.pubsub.v1.PubsubMessage.newBuilder(message_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.PubsubMessage.newBuilder(message_).mergeFrom(value).buildPartial(); } else { message_ = value; } @@ -827,8 +760,6 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** - * - * *
      * The message.
      * 
@@ -847,8 +778,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * The message.
      * 
@@ -856,13 +785,11 @@ public Builder clearMessage() { * .google.pubsub.v1.PubsubMessage message = 2; */ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { - + onChanged(); return getMessageFieldBuilder().getBuilder(); } /** - * - * *
      * The message.
      * 
@@ -873,14 +800,11 @@ 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_; } } /** - * - * *
      * The message.
      * 
@@ -888,26 +812,21 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * .google.pubsub.v1.PubsubMessage message = 2; */ 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_ ; /** - * - * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -924,7 +843,6 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
      * 
* * int32 delivery_attempt = 3; - * * @return The deliveryAttempt. */ @java.lang.Override @@ -932,8 +850,6 @@ public int getDeliveryAttempt() { return deliveryAttempt_; } /** - * - * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -950,19 +866,16 @@ public int getDeliveryAttempt() {
      * 
* * int32 delivery_attempt = 3; - * * @param value The deliveryAttempt to set. * @return This builder for chaining. */ public Builder setDeliveryAttempt(int value) { - + deliveryAttempt_ = value; onChanged(); return this; } /** - * - * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -979,18 +892,17 @@ public Builder setDeliveryAttempt(int value) {
      * 
* * int32 delivery_attempt = 3; - * * @return This builder for chaining. */ public Builder clearDeliveryAttempt() { - + deliveryAttempt_ = 0; 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); } @@ -1000,12 +912,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(); } @@ -1014,16 +926,16 @@ 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 { - return new ReceivedMessage(input, extensionRegistry); - } - }; + 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 { + return new ReceivedMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 805690b39..8c5237cf3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 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 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 { /** - * - * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; - * * @return The ackId. */ java.lang.String getAckId(); /** - * - * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; - * * @return The bytes for ackId. */ - com.google.protobuf.ByteString getAckIdBytes(); + com.google.protobuf.ByteString + getAckIdBytes(); /** - * - * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return Whether the message field is set. */ boolean hasMessage(); /** - * - * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return The message. */ com.google.pubsub.v1.PubsubMessage getMessage(); /** - * - * *
    * The message.
    * 
@@ -84,8 +55,6 @@ public interface ReceivedMessageOrBuilder com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder(); /** - * - * *
    * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    * the associated message to a subscriber.
@@ -102,7 +71,6 @@ public interface ReceivedMessageOrBuilder
    * 
* * int32 delivery_attempt = 3; - * * @return The deliveryAttempt. */ int getDeliveryAttempt(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 51f5b8e47..a25308e52 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; /** - * - * *
  * A policy that specifies how Cloud Pub/Sub retries message delivery.
  * Retry delay will be exponential based on provided minimum and maximum
@@ -34,29 +17,30 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RetryPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,43 +59,39 @@ private RetryPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (minimumBackoff_ != null) {
-                subBuilder = minimumBackoff_.toBuilder();
-              }
-              minimumBackoff_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(minimumBackoff_);
-                minimumBackoff_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (minimumBackoff_ != null) {
+              subBuilder = minimumBackoff_.toBuilder();
+            }
+            minimumBackoff_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(minimumBackoff_);
+              minimumBackoff_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (maximumBackoff_ != null) {
-                subBuilder = maximumBackoff_.toBuilder();
-              }
-              maximumBackoff_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(maximumBackoff_);
-                maximumBackoff_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (maximumBackoff_ != null) {
+              subBuilder = maximumBackoff_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            maximumBackoff_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(maximumBackoff_);
+              maximumBackoff_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -119,22 +99,22 @@ private RetryPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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);
   }
@@ -142,15 +122,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration minimumBackoff_;
   /**
-   *
-   *
    * 
    * 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; - * * @return Whether the minimumBackoff field is set. */ @java.lang.Override @@ -158,26 +135,19 @@ public boolean hasMinimumBackoff() { return minimumBackoff_ != null; } /** - * - * *
    * 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; - * * @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_; } /** - * - * *
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -193,15 +163,12 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
   public static final int MAXIMUM_BACKOFF_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration maximumBackoff_;
   /**
-   *
-   *
    * 
    * 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; - * * @return Whether the maximumBackoff field is set. */ @java.lang.Override @@ -209,26 +176,19 @@ public boolean hasMaximumBackoff() { return maximumBackoff_ != null; } /** - * - * *
    * 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; - * * @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_; } /** - * - * *
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -242,7 +202,6 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -254,7 +213,8 @@ 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 (minimumBackoff_ != null) {
       output.writeMessage(1, getMinimumBackoff());
     }
@@ -271,10 +231,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (minimumBackoff_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinimumBackoff());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getMinimumBackoff());
     }
     if (maximumBackoff_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumBackoff());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getMaximumBackoff());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -284,7 +246,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);
@@ -293,11 +255,13 @@ 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -323,103 +287,97 @@ 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 Cloud Pub/Sub retries message delivery.
    * Retry delay will be exponential based on provided minimum and maximum
@@ -433,23 +391,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
@@ -457,15 +413,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -485,9 +442,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
@@ -525,39 +482,38 @@ public com.google.pubsub.v1.RetryPolicy 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.RetryPolicy) {
-        return mergeFrom((com.google.pubsub.v1.RetryPolicy) other);
+        return mergeFrom((com.google.pubsub.v1.RetryPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -603,49 +559,36 @@ public Builder mergeFrom(
 
     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_;
     /**
-     *
-     *
      * 
      * 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; - * * @return Whether the minimumBackoff field is set. */ public boolean hasMinimumBackoff() { return minimumBackoffBuilder_ != null || minimumBackoff_ != null; } /** - * - * *
      * 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; - * * @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(); } } /** - * - * *
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -667,8 +610,6 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -676,7 +617,8 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration minimum_backoff = 1;
      */
-    public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setMinimumBackoff(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (minimumBackoffBuilder_ == null) {
         minimumBackoff_ = builderForValue.build();
         onChanged();
@@ -687,8 +629,6 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -700,9 +640,7 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) {
       if (minimumBackoffBuilder_ == null) {
         if (minimumBackoff_ != null) {
           minimumBackoff_ =
-              com.google.protobuf.Duration.newBuilder(minimumBackoff_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(minimumBackoff_).mergeFrom(value).buildPartial();
         } else {
           minimumBackoff_ = value;
         }
@@ -714,8 +652,6 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -735,8 +671,6 @@ public Builder clearMinimumBackoff() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -745,13 +679,11 @@ public Builder clearMinimumBackoff() {
      * .google.protobuf.Duration minimum_backoff = 1;
      */
     public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() {
-
+      
       onChanged();
       return getMinimumBackoffFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -763,14 +695,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -779,17 +708,14 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
      * .google.protobuf.Duration minimum_backoff = 1;
      */
     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_;
@@ -797,49 +723,36 @@ 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_;
     /**
-     *
-     *
      * 
      * 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; - * * @return Whether the maximumBackoff field is set. */ public boolean hasMaximumBackoff() { return maximumBackoffBuilder_ != null || maximumBackoff_ != null; } /** - * - * *
      * 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; - * * @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(); } } /** - * - * *
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -861,8 +774,6 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -870,7 +781,8 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration maximum_backoff = 2;
      */
-    public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setMaximumBackoff(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (maximumBackoffBuilder_ == null) {
         maximumBackoff_ = builderForValue.build();
         onChanged();
@@ -881,8 +793,6 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -894,9 +804,7 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) {
       if (maximumBackoffBuilder_ == null) {
         if (maximumBackoff_ != null) {
           maximumBackoff_ =
-              com.google.protobuf.Duration.newBuilder(maximumBackoff_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(maximumBackoff_).mergeFrom(value).buildPartial();
         } else {
           maximumBackoff_ = value;
         }
@@ -908,8 +816,6 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -929,8 +835,6 @@ public Builder clearMaximumBackoff() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -939,13 +843,11 @@ public Builder clearMaximumBackoff() {
      * .google.protobuf.Duration maximum_backoff = 2;
      */
     public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() {
-
+      
       onChanged();
       return getMaximumBackoffFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -957,14 +859,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -973,24 +872,21 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() {
      * .google.protobuf.Duration maximum_backoff = 2;
      */
     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);
     }
 
@@ -1000,12 +896,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();
   }
@@ -1014,16 +910,16 @@ 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 {
-          return new RetryPolicy(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new RetryPolicy(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1038,4 +934,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.RetryPolicy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
similarity index 75%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
index e3ace44c0..423adbdf1 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 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
 
 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 {
 
   /**
-   *
-   *
    * 
    * 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; - * * @return Whether the minimumBackoff field is set. */ boolean hasMinimumBackoff(); /** - * - * *
    * 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; - * * @return The minimumBackoff. */ com.google.protobuf.Duration getMinimumBackoff(); /** - * - * *
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -62,34 +38,26 @@ public interface RetryPolicyOrBuilder
   com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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; - * * @return Whether the maximumBackoff field is set. */ boolean hasMaximumBackoff(); /** - * - * *
    * 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; - * * @return The maximumBackoff. */ com.google.protobuf.Duration getMaximumBackoff(); /** - * - * *
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
similarity index 75%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
index 9dfc5bca4..45559e0f5 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 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
 
 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; @@ -45,15 +27,16 @@ private Schema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Schema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,31 @@ private Schema( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - definition_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + definition_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,39 +87,36 @@ private Schema( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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.
      * 
@@ -148,8 +125,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * A Protocol Buffer schema definition.
      * 
@@ -158,8 +133,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ PROTOCOL_BUFFER(1), /** - * - * *
      * An Avro schema definition.
      * 
@@ -171,8 +144,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -181,8 +152,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A Protocol Buffer schema definition.
      * 
@@ -191,8 +160,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROTOCOL_BUFFER_VALUE = 1; /** - * - * *
      * An Avro schema definition.
      * 
@@ -201,6 +168,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AVRO_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,49 +193,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); + } + }; - 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() { + 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; @@ -287,15 +255,12 @@ private Type(int value) { public static final int NAME_FIELD_NUMBER = 1; 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 @@ -304,30 +269,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 { @@ -338,33 +303,25 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
    * 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() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.valueOf(type_); return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; @@ -373,8 +330,6 @@ public com.google.pubsub.v1.Schema.Type getType() { public static final int DEFINITION_FIELD_NUMBER = 3; 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
@@ -382,7 +337,6 @@ public com.google.pubsub.v1.Schema.Type getType() {
    * 
* * string definition = 3; - * * @return The definition. */ @java.lang.Override @@ -391,15 +345,14 @@ 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
@@ -407,15 +360,16 @@ 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 { @@ -424,7 +378,6 @@ public com.google.protobuf.ByteString getDefinitionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -436,7 +389,8 @@ 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_); } @@ -459,7 +413,8 @@ 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_); @@ -472,16 +427,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.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 (!getDefinition() + .equals(other.getDefinition())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -504,122 +461,116 @@ 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); } @@ -629,15 +580,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -651,7 +603,8 @@ 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; } @@ -683,39 +636,38 @@ public com.google.pubsub.v1.Schema 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.Schema) { - return mergeFrom((com.google.pubsub.v1.Schema) other); + return mergeFrom((com.google.pubsub.v1.Schema)other); } else { super.mergeFrom(other); return this; @@ -766,21 +718,19 @@ public Builder mergeFrom( 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; @@ -789,22 +739,21 @@ 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 { @@ -812,64 +761,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -877,47 +819,37 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return The type. */ @java.lang.Override @@ -927,14 +859,11 @@ 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. */ @@ -942,24 +871,21 @@ public Builder setType(com.google.pubsub.v1.Schema.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -967,8 +893,6 @@ 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
@@ -976,13 +900,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; @@ -991,8 +915,6 @@ 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
@@ -1000,14 +922,15 @@ 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 { @@ -1015,8 +938,6 @@ public com.google.protobuf.ByteString getDefinitionBytes() { } } /** - * - * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1024,22 +945,20 @@ public com.google.protobuf.ByteString getDefinitionBytes() {
      * 
* * string definition = 3; - * * @param value The definition to set. * @return This builder for chaining. */ - public Builder setDefinition(java.lang.String value) { + public Builder setDefinition( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + definition_ = value; 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
@@ -1047,18 +966,15 @@ public Builder setDefinition(java.lang.String value) {
      * 
* * string definition = 3; - * * @return This builder for chaining. */ public Builder clearDefinition() { - + definition_ = getDefaultInstance().getDefinition(); 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
@@ -1066,23 +982,23 @@ 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) { + public Builder setDefinitionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + definition_ = 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); } @@ -1092,12 +1008,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(); } @@ -1106,16 +1022,16 @@ 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 { - return new Schema(input, extensionRegistry); - } - }; + 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 { + return new Schema(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,4 +1046,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java similarity index 99% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index af7c5feab..c4b5935cd 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java similarity index 68% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 30c88d8aa..c56277a99 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,83 +1,54 @@ -/* - * Copyright 2020 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 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
@@ -85,13 +56,10 @@ public interface SchemaOrBuilder
    * 
* * 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
@@ -99,8 +67,8 @@ public interface SchemaOrBuilder
    * 
* * string definition = 3; - * * @return The bytes for definition. */ - com.google.protobuf.ByteString getDefinitionBytes(); + com.google.protobuf.ByteString + getDefinitionBytes(); } 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 new file mode 100644 index 000000000..3577fd03d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -0,0 +1,236 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +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_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\"\341\001\n\006Sc" + + "hema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035." + + "google.pubsub.v1.Schema.Type\022\022\n\ndefiniti" + + "on\030\003 \001(\t\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\023" + + "\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n\034pubs" + + "ub.googleapis.com/Schema\022#projects/{proj" + + "ect}/schemas/{schema}\"\215\001\n\023CreateSchemaRe" + + "quest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubsub.go" + + "ogleapis.com/Schema\022-\n\006schema\030\002 \001(\0132\030.go" + + "ogle.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschema_id\030" + + "\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001 \001(\tB" + + "$\340A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n" + + "\004view\030\002 \001(\0162\034.google.pubsub.v1.SchemaVie" + + "w\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022*\n\004view\030\002 \001(\0162\034.google.pub" + + "sub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" + + "page_token\030\004 \001(\t\"Y\n\023ListSchemasResponse\022" + + ")\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1.Sche" + + "ma\022\027\n\017next_page_token\030\002 \001(\t\"I\n\023DeleteSch" + + "emaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub" + + ".googleapis.com/Schema\"\213\001\n\025ValidateSchem" + + "aRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + + "esourcemanager.googleapis.com/Project\022-\n" + + "\006schema\030\002 \001(\0132\030.google.pubsub.v1.SchemaB" + + "\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026Valid" + + "ateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.google" + + "apis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030.goog" + + "le.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001(\014\022," + + "\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1.Enco" + + "dingB\r\n\013schema_spec\"\031\n\027ValidateMessageRe" + + "sponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_UNSP" + + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010Encodi" + + "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON\020\001\022\n" + + "\n\006BINARY\020\0022\367\007\n\rSchemaService\022\232\001\n\014CreateS" + + "chema\022%.google.pubsub.v1.CreateSchemaReq" + + "uest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223\002)\"\037" + + "/v1/{parent=projects/*}/schemas:\006schema\332" + + "A\027parent,schema,schema_id\022y\n\tGetSchema\022\"" + + ".google.pubsub.v1.GetSchemaRequest\032\030.goo" + + "gle.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{name=" + + "projects/*/schemas/*}\332A\004name\022\214\001\n\013ListSch" + + "emas\022$.google.pubsub.v1.ListSchemasReque" + + "st\032%.google.pubsub.v1.ListSchemasRespons" + + "e\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/schem" + + "as\332A\006parent\022}\n\014DeleteSchema\022%.google.pub" + + "sub.v1.DeleteSchemaRequest\032\026.google.prot" + + "obuf.Empty\".\202\323\344\223\002!*\037/v1/{name=projects/*" + + "/schemas/*}\332A\004name\022\250\001\n\016ValidateSchema\022\'." + + "google.pubsub.v1.ValidateSchemaRequest\032(" + + ".google.pubsub.v1.ValidateSchemaResponse" + + "\"C\202\323\344\223\002-\"(/v1/{parent=projects/*}/schema" + + "s:validate:\001*\332A\rparent,schema\022\242\001\n\017Valida" + + "teMessage\022(.google.pubsub.v1.ValidateMes" + + "sageRequest\032).google.pubsub.v1.ValidateM" + + "essageResponse\":\202\323\344\223\0024\"//v1/{parent=proj" + + "ects/*}/schemas:validateMessage:\001*\032p\312A\025p" + + "ubsub.googleapis.com\322AUhttps://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/pubsubB\256\001\n\024com.goo" + + "gle.pubsub.v1B\013SchemaProtoP\001Z6google.gol" + + "ang.org/genproto/googleapis/pubsub/v1;pu" + + "bsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" + + "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" + + "b::V1b\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(), + }); + 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", }); + 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_DeleteSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java similarity index 70% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 38a3b711e..30b8b1d13 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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; @@ -44,15 +26,16 @@ private SchemaSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SchemaSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SchemaSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private SchemaSettings( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - schema_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + schema_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - encoding_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + encoding_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,33 +80,29 @@ private SchemaSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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
@@ -133,10 +110,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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 @@ -145,15 +119,14 @@ 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
@@ -161,18 +134,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. */ @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 { @@ -183,40 +155,31 @@ public com.google.protobuf.ByteString getSchemaBytes() { public static final int ENCODING_FIELD_NUMBER = 2; private int encoding_; /** - * - * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @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 of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The encoding. */ - @java.lang.Override - public com.google.pubsub.v1.Encoding getEncoding() { + @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(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; @@ -228,7 +191,8 @@ 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_); } @@ -248,7 +212,8 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -258,14 +223,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,126 +253,118 @@ 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() @@ -414,15 +372,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +393,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 @@ -466,39 +425,38 @@ public com.google.pubsub.v1.SchemaSettings 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.SchemaSettings) { - return mergeFrom((com.google.pubsub.v1.SchemaSettings) other); + return mergeFrom((com.google.pubsub.v1.SchemaSettings)other); } else { super.mergeFrom(other); return this; @@ -545,8 +503,6 @@ public Builder mergeFrom( 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
@@ -554,16 +510,14 @@ 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; @@ -572,8 +526,6 @@ 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
@@ -581,17 +533,16 @@ 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 { @@ -599,8 +550,6 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -608,25 +557,21 @@ public com.google.protobuf.ByteString getSchemaBytes() {
      * 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) { + public Builder setSchema( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schema_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -634,21 +579,16 @@ public Builder setSchema(java.lang.String value) {
      * 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() { - + schema_ = getDefaultInstance().getSchema(); onChanged(); return this; } /** - * - * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -656,19 +596,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) { + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; onChanged(); return this; @@ -676,47 +614,37 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { private int encoding_ = 0; /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @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 of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The encoding. */ @java.lang.Override @@ -726,14 +654,11 @@ public com.google.pubsub.v1.Encoding getEncoding() { return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @param value The encoding to set. * @return This builder for chaining. */ @@ -741,31 +666,28 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; 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); } @@ -775,12 +697,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(); } @@ -789,16 +711,16 @@ 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 { - return new SchemaSettings(input, extensionRegistry); - } - }; + 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 { + return new SchemaSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,4 +735,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SchemaSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index f44178d47..216a1a783 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 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
@@ -33,16 +15,11 @@ public interface SchemaSettingsOrBuilder
    * 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
@@ -50,35 +27,27 @@ public interface SchemaSettingsOrBuilder
    * 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(); /** - * - * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The encoding. */ com.google.pubsub.v1.Encoding getEncoding(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java similarity index 67% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 2d9433fd1..67441a0c8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 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 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.
@@ -40,8 +22,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum {
    */
   SCHEMA_VIEW_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Include the name and type of the schema, but not the definition.
    * 
@@ -50,8 +30,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { */ BASIC(1), /** - * - * *
    * Include all Schema object fields.
    * 
@@ -63,8 +41,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The default / unset value.
    * The API will default to the BASIC view.
@@ -74,8 +50,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int SCHEMA_VIEW_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Include the name and type of the schema, but not the definition.
    * 
@@ -84,8 +58,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIC_VALUE = 1; /** - * - * *
    * Include all Schema object fields.
    * 
@@ -94,6 +66,7 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FULL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -118,49 +91,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 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< + 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() { 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; @@ -176,3 +149,4 @@ private SchemaView(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.SchemaView) } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java similarity index 75% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 813c4f2d4..2a0154d66 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SeekRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,42 +53,39 @@ private SeekRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder(); - } - target_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 2; - break; + subscription_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 3; - target_ = s; - break; + target_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_); + target_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetCase_ = 2; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 3; + target_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,38 +93,35 @@ private SeekRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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; } @@ -160,39 +137,31 @@ 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; 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 @@ -201,31 +170,29 @@ 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 { @@ -235,8 +202,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int TIME_FIELD_NUMBER = 2; /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -252,7 +217,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * .google.protobuf.Timestamp time = 2; - * * @return Whether the time field is set. */ @java.lang.Override @@ -260,8 +224,6 @@ public boolean hasTime() { return targetCase_ == 2; } /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -277,19 +239,16 @@ public boolean hasTime() {
    * 
* * .google.protobuf.Timestamp time = 2; - * * @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(); } /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -309,15 +268,13 @@ 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;
   /**
-   *
-   *
    * 
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -325,15 +282,12 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return targetCase_ == 3; } /** - * - * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -341,7 +295,6 @@ public boolean hasSnapshot() {
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The snapshot. */ public java.lang.String getSnapshot() { @@ -352,7 +305,8 @@ 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; @@ -361,8 +315,6 @@ public java.lang.String getSnapshot() { } } /** - * - * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -370,17 +322,18 @@ public java.lang.String getSnapshot() {
    * 
* * string snapshot = 3 [(.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; } @@ -391,7 +344,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,7 +355,8 @@ 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_); } @@ -426,9 +379,8 @@ 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_); @@ -441,21 +393,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.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: @@ -490,126 +445,118 @@ 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() @@ -617,15 +564,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -637,9 +585,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 @@ -679,39 +627,38 @@ public com.google.pubsub.v1.SeekRequest 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.SeekRequest) { - return mergeFrom((com.google.pubsub.v1.SeekRequest) other); + return mergeFrom((com.google.pubsub.v1.SeekRequest)other); } else { super.mergeFrom(other); return this; @@ -725,22 +672,19 @@ 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.unknownFields); onChanged(); @@ -770,12 +714,12 @@ public Builder mergeFrom( } 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() { @@ -785,24 +729,21 @@ public Builder clearTarget() { return this; } + 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; @@ -811,23 +752,20 @@ 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 { @@ -835,80 +773,62 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } 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_; /** - * - * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -924,7 +844,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp time = 2; - * * @return Whether the time field is set. */ @java.lang.Override @@ -932,8 +851,6 @@ public boolean hasTime() { return targetCase_ == 2; } /** - * - * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -949,7 +866,6 @@ public boolean hasTime() {
      * 
* * .google.protobuf.Timestamp time = 2; - * * @return The time. */ @java.lang.Override @@ -967,8 +883,6 @@ public com.google.protobuf.Timestamp getTime() { } } /** - * - * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -999,8 +913,6 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1017,7 +929,8 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp time = 2;
      */
-    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();
@@ -1028,8 +941,6 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1048,11 +959,10 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      */
     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;
         }
@@ -1068,8 +978,6 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1103,8 +1011,6 @@ public Builder clearTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1125,8 +1031,6 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
       return getTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1155,8 +1059,6 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1174,31 +1076,25 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      * .google.protobuf.Timestamp time = 2;
      */
     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;
-      onChanged();
-      ;
+      onChanged();;
       return timeBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1206,7 +1102,6 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -1214,8 +1109,6 @@ public boolean hasSnapshot() { return targetCase_ == 3; } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1223,7 +1116,6 @@ public boolean hasSnapshot() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The snapshot. */ @java.lang.Override @@ -1233,7 +1125,8 @@ 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; @@ -1244,8 +1137,6 @@ public java.lang.String getSnapshot() { } } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1253,18 +1144,19 @@ public java.lang.String getSnapshot() {
      * 
* * string snapshot = 3 [(.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; } @@ -1274,8 +1166,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1283,22 +1173,20 @@ public com.google.protobuf.ByteString getSnapshotBytes() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot(java.lang.String value) { + public Builder setSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - targetCase_ = 3; + throw new NullPointerException(); + } + targetCase_ = 3; target_ = value; onChanged(); return this; } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1306,7 +1194,6 @@ public Builder setSnapshot(java.lang.String value) {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -1318,8 +1205,6 @@ public Builder clearSnapshot() { return this; } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1327,23 +1212,23 @@ public Builder clearSnapshot() {
      * 
* * string snapshot = 3 [(.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) { + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1353,12 +1238,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(); } @@ -1367,16 +1252,16 @@ 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 { - return new SeekRequest(input, extensionRegistry); - } - }; + 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 { + return new SeekRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1391,4 +1276,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index b82800a00..befed225d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 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 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(); /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -70,13 +43,10 @@ public interface SeekRequestOrBuilder
    * 
* * .google.protobuf.Timestamp time = 2; - * * @return Whether the time field is set. */ boolean hasTime(); /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -92,13 +62,10 @@ public interface SeekRequestOrBuilder
    * 
* * .google.protobuf.Timestamp time = 2; - * * @return The time. */ com.google.protobuf.Timestamp getTime(); /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -118,8 +85,6 @@ public interface SeekRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -127,13 +92,10 @@ public interface SeekRequestOrBuilder
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** - * - * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -141,13 +103,10 @@ public interface SeekRequestOrBuilder
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The snapshot. */ java.lang.String getSnapshot(); /** - * - * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -155,10 +114,10 @@ public interface SeekRequestOrBuilder
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for snapshot. */ - com.google.protobuf.ByteString getSnapshotBytes(); + com.google.protobuf.ByteString + getSnapshotBytes(); public com.google.pubsub.v1.SeekRequest.TargetCase getTargetCase(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index fe0aff80d..e6398f324 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SeekResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private SeekResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,30 +66,27 @@ private SeekResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; @@ -117,7 +98,8 @@ 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 { unknownFields.writeTo(output); } @@ -135,7 +117,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); @@ -158,126 +140,118 @@ 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() @@ -285,15 +259,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -301,9 +276,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 @@ -331,39 +306,38 @@ 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; @@ -400,9 +374,9 @@ public Builder mergeFrom( } 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); } @@ -412,12 +386,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(); } @@ -426,16 +400,16 @@ 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 { - return new SeekResponse(input, extensionRegistry); - } - }; + 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 { + return new SeekResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -450,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..df6f6dd5c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 927b203e8..b9b452c27 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; /** - * - * *
  * A snapshot resource. Snapshots are used in
  * [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
@@ -31,16 +14,15 @@
  *
  * 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_ = "";
@@ -48,15 +30,16 @@ private Snapshot() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Snapshot();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Snapshot(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,55 +59,51 @@ private Snapshot(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              topic_ = s;
-              break;
+            topic_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (expireTime_ != null) {
+              subBuilder = expireTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (expireTime_ != null) {
-                subBuilder = expireTime_.toBuilder();
-              }
-              expireTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(expireTime_);
-                expireTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(expireTime_);
+              expireTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -132,33 +111,34 @@ private Snapshot(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       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);
   }
@@ -166,14 +146,11 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The name of the snapshot.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -182,29 +159,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; } } /** - * - * *
    * The name of the snapshot.
    * 
* * string name = 1; - * * @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 { @@ -215,14 +192,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TOPIC_FIELD_NUMBER = 2; private volatile java.lang.Object topic_; /** - * - * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ @java.lang.Override @@ -231,29 +205,29 @@ 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; } } /** - * - * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.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 { @@ -264,8 +238,6 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * 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
@@ -280,7 +252,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -288,8 +259,6 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * 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
@@ -304,7 +273,6 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return The expireTime. */ @java.lang.Override @@ -312,8 +280,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * 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
@@ -335,23 +301,24 @@ 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 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<
+        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,
+                "");
   }
-
-  private com.google.protobuf.MapField labels_;
-
-  private com.google.protobuf.MapField internalGetLabels() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> 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_;
   }
@@ -360,8 +327,6 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -369,22 +334,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -393,12 +358,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -407,16 +371,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      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;
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -425,11 +389,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -437,7 +402,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -449,7 +413,8 @@ 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_);
     }
@@ -459,8 +424,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (expireTime_ != null) {
       output.writeMessage(3, getExpireTime());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        4);
     unknownFields.writeTo(output);
   }
 
@@ -477,17 +446,18 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
     }
     if (expireTime_ != null) {
-      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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -497,20 +467,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.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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -539,103 +513,97 @@ 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)
@@ -646,39 +614,41 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         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.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         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);
     }
@@ -688,15 +658,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -715,7 +686,8 @@ 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;
     }
 
@@ -754,39 +726,38 @@ public com.google.pubsub.v1.Snapshot 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.Snapshot) {
-        return mergeFrom((com.google.pubsub.v1.Snapshot) other);
+        return mergeFrom((com.google.pubsub.v1.Snapshot)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -806,7 +777,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -835,25 +807,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the snapshot.
      * 
* * string name = 1; - * * @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; @@ -862,21 +831,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the snapshot.
      * 
* * string name = 1; - * * @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 { @@ -884,61 +852,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the snapshot.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the snapshot.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the snapshot.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -946,20 +907,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object topic_ = ""; /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.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; @@ -968,21 +927,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.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 { @@ -990,61 +948,54 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.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) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; @@ -1052,13 +1003,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * 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
@@ -1073,15 +1019,12 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * 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
@@ -1096,21 +1039,16 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @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(); } } /** - * - * *
      * 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
@@ -1140,8 +1078,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1157,7 +1093,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 3;
      */
-    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expireTime_ = builderForValue.build();
         onChanged();
@@ -1168,8 +1105,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1189,7 +1124,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
         if (expireTime_ != null) {
           expireTime_ =
-              com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
         } else {
           expireTime_ = value;
         }
@@ -1201,8 +1136,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1230,8 +1163,6 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1248,13 +1179,11 @@ public Builder clearExpireTime() {
      * .google.protobuf.Timestamp expire_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
-
+      
       onChanged();
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1274,14 +1203,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * 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
@@ -1298,37 +1224,35 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 3;
      */
     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 labels_;
-
-    private com.google.protobuf.MapField internalGetLabels() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> 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() {
-      onChanged();
-      ;
+    internalGetMutableLabels() {
+      onChanged();;
       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();
@@ -1340,8 +1264,6 @@ public int getLabelsCount() {
       return internalGetLabels().getMap().size();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1349,22 +1271,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1373,12 +1295,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1387,17 +1308,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        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;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1406,11 +1326,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @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();
       }
@@ -1418,12 +1339,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1431,21 +1351,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1453,20 +1375,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    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");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1474,13 +1395,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       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);
     }
 
@@ -1490,12 +1414,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();
   }
@@ -1504,16 +1428,16 @@ 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 {
-          return new Snapshot(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new Snapshot(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1528,4 +1452,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
similarity index 99%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
index fe26eefe0..d415eefb4 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
similarity index 79%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
index 74761e4ad..e6e74b5ee 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
@@ -1,81 +1,53 @@
-/*
- * Copyright 2020 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
 
 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 {
 
   /**
-   *
-   *
    * 
    * The name of the snapshot.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the snapshot.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * 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
@@ -90,13 +62,10 @@ public interface SnapshotOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * 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
@@ -111,13 +80,10 @@ public interface SnapshotOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * 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
@@ -136,8 +102,6 @@ public interface SnapshotOrBuilder
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -147,8 +111,6 @@ public interface SnapshotOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -156,13 +118,15 @@ public interface SnapshotOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  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();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -170,10 +134,9 @@ public interface SnapshotOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -183,13 +146,11 @@ public interface SnapshotOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -197,5 +158,7 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
similarity index 81%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
index fbeb6c13b..c0911af0b 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 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
 
 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
@@ -29,16 +12,15 @@
  *
  * 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.EMPTY;
@@ -49,15 +31,16 @@ private StreamingPullRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingPullRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingPullRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,85 +60,79 @@ private StreamingPullRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              subscription_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                ackIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              ackIds_.add(s);
-              break;
+            subscription_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              ackIds_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 24:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                modifyDeadlineSeconds_ = newIntList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              modifyDeadlineSeconds_.addInt(input.readInt32());
-              break;
+            ackIds_.add(s);
+            break;
+          }
+          case 24: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              modifyDeadlineSeconds_ = newIntList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 26:
-            {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
-                modifyDeadlineSeconds_ = newIntList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              while (input.getBytesUntilLimit() > 0) {
-                modifyDeadlineSeconds_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
+            modifyDeadlineSeconds_.addInt(input.readInt32());
+            break;
+          }
+          case 26: {
+            int length = input.readRawVarint32();
+            int limit = input.pushLimit(length);
+            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
+              modifyDeadlineSeconds_ = newIntList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              modifyDeadlineAckIds_.add(s);
-              break;
+            while (input.getBytesUntilLimit() > 0) {
+              modifyDeadlineSeconds_.addInt(input.readInt32());
             }
-          case 40:
-            {
-              streamAckDeadlineSeconds_ = input.readInt32();
-              break;
+            input.popLimit(limit);
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            modifyDeadlineAckIds_.add(s);
+            break;
+          }
+          case 40: {
 
-              clientId_ = s;
-              break;
-            }
-          case 56:
-            {
-              maxOutstandingMessages_ = input.readInt64();
-              break;
-            }
-          case 64:
-            {
-              maxOutstandingBytes_ = input.readInt64();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            streamAckDeadlineSeconds_ = input.readInt32();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            clientId_ = s;
+            break;
+          }
+          case 56: {
+
+            maxOutstandingMessages_ = input.readInt64();
+            break;
+          }
+          case 64: {
+
+            maxOutstandingBytes_ = input.readInt64();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -163,7 +140,8 @@ private StreamingPullRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         ackIds_ = ackIds_.getUnmodifiableView();
@@ -178,27 +156,22 @@ private StreamingPullRequest(
       makeExtensionsImmutable();
     }
   }
-
-  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;
   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
@@ -206,10 +179,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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 @@ -218,15 +188,14 @@ 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
@@ -234,18 +203,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. */ @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 { @@ -256,8 +224,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int ACK_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ackIds_; /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -267,15 +233,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * repeated string ack_ids = 2; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_; } /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -285,15 +249,12 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
    * 
* * repeated string ack_ids = 2; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -303,7 +264,6 @@ public int getAckIdsCount() {
    * 
* * repeated string ack_ids = 2; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -311,8 +271,6 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -322,19 +280,17 @@ public java.lang.String getAckIds(int index) {
    * 
* * repeated string ack_ids = 2; - * * @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; private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_; /** - * - * *
    * 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
@@ -350,16 +306,14 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return A list containing the modifyDeadlineSeconds. */ @java.lang.Override - public java.util.List getModifyDeadlineSecondsList() { + public java.util.List + getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; } /** - * - * *
    * 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
@@ -375,15 +329,12 @@ public java.util.List getModifyDeadlineSecondsList() {
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** - * - * *
    * 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
@@ -399,21 +350,17 @@ public int getModifyDeadlineSecondsCount() {
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @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; private com.google.protobuf.LazyStringList modifyDeadlineAckIds_; /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -423,15 +370,13 @@ public int getModifyDeadlineSeconds(int index) {
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return A list containing the modifyDeadlineAckIds. */ - public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { + public com.google.protobuf.ProtocolStringList + getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_; } /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -441,15 +386,12 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -459,7 +401,6 @@ public int getModifyDeadlineAckIdsCount() {
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ @@ -467,8 +408,6 @@ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -478,19 +417,17 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @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_; /** - * - * *
    * 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
@@ -499,7 +436,6 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
    * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamAckDeadlineSeconds. */ @java.lang.Override @@ -510,8 +446,6 @@ public int getStreamAckDeadlineSeconds() { public static final int CLIENT_ID_FIELD_NUMBER = 6; private volatile java.lang.Object clientId_; /** - * - * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -522,7 +456,6 @@ public int getStreamAckDeadlineSeconds() {
    * 
* * string client_id = 6; - * * @return The clientId. */ @java.lang.Override @@ -531,15 +464,14 @@ 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; } } /** - * - * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -550,15 +482,16 @@ public java.lang.String getClientId() {
    * 
* * string client_id = 6; - * * @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 { @@ -569,8 +502,6 @@ public com.google.protobuf.ByteString getClientIdBytes() { public static final int MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER = 7; private long maxOutstandingMessages_; /** - * - * *
    * Flow control settings for the maximum number of outstanding messages. When
    * there are `max_outstanding_messages` or more currently sent to the
@@ -584,7 +515,6 @@ public com.google.protobuf.ByteString getClientIdBytes() {
    * 
* * int64 max_outstanding_messages = 7; - * * @return The maxOutstandingMessages. */ @java.lang.Override @@ -595,8 +525,6 @@ public long getMaxOutstandingMessages() { public static final int MAX_OUTSTANDING_BYTES_FIELD_NUMBER = 8; private long maxOutstandingBytes_; /** - * - * *
    * Flow control settings for the maximum number of outstanding bytes. When
    * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -610,7 +538,6 @@ public long getMaxOutstandingMessages() {
    * 
* * int64 max_outstanding_bytes = 8; - * * @return The maxOutstandingBytes. */ @java.lang.Override @@ -619,7 +546,6 @@ public long getMaxOutstandingBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -631,7 +557,8 @@ 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_); @@ -647,8 +574,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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_); @@ -685,14 +611,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; } @@ -705,16 +631,19 @@ 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -724,22 +653,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -770,112 +706,107 @@ 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) + unknownFields.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
@@ -884,23 +815,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
@@ -908,15 +837,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -940,9 +870,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
@@ -961,8 +891,7 @@ 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);
+      com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this);
       int from_bitField0_ = bitField0_;
       result.subscription_ = subscription_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -992,39 +921,38 @@ public com.google.pubsub.v1.StreamingPullRequest 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.StreamingPullRequest) {
-        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest) other);
+        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1108,13 +1036,10 @@ public Builder mergeFrom(
       }
       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
@@ -1122,16 +1047,14 @@ 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; @@ -1140,8 +1063,6 @@ 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
@@ -1149,17 +1070,16 @@ 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 { @@ -1167,8 +1087,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * 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
@@ -1176,25 +1094,21 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
      * 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) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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
@@ -1202,21 +1116,16 @@ public Builder setSubscription(java.lang.String value) {
      * 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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
@@ -1224,36 +1133,30 @@ 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) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1263,15 +1166,13 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1281,15 +1182,12 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
      * 
* * repeated string ack_ids = 2; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1299,7 +1197,6 @@ public int getAckIdsCount() {
      * 
* * repeated string ack_ids = 2; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -1307,8 +1204,6 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1318,16 +1213,14 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2; - * * @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); } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1337,23 +1230,21 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
      * 
* * repeated string ack_ids = 2; - * * @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) { + public Builder setAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1363,22 +1254,20 @@ public Builder setAckIds(int index, java.lang.String value) {
      * 
* * repeated string ack_ids = 2; - * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds(java.lang.String value) { + public Builder addAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1388,19 +1277,18 @@ public Builder addAckIds(java.lang.String value) {
      * 
* * repeated string ack_ids = 2; - * * @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_); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1410,7 +1298,6 @@ public Builder addAllAckIds(java.lang.Iterable values) {
      * 
* * repeated string ack_ids = 2; - * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -1420,8 +1307,6 @@ public Builder clearAckIds() { return this; } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1431,15 +1316,15 @@ public Builder clearAckIds() {
      * 
* * repeated string ack_ids = 2; - * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); @@ -1447,16 +1332,13 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); - private void ensureModifyDeadlineSecondsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { modifyDeadlineSeconds_ = mutableCopy(modifyDeadlineSeconds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * 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
@@ -1472,17 +1354,14 @@ private void ensureModifyDeadlineSecondsIsMutable() {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return A list containing the modifyDeadlineSeconds. */ - public java.util.List getModifyDeadlineSecondsList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) - : modifyDeadlineSeconds_; + public java.util.List + getModifyDeadlineSecondsList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) : modifyDeadlineSeconds_; } /** - * - * *
      * 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
@@ -1498,15 +1377,12 @@ public java.util.List getModifyDeadlineSecondsList() {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** - * - * *
      * 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
@@ -1522,7 +1398,6 @@ public int getModifyDeadlineSecondsCount() {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ @@ -1530,8 +1405,6 @@ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); } /** - * - * *
      * 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
@@ -1547,20 +1420,18 @@ public int getModifyDeadlineSeconds(int index) {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @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); onChanged(); return this; } /** - * - * *
      * 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
@@ -1576,7 +1447,6 @@ public Builder setModifyDeadlineSeconds(int index, int value) {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param value The modifyDeadlineSeconds to add. * @return This builder for chaining. */ @@ -1587,8 +1457,6 @@ public Builder addModifyDeadlineSeconds(int value) { return this; } /** - * - * *
      * 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
@@ -1604,20 +1472,18 @@ public Builder addModifyDeadlineSeconds(int value) {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @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_); onChanged(); return this; } /** - * - * *
      * 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
@@ -1633,7 +1499,6 @@ public Builder addAllModifyDeadlineSeconds(
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return This builder for chaining. */ public Builder clearModifyDeadlineSeconds() { @@ -1643,18 +1508,14 @@ public Builder clearModifyDeadlineSeconds() { return this; } - private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureModifyDeadlineAckIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1664,15 +1525,13 @@ private void ensureModifyDeadlineAckIdsIsMutable() {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return A list containing the modifyDeadlineAckIds. */ - public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { + public com.google.protobuf.ProtocolStringList + getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_.getUnmodifiableView(); } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1682,15 +1541,12 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1700,7 +1556,6 @@ public int getModifyDeadlineAckIdsCount() {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ @@ -1708,8 +1563,6 @@ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1719,16 +1572,14 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @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); } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1738,23 +1589,21 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @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) { + public Builder setModifyDeadlineAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureModifyDeadlineAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1764,22 +1613,20 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param value The modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addModifyDeadlineAckIds(java.lang.String value) { + public Builder addModifyDeadlineAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureModifyDeadlineAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1789,19 +1636,18 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @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_); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1811,7 +1657,6 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return This builder for chaining. */ public Builder clearModifyDeadlineAckIds() { @@ -1821,8 +1666,6 @@ public Builder clearModifyDeadlineAckIds() { return this; } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1832,25 +1675,23 @@ public Builder clearModifyDeadlineAckIds() {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param value The bytes of the modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addModifyDeadlineAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); onChanged(); 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
@@ -1859,7 +1700,6 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamAckDeadlineSeconds. */ @java.lang.Override @@ -1867,8 +1707,6 @@ 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
@@ -1877,19 +1715,16 @@ 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. */ public Builder setStreamAckDeadlineSeconds(int value) { - + streamAckDeadlineSeconds_ = value; onChanged(); 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
@@ -1898,11 +1733,10 @@ public Builder setStreamAckDeadlineSeconds(int value) {
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStreamAckDeadlineSeconds() { - + streamAckDeadlineSeconds_ = 0; onChanged(); return this; @@ -1910,8 +1744,6 @@ public Builder clearStreamAckDeadlineSeconds() { private java.lang.Object clientId_ = ""; /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1922,13 +1754,13 @@ public Builder clearStreamAckDeadlineSeconds() {
      * 
* * string client_id = 6; - * * @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; @@ -1937,8 +1769,6 @@ public java.lang.String getClientId() { } } /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1949,14 +1779,15 @@ public java.lang.String getClientId() {
      * 
* * string client_id = 6; - * * @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 { @@ -1964,8 +1795,6 @@ public com.google.protobuf.ByteString getClientIdBytes() { } } /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1976,22 +1805,20 @@ public com.google.protobuf.ByteString getClientIdBytes() {
      * 
* * string client_id = 6; - * * @param value The clientId to set. * @return This builder for chaining. */ - public Builder setClientId(java.lang.String value) { + public Builder setClientId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientId_ = value; onChanged(); return this; } /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -2002,18 +1829,15 @@ public Builder setClientId(java.lang.String value) {
      * 
* * string client_id = 6; - * * @return This builder for chaining. */ public Builder clearClientId() { - + clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -2024,25 +1848,23 @@ public Builder clearClientId() {
      * 
* * string client_id = 6; - * * @param value The bytes for clientId to set. * @return This builder for chaining. */ - public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; onChanged(); return this; } - private long maxOutstandingMessages_; + private long maxOutstandingMessages_ ; /** - * - * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -2056,7 +1878,6 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 max_outstanding_messages = 7; - * * @return The maxOutstandingMessages. */ @java.lang.Override @@ -2064,8 +1885,6 @@ public long getMaxOutstandingMessages() { return maxOutstandingMessages_; } /** - * - * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -2079,19 +1898,16 @@ public long getMaxOutstandingMessages() {
      * 
* * int64 max_outstanding_messages = 7; - * * @param value The maxOutstandingMessages to set. * @return This builder for chaining. */ public Builder setMaxOutstandingMessages(long value) { - + maxOutstandingMessages_ = value; onChanged(); return this; } /** - * - * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -2105,20 +1921,17 @@ public Builder setMaxOutstandingMessages(long value) {
      * 
* * int64 max_outstanding_messages = 7; - * * @return This builder for chaining. */ public Builder clearMaxOutstandingMessages() { - + maxOutstandingMessages_ = 0L; onChanged(); return this; } - private long maxOutstandingBytes_; + private long maxOutstandingBytes_ ; /** - * - * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -2132,7 +1945,6 @@ public Builder clearMaxOutstandingMessages() {
      * 
* * int64 max_outstanding_bytes = 8; - * * @return The maxOutstandingBytes. */ @java.lang.Override @@ -2140,8 +1952,6 @@ public long getMaxOutstandingBytes() { return maxOutstandingBytes_; } /** - * - * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -2155,19 +1965,16 @@ public long getMaxOutstandingBytes() {
      * 
* * int64 max_outstanding_bytes = 8; - * * @param value The maxOutstandingBytes to set. * @return This builder for chaining. */ public Builder setMaxOutstandingBytes(long value) { - + maxOutstandingBytes_ = value; onChanged(); return this; } /** - * - * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -2181,18 +1988,17 @@ public Builder setMaxOutstandingBytes(long value) {
      * 
* * int64 max_outstanding_bytes = 8; - * * @return This builder for chaining. */ public Builder clearMaxOutstandingBytes() { - + maxOutstandingBytes_ = 0L; 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); } @@ -2202,12 +2008,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(); } @@ -2216,16 +2022,16 @@ 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 { - return new StreamingPullRequest(input, extensionRegistry); - } - }; + 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 { + return new StreamingPullRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2240,4 +2046,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java similarity index 88% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index eca392820..fc77fa2d1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 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
@@ -33,16 +15,11 @@ public interface StreamingPullRequestOrBuilder
    * 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
@@ -50,17 +27,13 @@ public interface StreamingPullRequestOrBuilder
    * 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(); /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -70,13 +43,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string ack_ids = 2; - * * @return A list containing the ackIds. */ - java.util.List getAckIdsList(); + java.util.List + getAckIdsList(); /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -86,13 +57,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string ack_ids = 2; - * * @return The count of ackIds. */ int getAckIdsCount(); /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -102,14 +70,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string ack_ids = 2; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -119,15 +84,13 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string ack_ids = 2; - * * @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); /** - * - * *
    * 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
@@ -143,13 +106,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return A list containing the modifyDeadlineSeconds. */ java.util.List getModifyDeadlineSecondsList(); /** - * - * *
    * 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
@@ -165,13 +125,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return The count of modifyDeadlineSeconds. */ int getModifyDeadlineSecondsCount(); /** - * - * *
    * 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
@@ -187,15 +144,12 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ int getModifyDeadlineSeconds(int index); /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -205,13 +159,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return A list containing the modifyDeadlineAckIds. */ - java.util.List getModifyDeadlineAckIdsList(); + java.util.List + getModifyDeadlineAckIdsList(); /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -221,13 +173,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return The count of modifyDeadlineAckIds. */ int getModifyDeadlineAckIdsCount(); /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -237,14 +186,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ java.lang.String getModifyDeadlineAckIds(int index); /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -254,15 +200,13 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @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
@@ -271,14 +215,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamAckDeadlineSeconds. */ int getStreamAckDeadlineSeconds(); /** - * - * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -289,13 +230,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * string client_id = 6; - * * @return The clientId. */ java.lang.String getClientId(); /** - * - * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -306,14 +244,12 @@ public interface StreamingPullRequestOrBuilder
    * 
* * string client_id = 6; - * * @return The bytes for clientId. */ - com.google.protobuf.ByteString getClientIdBytes(); + com.google.protobuf.ByteString + getClientIdBytes(); /** - * - * *
    * Flow control settings for the maximum number of outstanding messages. When
    * there are `max_outstanding_messages` or more currently sent to the
@@ -327,14 +263,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * int64 max_outstanding_messages = 7; - * * @return The maxOutstandingMessages. */ long getMaxOutstandingMessages(); /** - * - * *
    * Flow control settings for the maximum number of outstanding bytes. When
    * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -348,7 +281,6 @@ public interface StreamingPullRequestOrBuilder
    * 
* * int64 max_outstanding_bytes = 8; - * * @return The maxOutstandingBytes. */ long getMaxOutstandingBytes(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 0ea49f678..22b95f357 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; /** - * - * *
  * Response for the `StreamingPull` method. This response is used to stream
  * messages from the server to the client.
@@ -28,31 +11,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingPullResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,79 +55,61 @@ private StreamingPullResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                receivedMessages_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              receivedMessages_.add(
-                  input.readMessage(
-                      com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              receivedMessages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
-                  subBuilder = null;
-              if (modifyAckDeadlineConfirmation_ != null) {
-                subBuilder = modifyAckDeadlineConfirmation_.toBuilder();
-              }
-              modifyAckDeadlineConfirmation_ =
-                  input.readMessage(
-                      com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(modifyAckDeadlineConfirmation_);
-                modifyAckDeadlineConfirmation_ = subBuilder.buildPartial();
-              }
-
-              break;
+            receivedMessages_.add(
+                input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder subBuilder = null;
+            if (modifyAckDeadlineConfirmation_ != null) {
+              subBuilder = modifyAckDeadlineConfirmation_.toBuilder();
+            }
+            modifyAckDeadlineConfirmation_ = input.readMessage(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(modifyAckDeadlineConfirmation_);
+              modifyAckDeadlineConfirmation_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder =
-                  null;
-              if (subscriptionProperties_ != null) {
-                subBuilder = subscriptionProperties_.toBuilder();
-              }
-              subscriptionProperties_ =
-                  input.readMessage(
-                      com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subscriptionProperties_);
-                subscriptionProperties_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder = null;
+            if (subscriptionProperties_ != null) {
+              subBuilder = subscriptionProperties_.toBuilder();
+            }
+            subscriptionProperties_ = input.readMessage(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subscriptionProperties_);
+              subscriptionProperties_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder
-                  subBuilder = null;
-              if (acknowledgeConfirmation_ != null) {
-                subBuilder = acknowledgeConfirmation_.toBuilder();
-              }
-              acknowledgeConfirmation_ =
-                  input.readMessage(
-                      com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(acknowledgeConfirmation_);
-                acknowledgeConfirmation_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 42: {
+            com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder subBuilder = null;
+            if (acknowledgeConfirmation_ != null) {
+              subBuilder = acknowledgeConfirmation_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            acknowledgeConfirmation_ = input.readMessage(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(acknowledgeConfirmation_);
+              acknowledgeConfirmation_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -152,7 +117,8 @@ private StreamingPullResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_);
@@ -161,187 +127,151 @@ private StreamingPullResponse(
       makeExtensionsImmutable();
     }
   }
-
-  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 {
 
     /**
-     *
-     *
      * 
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return A list containing the ackIds. */ - java.util.List getAckIdsList(); + java.util.List + getAckIdsList(); /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return The count of ackIds. */ int getAckIdsCount(); /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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); /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return A list containing the invalidAckIds. */ - java.util.List getInvalidAckIdsList(); + java.util.List + getInvalidAckIdsList(); /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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); /** - * - * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @return A list containing the unorderedAckIds. */ - java.util.List getUnorderedAckIdsList(); + java.util.List + getUnorderedAckIdsList(); /** - * - * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @return The count of unorderedAckIds. */ int getUnorderedAckIdsCount(); /** - * - * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ java.lang.String getUnorderedAckIds(int index); /** - * - * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @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); } /** - * - * *
    * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    * previously received message.
@@ -349,16 +279,15 @@ public interface AcknowledgeConfirmationOrBuilder
    *
    * 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.EMPTY;
       invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -367,15 +296,16 @@ private AcknowledgeConfirmation() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new AcknowledgeConfirmation();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private AcknowledgeConfirmation(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -395,43 +325,40 @@ private AcknowledgeConfirmation(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  ackIds_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                ackIds_.add(s);
-                break;
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                ackIds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                invalidAckIds_.add(s);
-                break;
+              ackIds_.add(s);
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                  unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000004;
-                }
-                unorderedAckIds_.add(s);
-                break;
+              invalidAckIds_.add(s);
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000004;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              unorderedAckIds_.add(s);
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -439,7 +366,8 @@ private AcknowledgeConfirmation(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           ackIds_ = ackIds_.getUnmodifiableView();
@@ -454,61 +382,50 @@ private AcknowledgeConfirmation(
         makeExtensionsImmutable();
       }
     }
-
-    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;
     private com.google.protobuf.LazyStringList ackIds_;
     /**
-     *
-     *
      * 
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_; } /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -516,63 +433,53 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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; private com.google.protobuf.LazyStringList invalidAckIds_; /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList + getInvalidAckIdsList() { return invalidAckIds_; } /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -580,61 +487,51 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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; private com.google.protobuf.LazyStringList unorderedAckIds_; /** - * - * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @return A list containing the unorderedAckIds. */ - public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { + public com.google.protobuf.ProtocolStringList + getUnorderedAckIdsList() { return unorderedAckIds_; } /** - * - * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @return The count of unorderedAckIds. */ public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } /** - * - * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ @@ -642,23 +539,20 @@ public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } /** - * - * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @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); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -670,7 +564,8 @@ 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)); } @@ -721,17 +616,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 (!getAckIdsList() + .equals(other.getAckIdsList())) return false; + if (!getInvalidAckIdsList() + .equals(other.getInvalidAckIdsList())) return false; + if (!getUnorderedAckIdsList() + .equals(other.getUnorderedAckIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -761,95 +658,87 @@ 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 @@ -859,8 +748,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Acknowledgement IDs sent in one or more previous requests to acknowledge a
      * previously received message.
@@ -868,41 +755,38 @@ 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()
+      // Construct using com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder()
       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) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -916,16 +800,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_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
@@ -939,8 +821,7 @@ 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);
+        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result = new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           ackIds_ = ackIds_.getUnmodifiableView();
@@ -965,53 +846,46 @@ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation buildP
       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_;
@@ -1061,9 +935,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1072,55 +944,44 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList ackIds_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
-
+      private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureAckIdsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
       /**
-       *
-       *
        * 
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -1128,90 +989,80 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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); } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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) { + public Builder setAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds(java.lang.String value) { + public Builder addAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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_); onChanged(); return this; } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -1221,77 +1072,65 @@ public Builder clearAckIds() { return this; } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList invalidAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInvalidAckIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList + getInvalidAckIdsList() { return invalidAckIds_.getUnmodifiableView(); } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -1299,95 +1138,85 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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); } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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) { + public Builder setInvalidAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInvalidAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); invalidAckIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param value The invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIds(java.lang.String value) { + public Builder addInvalidAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInvalidAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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_); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return This builder for chaining. */ public Builder clearInvalidAckIds() { @@ -1397,75 +1226,63 @@ public Builder clearInvalidAckIds() { return this; } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addInvalidAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList unorderedAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnorderedAckIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList(unorderedAckIds_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @return A list containing the unorderedAckIds. */ - public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { + public com.google.protobuf.ProtocolStringList + getUnorderedAckIdsList() { return unorderedAckIds_.getUnmodifiableView(); } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @return The count of unorderedAckIds. */ public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ @@ -1473,90 +1290,80 @@ public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @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); } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @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) { + public Builder setUnorderedAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnorderedAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @param value The unorderedAckIds to add. * @return This builder for chaining. */ - public Builder addUnorderedAckIds(java.lang.String value) { + public Builder addUnorderedAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnorderedAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.add(value); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @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_); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @return This builder for chaining. */ public Builder clearUnorderedAckIds() { @@ -1566,28 +1373,25 @@ public Builder clearUnorderedAckIds() { return this; } /** - * - * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; - * * @param value The bytes of the unorderedAckIds to add. * @return This builder for chaining. */ - public Builder addUnorderedAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addUnorderedAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1600,32 +1404,30 @@ 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 { - return new AcknowledgeConfirmation(input, extensionRegistry); - } - }; + 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 { + return new AcknowledgeConfirmation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1637,126 +1439,103 @@ 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 { /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return A list containing the ackIds. */ - java.util.List getAckIdsList(); + java.util.List + getAckIdsList(); /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return The count of ackIds. */ int getAckIdsCount(); /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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); /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return A list containing the invalidAckIds. */ - java.util.List getInvalidAckIdsList(); + java.util.List + getInvalidAckIdsList(); /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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); } /** - * - * *
    * Acknowledgement IDs sent in one or more previous requests to modify the
    * deadline for a specific message.
@@ -1764,18 +1543,15 @@ public interface ModifyAckDeadlineConfirmationOrBuilder
    *
    * 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.EMPTY;
       invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -1783,15 +1559,16 @@ private ModifyAckDeadlineConfirmation() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ModifyAckDeadlineConfirmation();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private ModifyAckDeadlineConfirmation(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1811,33 +1588,31 @@ private ModifyAckDeadlineConfirmation(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  ackIds_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                ackIds_.add(s);
-                break;
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                ackIds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
               }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                  invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
-                  mutable_bitField0_ |= 0x00000002;
-                }
-                invalidAckIds_.add(s);
-                break;
+              ackIds_.add(s);
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              invalidAckIds_.add(s);
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1845,7 +1620,8 @@ private ModifyAckDeadlineConfirmation(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           ackIds_ = ackIds_.getUnmodifiableView();
@@ -1857,62 +1633,50 @@ private ModifyAckDeadlineConfirmation(
         makeExtensionsImmutable();
       }
     }
-
-    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;
     private com.google.protobuf.LazyStringList ackIds_;
     /**
-     *
-     *
      * 
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_; } /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -1920,63 +1684,53 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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; private com.google.protobuf.LazyStringList invalidAckIds_; /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList + getInvalidAckIdsList() { return invalidAckIds_; } /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -1984,24 +1738,21 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** - * - * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2013,7 +1764,8 @@ 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)); } @@ -2053,17 +1805,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.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 (!getAckIdsList() + .equals(other.getAckIdsList())) return false; + if (!getInvalidAckIdsList() + .equals(other.getInvalidAckIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2088,101 +1840,88 @@ 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 @@ -2192,8 +1931,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Acknowledgement IDs sent in one or more previous requests to modify the
      * deadline for a specific message.
@@ -2201,42 +1938,38 @@ 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()
+      // Construct using com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder()
       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) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2248,22 +1981,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.pubsub.v1.PubsubProto
-            .internal_static_google_pubsub_v1_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);
         }
@@ -2271,10 +2001,8 @@ 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);
+      public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation buildPartial() {
+        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result = new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           ackIds_ = ackIds_.getUnmodifiableView();
@@ -2294,54 +2022,46 @@ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
       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_;
@@ -2377,14 +2097,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parsedMessage =
-            null;
+        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2393,55 +2110,44 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList ackIds_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
-
+      private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureAckIdsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
       /**
-       *
-       *
        * 
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -2449,90 +2155,80 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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); } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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) { + public Builder setAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds(java.lang.String value) { + public Builder addAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @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_); onChanged(); return this; } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -2542,77 +2238,65 @@ public Builder clearAckIds() { return this; } /** - * - * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; - * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList invalidAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInvalidAckIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList + getInvalidAckIdsList() { return invalidAckIds_.getUnmodifiableView(); } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -2620,95 +2304,85 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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); } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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) { + public Builder setInvalidAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInvalidAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); invalidAckIds_.set(index, value); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param value The invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIds(java.lang.String value) { + public Builder addInvalidAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInvalidAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @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_); onChanged(); return this; } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @return This builder for chaining. */ public Builder clearInvalidAckIds() { @@ -2718,29 +2392,26 @@ public Builder clearInvalidAckIds() { return this; } /** - * - * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; - * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addInvalidAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2753,33 +2424,30 @@ 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 { - return new ModifyAckDeadlineConfirmation(input, extensionRegistry); - } - }; + 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 { + return new ModifyAckDeadlineConfirmation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2791,75 +2459,67 @@ 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 { /** - * - * *
      * True iff exactly once delivery is enabled for this subscription.
      * 
* * bool exactly_once_delivery_enabled = 1; - * * @return The exactlyOnceDeliveryEnabled. */ boolean getExactlyOnceDeliveryEnabled(); /** - * - * *
      * True iff message ordering is enabled for this subscription.
      * 
* * bool message_ordering_enabled = 2; - * * @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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SubscriptionProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2878,23 +2538,23 @@ private SubscriptionProperties( case 0: done = true; break; - case 8: - { - exactlyOnceDeliveryEnabled_ = input.readBool(); - break; - } - case 16: - { - messageOrderingEnabled_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + exactlyOnceDeliveryEnabled_ = input.readBool(); + break; + } + case 16: { + + messageOrderingEnabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2902,39 +2562,34 @@ private SubscriptionProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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_; /** - * - * *
      * True iff exactly once delivery is enabled for this subscription.
      * 
* * bool exactly_once_delivery_enabled = 1; - * * @return The exactlyOnceDeliveryEnabled. */ @java.lang.Override @@ -2945,14 +2600,11 @@ public boolean getExactlyOnceDeliveryEnabled() { public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; private boolean messageOrderingEnabled_; /** - * - * *
      * True iff message ordering is enabled for this subscription.
      * 
* * bool message_ordering_enabled = 2; - * * @return The messageOrderingEnabled. */ @java.lang.Override @@ -2961,7 +2613,6 @@ public boolean getMessageOrderingEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2973,7 +2624,8 @@ 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_); } @@ -2990,11 +2642,12 @@ 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3004,16 +2657,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3026,105 +2680,98 @@ 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) + unknownFields.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 @@ -3134,49 +2781,44 @@ 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() + // Construct using com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3188,16 +2830,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_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 @@ -3211,8 +2851,7 @@ 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); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); result.exactlyOnceDeliveryEnabled_ = exactlyOnceDeliveryEnabled_; result.messageOrderingEnabled_ = messageOrderingEnabled_; onBuilt(); @@ -3223,53 +2862,46 @@ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPa 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()); } @@ -3295,9 +2927,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) - e.getUnfinishedMessage(); + parsedMessage = (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3307,16 +2937,13 @@ public Builder mergeFrom( return this; } - private boolean exactlyOnceDeliveryEnabled_; + private boolean exactlyOnceDeliveryEnabled_ ; /** - * - * *
        * True iff exactly once delivery is enabled for this subscription.
        * 
* * bool exactly_once_delivery_enabled = 1; - * * @return The exactlyOnceDeliveryEnabled. */ @java.lang.Override @@ -3324,51 +2951,42 @@ public boolean getExactlyOnceDeliveryEnabled() { return exactlyOnceDeliveryEnabled_; } /** - * - * *
        * True iff exactly once delivery is enabled for this subscription.
        * 
* * bool exactly_once_delivery_enabled = 1; - * * @param value The exactlyOnceDeliveryEnabled to set. * @return This builder for chaining. */ public Builder setExactlyOnceDeliveryEnabled(boolean value) { - + exactlyOnceDeliveryEnabled_ = value; onChanged(); return this; } /** - * - * *
        * True iff exactly once delivery is enabled for this subscription.
        * 
* * bool exactly_once_delivery_enabled = 1; - * * @return This builder for chaining. */ public Builder clearExactlyOnceDeliveryEnabled() { - + exactlyOnceDeliveryEnabled_ = false; onChanged(); return this; } - private boolean messageOrderingEnabled_; + private boolean messageOrderingEnabled_ ; /** - * - * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; - * * @return The messageOrderingEnabled. */ @java.lang.Override @@ -3376,41 +2994,34 @@ public boolean getMessageOrderingEnabled() { return messageOrderingEnabled_; } /** - * - * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; - * * @param value The messageOrderingEnabled to set. * @return This builder for chaining. */ public Builder setMessageOrderingEnabled(boolean value) { - + messageOrderingEnabled_ = value; onChanged(); return this; } /** - * - * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; - * * @return This builder for chaining. */ public Builder clearMessageOrderingEnabled() { - + messageOrderingEnabled_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3423,32 +3034,30 @@ 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 { - return new SubscriptionProperties(input, extensionRegistry); - } - }; + 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 { + return new SubscriptionProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3460,17 +3069,15 @@ 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; } + } public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; private java.util.List receivedMessages_; /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3482,8 +3089,6 @@ public java.util.List getReceivedMessagesL return receivedMessages_; } /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3491,13 +3096,11 @@ public java.util.List getReceivedMessagesL * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReceivedMessagesOrBuilderList() { return receivedMessages_; } /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3509,8 +3112,6 @@ public int getReceivedMessagesCount() { return receivedMessages_.size(); } /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3522,8 +3123,6 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3531,25 +3130,20 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ @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_; /** - * - * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; * @return Whether the acknowledgeConfirmation field is set. */ @java.lang.Override @@ -3557,59 +3151,40 @@ public boolean hasAcknowledgeConfirmation() { return acknowledgeConfirmation_ != null; } /** - * - * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; * @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_; } /** - * - * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder - getAcknowledgeConfirmationOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder() { return getAcknowledgeConfirmation(); } 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_; /** - * - * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; * @return Whether the modifyAckDeadlineConfirmation field is set. */ @java.lang.Override @@ -3617,58 +3192,39 @@ public boolean hasModifyAckDeadlineConfirmation() { return modifyAckDeadlineConfirmation_ != null; } /** - * - * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; * @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_; } /** - * - * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder - getModifyAckDeadlineConfirmationOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder() { return getModifyAckDeadlineConfirmation(); } public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return Whether the subscriptionProperties field is set. */ @java.lang.Override @@ -3676,44 +3232,30 @@ public boolean hasSubscriptionProperties() { return subscriptionProperties_ != null; } /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @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_; } /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder - getSubscriptionPropertiesOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder() { return getSubscriptionProperties(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3725,7 +3267,8 @@ 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)); } @@ -3748,20 +3291,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 (modifyAckDeadlineConfirmation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getModifyAckDeadlineConfirmation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getModifyAckDeadlineConfirmation()); } if (subscriptionProperties_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubscriptionProperties()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSubscriptionProperties()); } if (acknowledgeConfirmation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAcknowledgeConfirmation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAcknowledgeConfirmation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3771,28 +3314,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3826,104 +3370,97 @@ 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.
@@ -3931,23 +3468,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
@@ -3955,17 +3490,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) {
         getReceivedMessagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3997,9 +3532,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
@@ -4018,8 +3553,7 @@ 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);
       int from_bitField0_ = bitField0_;
       if (receivedMessagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -4053,39 +3587,38 @@ public com.google.pubsub.v1.StreamingPullResponse 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.StreamingPullResponse) {
-        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse) other);
+        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4112,10 +3645,9 @@ 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_);
           }
@@ -4158,29 +3690,21 @@ public Builder mergeFrom(
       }
       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_;
 
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4195,8 +3719,6 @@ public java.util.List getReceivedMessagesL } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4211,8 +3733,6 @@ public int getReceivedMessagesCount() { } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4227,15 +3747,14 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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(); @@ -4249,8 +3768,6 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4269,8 +3786,6 @@ public Builder setReceivedMessages( return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4291,15 +3806,14 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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(); @@ -4313,8 +3827,6 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4333,8 +3845,6 @@ public Builder addReceivedMessages( return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4353,8 +3863,6 @@ public Builder addReceivedMessages( return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4365,7 +3873,8 @@ 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); @@ -4373,8 +3882,6 @@ public Builder addAllReceivedMessages( return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4392,8 +3899,6 @@ public Builder clearReceivedMessages() { return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4411,44 +3916,39 @@ public Builder removeReceivedMessages(int index) { return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( + int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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); } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public java.util.List - getReceivedMessagesOrBuilderList() { + public java.util.List + getReceivedMessagesOrBuilderList() { if (receivedMessagesBuilder_ != null) { return receivedMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -4456,8 +3956,6 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -4465,47 +3963,38 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ 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()); } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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()); } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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(), @@ -4515,69 +4004,46 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i 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_; /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; * @return Whether the acknowledgeConfirmation field is set. */ public boolean hasAcknowledgeConfirmation() { return acknowledgeConfirmationBuilder_ != null || acknowledgeConfirmation_ != null; } /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; * @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(); } } /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ - 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(); @@ -4591,20 +4057,15 @@ public Builder setAcknowledgeConfirmation( return this; } /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ 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(); onChanged(); @@ -4615,26 +4076,18 @@ public Builder setAcknowledgeConfirmation( return this; } /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ - public Builder mergeAcknowledgeConfirmation( - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { + public Builder mergeAcknowledgeConfirmation(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { if (acknowledgeConfirmationBuilder_ == null) { if (acknowledgeConfirmation_ != null) { acknowledgeConfirmation_ = - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder( - acknowledgeConfirmation_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder(acknowledgeConfirmation_).mergeFrom(value).buildPartial(); } else { acknowledgeConfirmation_ = value; } @@ -4646,16 +4099,12 @@ public Builder mergeAcknowledgeConfirmation( return this; } /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ public Builder clearAcknowledgeConfirmation() { if (acknowledgeConfirmationBuilder_ == null) { @@ -4669,139 +4118,96 @@ public Builder clearAcknowledgeConfirmation() { return this; } /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder - getAcknowledgeConfirmationBuilder() { - + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder getAcknowledgeConfirmationBuilder() { + onChanged(); return getAcknowledgeConfirmationFieldBuilder().getBuilder(); } /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ - 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_; } } /** - * - * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ 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_; /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; * @return Whether the modifyAckDeadlineConfirmation field is set. */ public boolean hasModifyAckDeadlineConfirmation() { - return modifyAckDeadlineConfirmationBuilder_ != null - || modifyAckDeadlineConfirmation_ != null; + return modifyAckDeadlineConfirmationBuilder_ != null || modifyAckDeadlineConfirmation_ != null; } /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; * @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(); } } /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ - 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(); @@ -4815,20 +4221,15 @@ public Builder setModifyAckDeadlineConfirmation( return this; } /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ 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(); onChanged(); @@ -4839,26 +4240,18 @@ public Builder setModifyAckDeadlineConfirmation( return this; } /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ - public Builder mergeModifyAckDeadlineConfirmation( - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { + public Builder mergeModifyAckDeadlineConfirmation(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { if (modifyAckDeadlineConfirmationBuilder_ == null) { if (modifyAckDeadlineConfirmation_ != null) { modifyAckDeadlineConfirmation_ = - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder( - modifyAckDeadlineConfirmation_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder(modifyAckDeadlineConfirmation_).mergeFrom(value).buildPartial(); } else { modifyAckDeadlineConfirmation_ = value; } @@ -4870,16 +4263,12 @@ public Builder mergeModifyAckDeadlineConfirmation( return this; } /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ public Builder clearModifyAckDeadlineConfirmation() { if (modifyAckDeadlineConfirmationBuilder_ == null) { @@ -4893,134 +4282,93 @@ public Builder clearModifyAckDeadlineConfirmation() { return this; } /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder - getModifyAckDeadlineConfirmationBuilder() { - + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder getModifyAckDeadlineConfirmationBuilder() { + onChanged(); return getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); } /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ - 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_; } } /** - * - * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ 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_; /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return Whether the subscriptionProperties field is set. */ public boolean hasSubscriptionProperties() { return subscriptionPropertiesBuilder_ != null || subscriptionProperties_ != null; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @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(); } } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - 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(); @@ -5034,15 +4382,11 @@ public Builder setSubscriptionProperties( return this; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ public Builder setSubscriptionProperties( com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder builderForValue) { @@ -5056,25 +4400,17 @@ public Builder setSubscriptionProperties( return this; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - public Builder mergeSubscriptionProperties( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { + public Builder mergeSubscriptionProperties(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { if (subscriptionPropertiesBuilder_ == null) { if (subscriptionProperties_ != null) { subscriptionProperties_ = - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder( - subscriptionProperties_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder(subscriptionProperties_).mergeFrom(value).buildPartial(); } else { subscriptionProperties_ = value; } @@ -5086,15 +4422,11 @@ public Builder mergeSubscriptionProperties( return this; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ public Builder clearSubscriptionProperties() { if (subscriptionPropertiesBuilder_ == null) { @@ -5108,73 +4440,55 @@ public Builder clearSubscriptionProperties() { return this; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder - getSubscriptionPropertiesBuilder() { - + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder() { + onChanged(); return getSubscriptionPropertiesFieldBuilder().getBuilder(); } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - 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_; } } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ 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); } @@ -5184,12 +4498,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(); } @@ -5198,16 +4512,16 @@ 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 { - return new StreamingPullResponse(input, extensionRegistry); - } - }; + 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 { + return new StreamingPullResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5222,4 +4536,6 @@ 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/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index b2bb7ba25..a805fdf9a 100644 --- a/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 @@ -1,41 +1,22 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; -public interface StreamingPullResponseOrBuilder - extends +public interface StreamingPullResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - java.util.List getReceivedMessagesList(); + java.util.List + getReceivedMessagesList(); /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -44,8 +25,6 @@ public interface StreamingPullResponseOrBuilder */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -54,157 +33,108 @@ public interface StreamingPullResponseOrBuilder */ int getReceivedMessagesCount(); /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - java.util.List + java.util.List getReceivedMessagesOrBuilderList(); /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); + com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index); /** - * - * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; * @return Whether the acknowledgeConfirmation field is set. */ boolean hasAcknowledgeConfirmation(); /** - * - * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; * @return The acknowledgeConfirmation. */ com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation(); /** - * - * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; */ - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder - getAcknowledgeConfirmationOrBuilder(); + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder(); /** - * - * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; * @return Whether the modifyAckDeadlineConfirmation field is set. */ boolean hasModifyAckDeadlineConfirmation(); /** - * - * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; * @return The modifyAckDeadlineConfirmation. */ - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation - getModifyAckDeadlineConfirmation(); + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation(); /** - * - * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; */ - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder - getModifyAckDeadlineConfirmationOrBuilder(); + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder(); /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return Whether the subscriptionProperties field is set. */ boolean hasSubscriptionProperties(); /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return The subscriptionProperties. */ com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties(); /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder - getSubscriptionPropertiesOrBuilder(); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java similarity index 77% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index c05fea07e..72bc75ec2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; /** - * - * *
  * A subscription resource.
  * 
* * 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_ = ""; @@ -45,15 +27,16 @@ private Subscription() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Subscription(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Subscription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,164 +56,147 @@ private Subscription( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 34: - { - com.google.pubsub.v1.PushConfig.Builder subBuilder = null; - if (pushConfig_ != null) { - subBuilder = pushConfig_.toBuilder(); - } - pushConfig_ = - input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pushConfig_); - pushConfig_ = subBuilder.buildPartial(); - } - - break; + topic_ = s; + break; + } + case 34: { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); } - case 40: - { - ackDeadlineSeconds_ = input.readInt32(); - break; + pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); } - case 56: - { - retainAckedMessages_ = input.readBool(); - break; + + break; + } + case 40: { + + ackDeadlineSeconds_ = input.readInt32(); + break; + } + case 56: { + + retainAckedMessages_ = input.readBool(); + break; + } + case 66: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); } - case 66: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (messageRetentionDuration_ != null) { - subBuilder = messageRetentionDuration_.toBuilder(); - } - messageRetentionDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageRetentionDuration_); - messageRetentionDuration_ = subBuilder.buildPartial(); - } - - break; + messageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); } - case 74: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 80: - { - enableMessageOrdering_ = input.readBool(); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 80: { + + enableMessageOrdering_ = input.readBool(); + break; + } + case 90: { + com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; + if (expirationPolicy_ != null) { + subBuilder = expirationPolicy_.toBuilder(); } - case 90: - { - com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; - if (expirationPolicy_ != null) { - subBuilder = expirationPolicy_.toBuilder(); - } - expirationPolicy_ = - input.readMessage( - com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expirationPolicy_); - expirationPolicy_ = subBuilder.buildPartial(); - } - - break; + expirationPolicy_ = input.readMessage(com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expirationPolicy_); + expirationPolicy_ = subBuilder.buildPartial(); } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 106: { + com.google.pubsub.v1.DeadLetterPolicy.Builder subBuilder = null; + if (deadLetterPolicy_ != null) { + subBuilder = deadLetterPolicy_.toBuilder(); } - case 106: - { - com.google.pubsub.v1.DeadLetterPolicy.Builder subBuilder = null; - if (deadLetterPolicy_ != null) { - subBuilder = deadLetterPolicy_.toBuilder(); - } - deadLetterPolicy_ = - input.readMessage( - com.google.pubsub.v1.DeadLetterPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deadLetterPolicy_); - deadLetterPolicy_ = subBuilder.buildPartial(); - } - - break; + deadLetterPolicy_ = input.readMessage(com.google.pubsub.v1.DeadLetterPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deadLetterPolicy_); + deadLetterPolicy_ = subBuilder.buildPartial(); } - case 114: - { - com.google.pubsub.v1.RetryPolicy.Builder subBuilder = null; - if (retryPolicy_ != null) { - subBuilder = retryPolicy_.toBuilder(); - } - retryPolicy_ = - input.readMessage(com.google.pubsub.v1.RetryPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retryPolicy_); - retryPolicy_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 114: { + com.google.pubsub.v1.RetryPolicy.Builder subBuilder = null; + if (retryPolicy_ != null) { + subBuilder = retryPolicy_.toBuilder(); } - case 120: - { - detached_ = input.readBool(); - break; + retryPolicy_ = input.readMessage(com.google.pubsub.v1.RetryPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryPolicy_); + retryPolicy_ = subBuilder.buildPartial(); } - case 128: - { - enableExactlyOnceDelivery_ = input.readBool(); - break; + + break; + } + case 120: { + + detached_ = input.readBool(); + break; + } + case 128: { + + enableExactlyOnceDelivery_ = input.readBool(); + break; + } + case 138: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (topicMessageRetentionDuration_ != null) { + subBuilder = topicMessageRetentionDuration_.toBuilder(); } - case 138: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (topicMessageRetentionDuration_ != null) { - subBuilder = topicMessageRetentionDuration_.toBuilder(); - } - topicMessageRetentionDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topicMessageRetentionDuration_); - topicMessageRetentionDuration_ = subBuilder.buildPartial(); - } - - break; + topicMessageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topicMessageRetentionDuration_); + topicMessageRetentionDuration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -238,44 +204,41 @@ private Subscription( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -286,7 +249,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -295,15 +257,14 @@ 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
@@ -314,15 +275,16 @@ 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 { @@ -333,18 +295,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TOPIC_FIELD_NUMBER = 2; 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 @@ -353,33 +310,31 @@ 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 { @@ -390,8 +345,6 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PUSH_CONFIG_FIELD_NUMBER = 4; private com.google.pubsub.v1.PushConfig pushConfig_; /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -399,7 +352,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return Whether the pushConfig field is set. */ @java.lang.Override @@ -407,8 +359,6 @@ public boolean hasPushConfig() { return pushConfig_ != null; } /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -416,7 +366,6 @@ public boolean hasPushConfig() {
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return The pushConfig. */ @java.lang.Override @@ -424,8 +373,6 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -442,8 +389,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
   public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5;
   private int 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
@@ -465,7 +410,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
    * 
* * int32 ack_deadline_seconds = 5; - * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -476,8 +420,6 @@ public int getAckDeadlineSeconds() { public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7; private boolean retainAckedMessages_; /** - * - * *
    * Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
@@ -488,7 +430,6 @@ public int getAckDeadlineSeconds() {
    * 
* * bool retain_acked_messages = 7; - * * @return The retainAckedMessages. */ @java.lang.Override @@ -499,8 +440,6 @@ public boolean getRetainAckedMessages() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -511,7 +450,6 @@ public boolean getRetainAckedMessages() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ @java.lang.Override @@ -519,8 +457,6 @@ public boolean hasMessageRetentionDuration() { return messageRetentionDuration_ != null; } /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -531,18 +467,13 @@ public boolean hasMessageRetentionDuration() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @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_; } /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -560,23 +491,24 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
   }
 
   public static final int LABELS_FIELD_NUMBER = 9;
-
   private static final class LabelsDefaultEntryHolder {
-    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,
-            "");
-  }
-
-  private com.google.protobuf.MapField labels_;
-
-  private com.google.protobuf.MapField internalGetLabels() {
+    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,
+                "");
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> 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_;
   }
@@ -585,8 +517,6 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -594,22 +524,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 9;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -618,12 +548,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 9;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -632,16 +561,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      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;
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -650,11 +579,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 9;
    */
   @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();
     }
@@ -664,8 +594,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int ENABLE_MESSAGE_ORDERING_FIELD_NUMBER = 10;
   private boolean enableMessageOrdering_;
   /**
-   *
-   *
    * 
    * If true, messages published with the same `ordering_key` in `PubsubMessage`
    * will be delivered to the subscribers in the order in which they
@@ -674,7 +602,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * bool enable_message_ordering = 10; - * * @return The enableMessageOrdering. */ @java.lang.Override @@ -685,8 +612,6 @@ public boolean getEnableMessageOrdering() { public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -697,7 +622,6 @@ public boolean getEnableMessageOrdering() {
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return Whether the expirationPolicy field is set. */ @java.lang.Override @@ -705,8 +629,6 @@ public boolean hasExpirationPolicy() { return expirationPolicy_ != null; } /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -717,18 +639,13 @@ public boolean hasExpirationPolicy() {
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @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_; } /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -748,8 +665,6 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
   public static final int FILTER_FIELD_NUMBER = 12;
   private volatile java.lang.Object filter_;
   /**
-   *
-   *
    * 
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -759,7 +674,6 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
    * 
* * string filter = 12; - * * @return The filter. */ @java.lang.Override @@ -768,15 +682,14 @@ 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; } } /** - * - * *
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -786,15 +699,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 12; - * * @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 { @@ -805,8 +719,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DEAD_LETTER_POLICY_FIELD_NUMBER = 13; private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -818,7 +730,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return Whether the deadLetterPolicy field is set. */ @java.lang.Override @@ -826,8 +737,6 @@ public boolean hasDeadLetterPolicy() { return deadLetterPolicy_ != null; } /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -839,18 +748,13 @@ public boolean hasDeadLetterPolicy() {
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @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_; } /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -871,8 +775,6 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
   public static final int RETRY_POLICY_FIELD_NUMBER = 14;
   private com.google.pubsub.v1.RetryPolicy retryPolicy_;
   /**
-   *
-   *
    * 
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -883,7 +785,6 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return Whether the retryPolicy field is set. */ @java.lang.Override @@ -891,8 +792,6 @@ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** - * - * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -903,18 +802,13 @@ public boolean hasRetryPolicy() {
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @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_; } /** - * - * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -934,8 +828,6 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
   public static final int DETACHED_FIELD_NUMBER = 15;
   private boolean detached_;
   /**
-   *
-   *
    * 
    * Indicates whether the subscription is detached from its topic. Detached
    * subscriptions don't receive messages from their topic and don't retain any
@@ -945,7 +837,6 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
    * 
* * bool detached = 15; - * * @return The detached. */ @java.lang.Override @@ -956,8 +847,6 @@ public boolean getDetached() { public static final int ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER = 16; private boolean enableExactlyOnceDelivery_; /** - * - * *
    * If true, Pub/Sub provides the following guarantees for the delivery of
    * a message with a given value of `message_id` on this subscription:
@@ -971,7 +860,6 @@ public boolean getDetached() {
    * 
* * bool enable_exactly_once_delivery = 16; - * * @return The enableExactlyOnceDelivery. */ @java.lang.Override @@ -982,8 +870,6 @@ 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,
@@ -993,10 +879,7 @@ 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 @@ -1004,8 +887,6 @@ public boolean hasTopicMessageRetentionDuration() { return topicMessageRetentionDuration_ != null; } /** - * - * *
    * 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,
@@ -1015,21 +896,14 @@ 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,
@@ -1039,9 +913,7 @@ 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() { @@ -1049,7 +921,6 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1061,7 +932,8 @@ 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_); } @@ -1080,8 +952,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (messageRetentionDuration_ != null) { 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_); } @@ -1122,54 +998,61 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } if (pushConfig_ != null) { - 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 (messageRetentionDuration_ != null) { - 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 (expirationPolicy_ != null) { - 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 (deadLetterPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getDeadLetterPolicy()); } if (retryPolicy_ != null) { - 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 (topicMessageRetentionDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 17, getTopicMessageRetentionDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getTopicMessageRetentionDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1179,47 +1062,60 @@ 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 (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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1243,7 +1139,8 @@ 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(); @@ -1253,7 +1150,8 @@ 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(); @@ -1269,9 +1167,11 @@ 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(); @@ -1281,146 +1181,140 @@ 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.
    * 
* * 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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() @@ -1428,15 +1322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1497,9 +1392,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 @@ -1568,39 +1463,38 @@ public com.google.pubsub.v1.Subscription 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.Subscription) { - return mergeFrom((com.google.pubsub.v1.Subscription) other); + return mergeFrom((com.google.pubsub.v1.Subscription)other); } else { super.mergeFrom(other); return this; @@ -1629,7 +1523,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasMessageRetentionDuration()) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getEnableMessageOrdering() != false) { setEnableMessageOrdering(other.getEnableMessageOrdering()); } @@ -1683,13 +1578,10 @@ public Builder mergeFrom( } 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
@@ -1700,13 +1592,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; @@ -1715,8 +1607,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1727,14 +1617,15 @@ 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 { @@ -1742,8 +1633,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1754,22 +1643,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1780,18 +1667,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1802,16 +1686,16 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1819,24 +1703,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -1845,25 +1725,22 @@ 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 { @@ -1871,73 +1748,60 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; @@ -1945,13 +1809,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1959,15 +1818,12 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfigBuilder_ != null || pushConfig_ != null; } /** - * - * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1975,21 +1831,16 @@ public boolean hasPushConfig() {
      * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @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(); } } /** - * - * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2012,8 +1863,6 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2022,7 +1871,8 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
      *
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
-    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();
         onChanged();
@@ -2033,8 +1883,6 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2047,9 +1895,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
       if (pushConfigBuilder_ == null) {
         if (pushConfig_ != null) {
           pushConfig_ =
-              com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial();
         } else {
           pushConfig_ = value;
         }
@@ -2061,8 +1907,6 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2083,8 +1927,6 @@ public Builder clearPushConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2094,13 +1936,11 @@ public Builder clearPushConfig() {
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
     public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
-
+      
       onChanged();
       return getPushConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2113,14 +1953,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2130,26 +1967,21 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
     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_;
     }
 
-    private int ackDeadlineSeconds_;
+    private int 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
@@ -2171,7 +2003,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
      * 
* * int32 ack_deadline_seconds = 5; - * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -2179,8 +2010,6 @@ public int getAckDeadlineSeconds() { return 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
@@ -2202,19 +2031,16 @@ public int getAckDeadlineSeconds() {
      * 
* * int32 ack_deadline_seconds = 5; - * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setAckDeadlineSeconds(int value) { - + ackDeadlineSeconds_ = value; onChanged(); return this; } /** - * - * *
      * 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
@@ -2236,20 +2062,17 @@ public Builder setAckDeadlineSeconds(int value) {
      * 
* * int32 ack_deadline_seconds = 5; - * * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - + ackDeadlineSeconds_ = 0; onChanged(); return this; } - private boolean retainAckedMessages_; + private boolean retainAckedMessages_ ; /** - * - * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2260,7 +2083,6 @@ public Builder clearAckDeadlineSeconds() {
      * 
* * bool retain_acked_messages = 7; - * * @return The retainAckedMessages. */ @java.lang.Override @@ -2268,8 +2090,6 @@ public boolean getRetainAckedMessages() { return retainAckedMessages_; } /** - * - * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2280,19 +2100,16 @@ public boolean getRetainAckedMessages() {
      * 
* * bool retain_acked_messages = 7; - * * @param value The retainAckedMessages to set. * @return This builder for chaining. */ public Builder setRetainAckedMessages(boolean value) { - + retainAckedMessages_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2303,11 +2120,10 @@ public Builder setRetainAckedMessages(boolean value) {
      * 
* * bool retain_acked_messages = 7; - * * @return This builder for chaining. */ public Builder clearRetainAckedMessages() { - + retainAckedMessages_ = false; onChanged(); return this; @@ -2315,13 +2131,8 @@ 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_; /** - * - * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2332,15 +2143,12 @@ public Builder clearRetainAckedMessages() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; } /** - * - * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2351,21 +2159,16 @@ public boolean hasMessageRetentionDuration() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @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(); } } /** - * - * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2391,8 +2194,6 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2416,8 +2217,6 @@ public Builder setMessageRetentionDuration(
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2433,9 +2232,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       if (messageRetentionDurationBuilder_ == null) {
         if (messageRetentionDuration_ != null) {
           messageRetentionDuration_ =
-              com.google.protobuf.Duration.newBuilder(messageRetentionDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(messageRetentionDuration_).mergeFrom(value).buildPartial();
         } else {
           messageRetentionDuration_ = value;
         }
@@ -2447,8 +2244,6 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2472,8 +2267,6 @@ public Builder clearMessageRetentionDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2486,13 +2279,11 @@ public Builder clearMessageRetentionDuration() {
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() {
-
+      
       onChanged();
       return getMessageRetentionDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2508,14 +2299,11 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
       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_;
       }
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2528,37 +2316,35 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     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 labels_;
-
-    private com.google.protobuf.MapField internalGetLabels() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> 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() {
-      onChanged();
-      ;
+    internalGetMutableLabels() {
+      onChanged();;
       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();
@@ -2570,8 +2356,6 @@ public int getLabelsCount() {
       return internalGetLabels().getMap().size();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2579,22 +2363,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 9;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2603,12 +2387,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 9;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2617,17 +2400,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        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;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2636,11 +2418,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9;
      */
     @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();
       }
@@ -2648,12 +2431,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2661,21 +2443,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9;
      */
-    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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2683,20 +2467,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 9;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    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");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2704,15 +2487,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 9;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
-    private boolean enableMessageOrdering_;
+    private boolean enableMessageOrdering_ ;
     /**
-     *
-     *
      * 
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2721,7 +2505,6 @@ public Builder putAllLabels(java.util.Map va
      * 
* * bool enable_message_ordering = 10; - * * @return The enableMessageOrdering. */ @java.lang.Override @@ -2729,8 +2512,6 @@ public boolean getEnableMessageOrdering() { return enableMessageOrdering_; } /** - * - * *
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2739,19 +2520,16 @@ public boolean getEnableMessageOrdering() {
      * 
* * bool enable_message_ordering = 10; - * * @param value The enableMessageOrdering to set. * @return This builder for chaining. */ public Builder setEnableMessageOrdering(boolean value) { - + enableMessageOrdering_ = value; onChanged(); return this; } /** - * - * *
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2760,11 +2538,10 @@ public Builder setEnableMessageOrdering(boolean value) {
      * 
* * bool enable_message_ordering = 10; - * * @return This builder for chaining. */ public Builder clearEnableMessageOrdering() { - + enableMessageOrdering_ = false; onChanged(); return this; @@ -2772,13 +2549,8 @@ 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_; /** - * - * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2789,15 +2561,12 @@ public Builder clearEnableMessageOrdering() {
      * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return Whether the expirationPolicy field is set. */ public boolean hasExpirationPolicy() { return expirationPolicyBuilder_ != null || expirationPolicy_ != null; } /** - * - * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2808,21 +2577,16 @@ public boolean hasExpirationPolicy() {
      * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @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(); } } /** - * - * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2848,8 +2612,6 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2873,8 +2635,6 @@ public Builder setExpirationPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2890,9 +2650,7 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
       if (expirationPolicyBuilder_ == null) {
         if (expirationPolicy_ != null) {
           expirationPolicy_ =
-              com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_).mergeFrom(value).buildPartial();
         } else {
           expirationPolicy_ = value;
         }
@@ -2904,8 +2662,6 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2929,8 +2685,6 @@ public Builder clearExpirationPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2943,13 +2697,11 @@ public Builder clearExpirationPolicy() {
      * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
      */
     public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() {
-
+      
       onChanged();
       return getExpirationPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2965,14 +2717,11 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
       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_;
       }
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2985,17 +2734,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
      * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
      */
     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_;
@@ -3003,8 +2749,6 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
 
     private java.lang.Object filter_ = "";
     /**
-     *
-     *
      * 
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3014,13 +2758,13 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
      * 
* * string filter = 12; - * * @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; @@ -3029,8 +2773,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3040,14 +2782,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 12; - * * @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 { @@ -3055,8 +2798,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3066,22 +2807,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 12; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3091,18 +2830,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 12; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3112,16 +2848,16 @@ public Builder clearFilter() {
      * 
* * string filter = 12; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -3129,13 +2865,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3147,15 +2878,12 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return Whether the deadLetterPolicy field is set. */ public boolean hasDeadLetterPolicy() { return deadLetterPolicyBuilder_ != null || deadLetterPolicy_ != null; } /** - * - * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3167,21 +2895,16 @@ public boolean hasDeadLetterPolicy() {
      * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @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(); } } /** - * - * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3208,8 +2931,6 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3234,8 +2955,6 @@ public Builder setDeadLetterPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3252,9 +2971,7 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value
       if (deadLetterPolicyBuilder_ == null) {
         if (deadLetterPolicy_ != null) {
           deadLetterPolicy_ =
-              com.google.pubsub.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_).mergeFrom(value).buildPartial();
         } else {
           deadLetterPolicy_ = value;
         }
@@ -3266,8 +2983,6 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3292,8 +3007,6 @@ public Builder clearDeadLetterPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3307,13 +3020,11 @@ public Builder clearDeadLetterPolicy() {
      * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13;
      */
     public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() {
-
+      
       onChanged();
       return getDeadLetterPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3330,14 +3041,11 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
       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_;
       }
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3351,17 +3059,14 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13;
      */
     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_;
@@ -3369,13 +3074,8 @@ 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_;
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3386,15 +3086,12 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** - * - * *
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3405,21 +3102,16 @@ public boolean hasRetryPolicy() {
      * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @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(); } } /** - * - * *
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3445,8 +3137,6 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3458,7 +3148,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
      *
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
-    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();
         onChanged();
@@ -3469,8 +3160,6 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3486,9 +3175,7 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       if (retryPolicyBuilder_ == null) {
         if (retryPolicy_ != null) {
           retryPolicy_ =
-              com.google.pubsub.v1.RetryPolicy.newBuilder(retryPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.RetryPolicy.newBuilder(retryPolicy_).mergeFrom(value).buildPartial();
         } else {
           retryPolicy_ = value;
         }
@@ -3500,8 +3187,6 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3525,8 +3210,6 @@ public Builder clearRetryPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3539,13 +3222,11 @@ public Builder clearRetryPolicy() {
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
     public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
-
+      
       onChanged();
       return getRetryPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3561,14 +3242,11 @@ 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_;
       }
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3581,26 +3259,21 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
     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_ ;
     /**
-     *
-     *
      * 
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3610,7 +3283,6 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * 
* * bool detached = 15; - * * @return The detached. */ @java.lang.Override @@ -3618,8 +3290,6 @@ public boolean getDetached() { return detached_; } /** - * - * *
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3629,19 +3299,16 @@ public boolean getDetached() {
      * 
* * bool detached = 15; - * * @param value The detached to set. * @return This builder for chaining. */ public Builder setDetached(boolean value) { - + detached_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3651,20 +3318,17 @@ public Builder setDetached(boolean value) {
      * 
* * bool detached = 15; - * * @return This builder for chaining. */ public Builder clearDetached() { - + detached_ = false; onChanged(); return this; } - private boolean enableExactlyOnceDelivery_; + private boolean enableExactlyOnceDelivery_ ; /** - * - * *
      * If true, Pub/Sub provides the following guarantees for the delivery of
      * a message with a given value of `message_id` on this subscription:
@@ -3678,7 +3342,6 @@ public Builder clearDetached() {
      * 
* * bool enable_exactly_once_delivery = 16; - * * @return The enableExactlyOnceDelivery. */ @java.lang.Override @@ -3686,8 +3349,6 @@ public boolean getEnableExactlyOnceDelivery() { return enableExactlyOnceDelivery_; } /** - * - * *
      * If true, Pub/Sub provides the following guarantees for the delivery of
      * a message with a given value of `message_id` on this subscription:
@@ -3701,19 +3362,16 @@ public boolean getEnableExactlyOnceDelivery() {
      * 
* * bool enable_exactly_once_delivery = 16; - * * @param value The enableExactlyOnceDelivery to set. * @return This builder for chaining. */ public Builder setEnableExactlyOnceDelivery(boolean value) { - + enableExactlyOnceDelivery_ = value; onChanged(); return this; } /** - * - * *
      * If true, Pub/Sub provides the following guarantees for the delivery of
      * a message with a given value of `message_id` on this subscription:
@@ -3727,11 +3385,10 @@ public Builder setEnableExactlyOnceDelivery(boolean value) {
      * 
* * bool enable_exactly_once_delivery = 16; - * * @return This builder for chaining. */ public Builder clearEnableExactlyOnceDelivery() { - + enableExactlyOnceDelivery_ = false; onChanged(); return this; @@ -3739,13 +3396,8 @@ 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,
@@ -3755,19 +3407,13 @@ 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 topicMessageRetentionDurationBuilder_ != null - || topicMessageRetentionDuration_ != null; + return topicMessageRetentionDurationBuilder_ != null || topicMessageRetentionDuration_ != null; } /** - * - * *
      * 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,
@@ -3777,24 +3423,17 @@ 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,
@@ -3804,9 +3443,7 @@ 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) { @@ -3822,8 +3459,6 @@ 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,
@@ -3833,9 +3468,7 @@ 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) { @@ -3849,8 +3482,6 @@ 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,
@@ -3860,17 +3491,13 @@ 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 (topicMessageRetentionDuration_ != null) { topicMessageRetentionDuration_ = - com.google.protobuf.Duration.newBuilder(topicMessageRetentionDuration_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(topicMessageRetentionDuration_).mergeFrom(value).buildPartial(); } else { topicMessageRetentionDuration_ = value; } @@ -3882,8 +3509,6 @@ 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,
@@ -3893,9 +3518,7 @@ 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() { if (topicMessageRetentionDurationBuilder_ == null) { @@ -3909,8 +3532,6 @@ 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,
@@ -3920,18 +3541,14 @@ 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() { - + onChanged(); 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,
@@ -3941,22 +3558,17 @@ 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,
@@ -3966,29 +3578,24 @@ 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_; } - @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); } @@ -3998,12 +3605,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(); } @@ -4012,16 +3619,16 @@ 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 { - return new Subscription(input, extensionRegistry); - } - }; + 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 { + return new Subscription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4036,4 +3643,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java similarity index 99% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java index 0eed7889a..6433bd9f9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java similarity index 88% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 2c85e903f..e2ca338f6 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 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 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
@@ -36,13 +18,10 @@ public interface SubscriptionOrBuilder
    * 
* * 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
@@ -53,47 +32,36 @@ public interface SubscriptionOrBuilder
    * 
* * 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(); /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -101,13 +69,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -115,13 +80,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -133,8 +95,6 @@ public interface SubscriptionOrBuilder
   com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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
@@ -156,14 +116,11 @@ public interface SubscriptionOrBuilder
    * 
* * int32 ack_deadline_seconds = 5; - * * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); /** - * - * *
    * Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
@@ -174,14 +131,11 @@ public interface SubscriptionOrBuilder
    * 
* * bool retain_acked_messages = 7; - * * @return The retainAckedMessages. */ boolean getRetainAckedMessages(); /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -192,13 +146,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -209,13 +160,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -230,8 +178,6 @@ public interface SubscriptionOrBuilder
   com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -241,8 +187,6 @@ public interface SubscriptionOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -250,13 +194,15 @@ public interface SubscriptionOrBuilder
    *
    * map<string, string> labels = 9;
    */
-  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();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -264,10 +210,9 @@ public interface SubscriptionOrBuilder
    *
    * map<string, string> labels = 9;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -277,13 +222,11 @@ public interface SubscriptionOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -291,11 +234,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * If true, messages published with the same `ordering_key` in `PubsubMessage`
    * will be delivered to the subscribers in the order in which they
@@ -304,14 +247,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool enable_message_ordering = 10; - * * @return The enableMessageOrdering. */ boolean getEnableMessageOrdering(); /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -322,13 +262,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return Whether the expirationPolicy field is set. */ boolean hasExpirationPolicy(); /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -339,13 +276,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return The expirationPolicy. */ com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy(); /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -360,8 +294,6 @@ java.lang.String getLabelsOrDefault(
   com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -371,13 +303,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string filter = 12; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -387,14 +316,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string filter = 12; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -406,13 +333,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return Whether the deadLetterPolicy field is set. */ boolean hasDeadLetterPolicy(); /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -424,13 +348,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return The deadLetterPolicy. */ com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy(); /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -446,8 +367,6 @@ java.lang.String getLabelsOrDefault(
   com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -458,13 +377,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** - * - * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -475,13 +391,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return The retryPolicy. */ com.google.pubsub.v1.RetryPolicy getRetryPolicy(); /** - * - * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -496,8 +409,6 @@ java.lang.String getLabelsOrDefault(
   com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Indicates whether the subscription is detached from its topic. Detached
    * subscriptions don't receive messages from their topic and don't retain any
@@ -507,14 +418,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool detached = 15; - * * @return The detached. */ boolean getDetached(); /** - * - * *
    * If true, Pub/Sub provides the following guarantees for the delivery of
    * a message with a given value of `message_id` on this subscription:
@@ -528,14 +436,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool enable_exactly_once_delivery = 16; - * * @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,
@@ -545,16 +450,11 @@ java.lang.String getLabelsOrDefault(
    * 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,
@@ -564,16 +464,11 @@ java.lang.String getLabelsOrDefault(
    * 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,
@@ -583,9 +478,7 @@ java.lang.String getLabelsOrDefault(
    * 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(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java similarity index 74% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 6361c9e27..cc3afbe27 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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_ = ""; @@ -44,15 +26,16 @@ private Topic() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Topic(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Topic( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,92 +55,82 @@ private Topic( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; + if (messageStoragePolicy_ != null) { + subBuilder = messageStoragePolicy_.toBuilder(); } - case 26: - { - com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; - if (messageStoragePolicy_ != null) { - subBuilder = messageStoragePolicy_.toBuilder(); - } - messageStoragePolicy_ = - input.readMessage( - com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageStoragePolicy_); - messageStoragePolicy_ = subBuilder.buildPartial(); - } - - break; + messageStoragePolicy_ = input.readMessage(com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageStoragePolicy_); + messageStoragePolicy_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - kmsKeyName_ = s; - break; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKeyName_ = s; + break; + } + case 50: { + com.google.pubsub.v1.SchemaSettings.Builder subBuilder = null; + if (schemaSettings_ != null) { + subBuilder = schemaSettings_.toBuilder(); } - case 50: - { - com.google.pubsub.v1.SchemaSettings.Builder subBuilder = null; - if (schemaSettings_ != null) { - subBuilder = schemaSettings_.toBuilder(); - } - schemaSettings_ = - input.readMessage( - com.google.pubsub.v1.SchemaSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schemaSettings_); - schemaSettings_ = subBuilder.buildPartial(); - } - - break; + schemaSettings_ = input.readMessage(com.google.pubsub.v1.SchemaSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schemaSettings_); + schemaSettings_ = subBuilder.buildPartial(); } - case 56: - { - satisfiesPzs_ = input.readBool(); - break; + + break; + } + case 56: { + + satisfiesPzs_ = input.readBool(); + break; + } + case 66: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); } - case 66: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (messageRetentionDuration_ != null) { - subBuilder = messageRetentionDuration_.toBuilder(); - } - messageRetentionDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageRetentionDuration_); - messageRetentionDuration_ = subBuilder.buildPartial(); - } - - break; + messageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -165,33 +138,34 @@ private Topic( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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); } @@ -199,8 +173,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { public static final int NAME_FIELD_NUMBER = 1; 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,
@@ -211,7 +183,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -220,15 +191,14 @@ 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,
@@ -239,15 +209,16 @@ 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 { @@ -256,23 +227,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - 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, - ""); + 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, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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_; } @@ -281,8 +253,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -290,22 +260,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
+
   @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();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -314,12 +284,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -328,16 +297,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      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;
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -346,11 +315,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 2;
    */
   @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();
     }
@@ -360,8 +330,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int MESSAGE_STORAGE_POLICY_FIELD_NUMBER = 3;
   private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_;
   /**
-   *
-   *
    * 
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -369,7 +337,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return Whether the messageStoragePolicy field is set. */ @java.lang.Override @@ -377,8 +344,6 @@ public boolean hasMessageStoragePolicy() { return messageStoragePolicy_ != null; } /** - * - * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -386,18 +351,13 @@ public boolean hasMessageStoragePolicy() {
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @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_; } /** - * - * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -414,8 +374,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
   public static final int KMS_KEY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object kmsKeyName_;
   /**
-   *
-   *
    * 
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -423,7 +381,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
    * 
* * string kms_key_name = 5; - * * @return The kmsKeyName. */ @java.lang.Override @@ -432,15 +389,14 @@ 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; } } /** - * - * *
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -448,15 +404,16 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 5; - * * @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 { @@ -467,14 +424,11 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int SCHEMA_SETTINGS_FIELD_NUMBER = 6; private com.google.pubsub.v1.SchemaSettings schemaSettings_; /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return Whether the schemaSettings field is set. */ @java.lang.Override @@ -482,25 +436,18 @@ public boolean hasSchemaSettings() { return schemaSettings_ != null; } /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @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_; } /** - * - * *
    * Settings for validating messages published against a schema.
    * 
@@ -515,15 +462,12 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() public static final int SATISFIES_PZS_FIELD_NUMBER = 7; private boolean satisfiesPzs_; /** - * - * *
    * 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; - * * @return The satisfiesPzs. */ @java.lang.Override @@ -534,8 +478,6 @@ public boolean getSatisfiesPzs() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -548,7 +490,6 @@ public boolean getSatisfiesPzs() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ @java.lang.Override @@ -556,8 +497,6 @@ public boolean hasMessageRetentionDuration() { return messageRetentionDuration_ != null; } /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -570,18 +509,13 @@ public boolean hasMessageRetentionDuration() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @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_; } /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -601,7 +535,6 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -613,12 +546,17 @@ 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 (messageStoragePolicy_ != null) {
       output.writeMessage(3, getMessageStoragePolicy());
     }
@@ -646,33 +584,34 @@ 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 (messageStoragePolicy_ != null) {
-      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 (schemaSettings_ != null) {
-      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 (messageRetentionDuration_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, getMessageRetentionDuration());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getMessageRetentionDuration());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -682,28 +621,35 @@ 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -733,7 +679,8 @@ 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();
@@ -743,142 +690,138 @@ 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; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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); } @@ -888,15 +831,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -929,7 +873,8 @@ 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; } @@ -979,39 +924,38 @@ public com.google.pubsub.v1.Topic 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.Topic) { - return mergeFrom((com.google.pubsub.v1.Topic) other); + return mergeFrom((com.google.pubsub.v1.Topic)other); } else { super.mergeFrom(other); return this; @@ -1024,7 +968,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } @@ -1069,13 +1014,10 @@ public Builder mergeFrom( } 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,
@@ -1086,13 +1028,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; @@ -1101,8 +1043,6 @@ 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,
@@ -1113,14 +1053,15 @@ 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 { @@ -1128,8 +1069,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1140,22 +1079,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1166,18 +1103,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1188,36 +1122,37 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -1229,8 +1164,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1238,22 +1171,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
+
     @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();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1262,12 +1195,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1276,17 +1208,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        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;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1295,11 +1226,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @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();
       }
@@ -1307,12 +1239,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1320,21 +1251,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-    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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1342,20 +1275,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    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");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1363,20 +1295,18 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 2;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       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_;
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1384,15 +1314,12 @@ public Builder putAllLabels(java.util.Map va
      * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return Whether the messageStoragePolicy field is set. */ public boolean hasMessageStoragePolicy() { return messageStoragePolicyBuilder_ != null || messageStoragePolicy_ != null; } /** - * - * *
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1400,21 +1327,16 @@ public boolean hasMessageStoragePolicy() {
      * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @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(); } } /** - * - * *
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1437,8 +1359,6 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy
       return this;
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1459,8 +1379,6 @@ public Builder setMessageStoragePolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1473,9 +1391,7 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli
       if (messageStoragePolicyBuilder_ == null) {
         if (messageStoragePolicy_ != null) {
           messageStoragePolicy_ =
-              com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_).mergeFrom(value).buildPartial();
         } else {
           messageStoragePolicy_ = value;
         }
@@ -1487,8 +1403,6 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli
       return this;
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1509,8 +1423,6 @@ public Builder clearMessageStoragePolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1520,13 +1432,11 @@ public Builder clearMessageStoragePolicy() {
      * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
      */
     public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() {
-
+      
       onChanged();
       return getMessageStoragePolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1539,14 +1449,11 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
       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_;
       }
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1556,17 +1463,14 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
      * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
      */
     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_;
@@ -1574,8 +1478,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
 
     private java.lang.Object kmsKeyName_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1583,13 +1485,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
      * 
* * string kms_key_name = 5; - * * @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; @@ -1598,8 +1500,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1607,14 +1507,15 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 5; - * * @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 { @@ -1622,8 +1523,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1631,22 +1530,20 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * string kms_key_name = 5; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { + public Builder setKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1654,18 +1551,15 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 5; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** - * - * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1673,16 +1567,16 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 5; - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; @@ -1690,47 +1584,34 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return Whether the schemaSettings field is set. */ public boolean hasSchemaSettings() { return schemaSettingsBuilder_ != null || schemaSettings_ != null; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @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(); } } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1751,15 +1632,14 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { return this; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ - 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(); onChanged(); @@ -1770,8 +1650,6 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder bui return this; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1782,9 +1660,7 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { if (schemaSettings_ != null) { schemaSettings_ = - com.google.pubsub.v1.SchemaSettings.newBuilder(schemaSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.SchemaSettings.newBuilder(schemaSettings_).mergeFrom(value).buildPartial(); } else { schemaSettings_ = value; } @@ -1796,8 +1672,6 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { return this; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1816,8 +1690,6 @@ public Builder clearSchemaSettings() { return this; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1825,13 +1697,11 @@ public Builder clearSchemaSettings() { * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { - + onChanged(); return getSchemaSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1842,14 +1712,11 @@ 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_; } } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1857,33 +1724,27 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ 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_ ; /** - * - * *
      * 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; - * * @return The satisfiesPzs. */ @java.lang.Override @@ -1891,38 +1752,32 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** - * - * *
      * 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; - * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ public Builder setSatisfiesPzs(boolean value) { - + satisfiesPzs_ = value; onChanged(); return this; } /** - * - * *
      * 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; - * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - + satisfiesPzs_ = false; onChanged(); return this; @@ -1930,13 +1785,8 @@ 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_; /** - * - * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1949,15 +1799,12 @@ public Builder clearSatisfiesPzs() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; } /** - * - * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1970,21 +1817,16 @@ public boolean hasMessageRetentionDuration() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @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(); } } /** - * - * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2012,8 +1854,6 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2039,8 +1879,6 @@ public Builder setMessageRetentionDuration(
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2058,9 +1896,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       if (messageRetentionDurationBuilder_ == null) {
         if (messageRetentionDuration_ != null) {
           messageRetentionDuration_ =
-              com.google.protobuf.Duration.newBuilder(messageRetentionDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(messageRetentionDuration_).mergeFrom(value).buildPartial();
         } else {
           messageRetentionDuration_ = value;
         }
@@ -2072,8 +1908,6 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2099,8 +1933,6 @@ public Builder clearMessageRetentionDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2115,13 +1947,11 @@ public Builder clearMessageRetentionDuration() {
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() {
-
+      
       onChanged();
       return getMessageRetentionDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2139,14 +1969,11 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
       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_;
       }
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2161,24 +1988,21 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     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_;
     }
-
     @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);
     }
 
@@ -2188,12 +2012,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();
   }
@@ -2202,16 +2026,16 @@ 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 {
-          return new Topic(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new Topic(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2226,4 +2050,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.Topic getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
similarity index 99%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
index dcb2fa83b..4d16d44af 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
similarity index 85%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
index cbc1957b4..e4506eb8a 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 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
 
 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,
@@ -36,13 +18,10 @@ public interface TopicOrBuilder
    * 
* * 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,
@@ -53,14 +32,12 @@ public interface TopicOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -70,8 +47,6 @@ public interface TopicOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -79,13 +54,15 @@ public interface TopicOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  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();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -93,10 +70,9 @@ public interface TopicOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -106,13 +82,11 @@ public interface TopicOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -120,11 +94,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -132,13 +106,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return Whether the messageStoragePolicy field is set. */ boolean hasMessageStoragePolicy(); /** - * - * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -146,13 +117,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return The messageStoragePolicy. */ com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy(); /** - * - * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -164,8 +132,6 @@ java.lang.String getLabelsOrDefault(
   com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -173,13 +139,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string kms_key_name = 5; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -187,38 +150,30 @@ java.lang.String getLabelsOrDefault(
    * 
* * string kms_key_name = 5; - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return Whether the schemaSettings field is set. */ boolean hasSchemaSettings(); /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return The schemaSettings. */ com.google.pubsub.v1.SchemaSettings getSchemaSettings(); /** - * - * *
    * Settings for validating messages published against a schema.
    * 
@@ -228,22 +183,17 @@ java.lang.String getLabelsOrDefault( com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder(); /** - * - * *
    * 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; - * * @return The satisfiesPzs. */ boolean getSatisfiesPzs(); /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -256,13 +206,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -275,13 +222,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
similarity index 69%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
index 1925b6c4f..3918ebb16 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 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
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,43 +52,39 @@ private UpdateSnapshotRequest( case 0: done = true; break; - case 10: - { - com.google.pubsub.v1.Snapshot.Builder subBuilder = null; - if (snapshot_ != null) { - subBuilder = snapshot_.toBuilder(); - } - snapshot_ = - input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshot_); - snapshot_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.pubsub.v1.Snapshot.Builder subBuilder = null; + if (snapshot_ != null) { + subBuilder = snapshot_.toBuilder(); + } + snapshot_ = input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshot_); + snapshot_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,39 +92,34 @@ private UpdateSnapshotRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } 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 @@ -152,14 +127,11 @@ public boolean hasSnapshot() { return snapshot_ != null; } /** - * - * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snapshot. */ @java.lang.Override @@ -167,8 +139,6 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } /** - * - * *
    * Required. The updated snapshot object.
    * 
@@ -183,16 +153,12 @@ 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 @@ -200,16 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * 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 @@ -217,15 +179,12 @@ 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() { @@ -233,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,7 +203,8 @@ 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 (snapshot_ != null) { output.writeMessage(1, getSnapshot()); } @@ -262,10 +221,12 @@ public int getSerializedSize() { size = 0; if (snapshot_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshot()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnapshot()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -275,21 +236,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -315,127 +277,118 @@ 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() @@ -443,15 +396,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +425,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 @@ -492,8 +446,7 @@ 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); + com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this); if (snapshotBuilder_ == null) { result.snapshot_ = snapshot_; } else { @@ -512,39 +465,38 @@ public com.google.pubsub.v1.UpdateSnapshotRequest 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.UpdateSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest) other); + return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -590,35 +542,24 @@ public Builder mergeFrom( 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 snapshotBuilder_ != null || snapshot_ != null; } /** - * - * *
      * 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() { @@ -629,14 +570,11 @@ 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) { @@ -652,16 +590,14 @@ 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(); onChanged(); @@ -672,20 +608,17 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue 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 (snapshot_ != null) { snapshot_ = - com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); } else { snapshot_ = value; } @@ -697,14 +630,11 @@ 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() { if (snapshotBuilder_ == null) { @@ -718,59 +648,48 @@ 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() { - + onChanged(); 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_; @@ -778,58 +697,42 @@ 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 updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * 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) { @@ -845,17 +748,15 @@ 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(); onChanged(); @@ -866,21 +767,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -892,15 +790,12 @@ 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() { if (updateMaskBuilder_ == null) { @@ -914,71 +809,58 @@ 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() { - + onChanged(); 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); } @@ -988,12 +870,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(); } @@ -1002,16 +884,16 @@ 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 { - return new UpdateSnapshotRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 2acbd1120..53e7d7fe9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 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.
    * 
@@ -59,43 +35,32 @@ public interface UpdateSnapshotRequestOrBuilder 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 0e9110799..cb6f854f8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,43 +52,39 @@ private UpdateSubscriptionRequest( case 0: done = true; break; - case 10: - { - com.google.pubsub.v1.Subscription.Builder subBuilder = null; - if (subscription_ != null) { - subBuilder = subscription_.toBuilder(); - } - subscription_ = - input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subscription_); - subscription_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.pubsub.v1.Subscription.Builder subBuilder = null; + if (subscription_ != null) { + subBuilder = subscription_.toBuilder(); + } + subscription_ = input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subscription_); + subscription_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,41 +92,34 @@ private UpdateSubscriptionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } 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 @@ -154,34 +127,23 @@ public boolean hasSubscription() { return subscription_ != null; } /** - * - * *
    * 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() { @@ -191,16 +153,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { 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 @@ -208,16 +166,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * 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 @@ -225,15 +179,12 @@ 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() { @@ -241,7 +192,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +203,8 @@ 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 (subscription_ != null) { output.writeMessage(1, getSubscription()); } @@ -270,10 +221,12 @@ public int getSerializedSize() { size = 0; if (subscription_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubscription()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,21 +236,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -323,127 +277,118 @@ 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() @@ -451,15 +396,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +425,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 @@ -500,8 +446,7 @@ 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); + com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { result.subscription_ = subscription_; } else { @@ -520,39 +465,38 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest 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.UpdateSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest) other); + return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -598,58 +542,39 @@ public Builder mergeFrom( 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 subscriptionBuilder_ != null || subscription_ != null; } /** - * - * *
      * 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) { @@ -665,17 +590,14 @@ 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(); onChanged(); @@ -686,23 +608,17 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builder 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 (subscription_ != null) { subscription_ = - com.google.pubsub.v1.Subscription.newBuilder(subscription_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.Subscription.newBuilder(subscription_).mergeFrom(value).buildPartial(); } else { subscription_ = value; } @@ -714,15 +630,11 @@ 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() { if (subscriptionBuilder_ == null) { @@ -736,64 +648,48 @@ 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() { - + onChanged(); 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_; @@ -801,58 +697,42 @@ 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 updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * 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) { @@ -868,17 +748,15 @@ 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(); onChanged(); @@ -889,21 +767,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -915,15 +790,12 @@ 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() { if (updateMaskBuilder_ == null) { @@ -937,71 +809,58 @@ 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() { - + onChanged(); 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); } @@ -1011,12 +870,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(); } @@ -1025,16 +884,16 @@ 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 { - return new UpdateSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 730dc304b..812f8da0d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2020 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 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 51fe720e6..9cf9d1306 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private UpdateTopicRequest( case 0: done = true; break; - case 10: - { - com.google.pubsub.v1.Topic.Builder subBuilder = null; - if (topic_ != null) { - subBuilder = topic_.toBuilder(); - } - topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topic_); - topic_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.pubsub.v1.Topic.Builder subBuilder = null; + if (topic_ != null) { + subBuilder = topic_.toBuilder(); + } + topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topic_); + topic_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,39 +92,34 @@ private UpdateTopicRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } 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 @@ -151,14 +127,11 @@ public boolean hasTopic() { return topic_ != null; } /** - * - * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ @java.lang.Override @@ -166,8 +139,6 @@ public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } /** - * - * *
    * Required. The updated topic object.
    * 
@@ -182,8 +153,6 @@ 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
@@ -192,9 +161,7 @@ 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 @@ -202,8 +169,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -212,9 +177,7 @@ 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 @@ -222,8 +185,6 @@ 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
@@ -232,8 +193,7 @@ 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() { @@ -241,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +212,8 @@ 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 (topic_ != null) { output.writeMessage(1, getTopic()); } @@ -270,10 +230,12 @@ public int getSerializedSize() { size = 0; if (topic_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTopic()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,7 +245,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); @@ -292,11 +254,13 @@ 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -322,127 +286,118 @@ 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() @@ -450,15 +405,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,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_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 @@ -499,8 +455,7 @@ 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); + com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { result.topic_ = topic_; } else { @@ -519,39 +474,38 @@ public com.google.pubsub.v1.UpdateTopicRequest 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.UpdateTopicRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest) other); + return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -597,33 +551,24 @@ public Builder mergeFrom( 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 topicBuilder_ != null || topic_ != null; } /** - * - * *
      * 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() { @@ -634,8 +579,6 @@ public com.google.pubsub.v1.Topic getTopic() { } } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -656,15 +599,14 @@ 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(); onChanged(); @@ -675,8 +617,6 @@ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { return this; } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -686,7 +626,8 @@ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { if (topic_ != null) { - topic_ = com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); + topic_ = + com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); } else { topic_ = value; } @@ -698,8 +639,6 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -718,8 +657,6 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -727,13 +664,11 @@ public Builder clearTopic() { * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { - + onChanged(); return getTopicFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -744,12 +679,11 @@ 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.
      * 
@@ -757,16 +691,14 @@ 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_; @@ -774,13 +706,8 @@ 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
@@ -789,17 +716,13 @@ 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 updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -808,23 +731,17 @@ 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
@@ -833,8 +750,7 @@ 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) { @@ -850,8 +766,6 @@ 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
@@ -860,10 +774,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(); onChanged(); @@ -874,8 +788,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -884,14 +796,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * 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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -903,8 +814,6 @@ 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
@@ -913,8 +822,7 @@ 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() { if (updateMaskBuilder_ == null) { @@ -928,8 +836,6 @@ 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
@@ -938,17 +844,14 @@ 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() { - + onChanged(); 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
@@ -957,21 +860,17 @@ 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
@@ -980,28 +879,24 @@ 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); } @@ -1011,12 +906,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(); } @@ -1025,16 +920,16 @@ 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 { - return new UpdateTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index c65735f57..c5ad2f1b9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 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 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.
    * 
@@ -59,8 +35,6 @@ public interface UpdateTopicRequestOrBuilder 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
@@ -69,15 +43,11 @@ public interface UpdateTopicRequestOrBuilder
    * 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
@@ -86,15 +56,11 @@ public interface UpdateTopicRequestOrBuilder
    * 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
@@ -103,8 +69,7 @@ public interface UpdateTopicRequestOrBuilder
    * 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index b58b83ebc..0dbbbb9da 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 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 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; @@ -45,15 +27,16 @@ private ValidateMessageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidateMessageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ValidateMessageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,54 +55,50 @@ private ValidateMessageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - schemaSpecCase_ = 2; - schemaSpec_ = s; - break; - } - case 26: - { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schemaSpecCase_ == 3) { - subBuilder = ((com.google.pubsub.v1.Schema) schemaSpec_).toBuilder(); - } - schemaSpec_ = - input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.pubsub.v1.Schema) schemaSpec_); - schemaSpec_ = subBuilder.buildPartial(); - } - schemaSpecCase_ = 3; - break; + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + schemaSpecCase_ = 2; + schemaSpec_ = s; + break; + } + case 26: { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schemaSpecCase_ == 3) { + subBuilder = ((com.google.pubsub.v1.Schema) schemaSpec_).toBuilder(); } - case 34: - { - message_ = input.readBytes(); - break; + schemaSpec_ = + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.pubsub.v1.Schema) schemaSpec_); + schemaSpec_ = subBuilder.buildPartial(); } - case 40: - { - int rawValue = input.readEnum(); + schemaSpecCase_ = 3; + break; + } + case 34: { - encoding_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + message_ = input.readBytes(); + break; + } + case 40: { + int rawValue = input.readEnum(); + + encoding_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,40 +106,35 @@ private ValidateMessageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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; } @@ -176,40 +150,32 @@ 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; 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 @@ -218,32 +184,30 @@ 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 { @@ -253,30 +217,24 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int NAME_FIELD_NUMBER = 2; /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * 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.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ public java.lang.String getName() { @@ -287,7 +245,8 @@ 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; @@ -296,25 +255,24 @@ public java.lang.String getName() { } } /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * 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; } @@ -326,14 +284,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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 @@ -341,26 +296,21 @@ 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
    * 
@@ -370,7 +320,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(); } @@ -378,14 +328,11 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { public static final int MESSAGE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString message_; /** - * - * *
    * Message to validate against the provided `schema_spec`.
    * 
* * bytes message = 4; - * * @return The message. */ @java.lang.Override @@ -396,40 +343,31 @@ public com.google.protobuf.ByteString getMessage() { public static final int ENCODING_FIELD_NUMBER = 5; private int encoding_; /** - * - * *
    * 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() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(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; @@ -441,7 +379,8 @@ 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_); } @@ -473,15 +412,16 @@ 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -491,24 +431,27 @@ 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: @@ -547,127 +490,118 @@ 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() @@ -675,15 +609,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -699,9 +634,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 @@ -720,8 +655,7 @@ 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); + com.google.pubsub.v1.ValidateMessageRequest result = new com.google.pubsub.v1.ValidateMessageRequest(this); result.parent_ = parent_; if (schemaSpecCase_ == 2) { result.schemaSpec_ = schemaSpec_; @@ -744,39 +678,38 @@ public com.google.pubsub.v1.ValidateMessageRequest 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.ValidateMessageRequest) { - return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest) other); + return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest)other); } else { super.mergeFrom(other); return this; @@ -796,22 +729,19 @@ 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.unknownFields); onChanged(); @@ -841,12 +771,12 @@ public Builder mergeFrom( } 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() { @@ -856,25 +786,22 @@ public Builder clearSchemaSpec() { return this; } + 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; @@ -883,24 +810,21 @@ 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 { @@ -908,85 +832,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ @java.lang.Override @@ -994,15 +902,12 @@ public boolean hasName() { return schemaSpecCase_ == 2; } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -1012,7 +917,8 @@ 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; @@ -1023,26 +929,25 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * 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; } @@ -1052,37 +957,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - schemaSpecCase_ = 2; + throw new NullPointerException(); + } + schemaSpecCase_ = 2; schemaSpec_ = value; onChanged(); return this; } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { @@ -1094,23 +994,21 @@ public Builder clearName() { return this; } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); schemaSpecCase_ = 2; schemaSpec_ = value; onChanged(); @@ -1118,19 +1016,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } 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 @@ -1138,14 +1030,11 @@ 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 @@ -1163,8 +1052,6 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1185,15 +1072,14 @@ 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(); @@ -1204,8 +1090,6 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { return this; } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1214,12 +1098,10 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { */ 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; } @@ -1235,8 +1117,6 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1260,8 +1140,6 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1272,8 +1150,6 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1292,8 +1168,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1301,38 +1175,31 @@ 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; - onChanged(); - ; + onChanged();; return schemaBuilder_; } 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 @@ -1340,39 +1207,33 @@ 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(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
      * Message to validate against the provided `schema_spec`.
      * 
* * bytes message = 4; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; @@ -1380,47 +1241,37 @@ 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. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** - * - * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return The encoding. */ @java.lang.Override @@ -1430,14 +1281,11 @@ 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. */ @@ -1445,31 +1293,28 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; 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); } @@ -1479,12 +1324,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(); } @@ -1493,16 +1338,16 @@ 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 { - return new ValidateMessageRequest(input, extensionRegistry); - } - }; + 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 { + return new ValidateMessageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1517,4 +1362,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ValidateMessageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index f2c3968c0..53b514966 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,126 +1,85 @@ -/* - * Copyright 2020 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 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.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ boolean hasName(); /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * 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
    * 
@@ -130,39 +89,30 @@ public interface ValidateMessageRequestOrBuilder 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java similarity index 67% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index f734b6925..591d694d8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; /** - * - * *
  * Response for the `ValidateMessage` method.
  * Empty for now.
@@ -28,29 +11,30 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ValidateMessageResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,13 +53,13 @@ private ValidateMessageResponse(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,30 +67,27 @@ private ValidateMessageResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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;
@@ -118,7 +99,8 @@ 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 {
     unknownFields.writeTo(output);
   }
 
@@ -136,13 +118,12 @@ 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -160,104 +141,97 @@ 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.
@@ -265,23 +239,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
@@ -289,15 +261,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -305,9 +278,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
@@ -326,8 +299,7 @@ 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;
     }
@@ -336,39 +308,38 @@ 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;
@@ -405,9 +376,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -417,12 +388,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();
   }
@@ -431,16 +402,16 @@ 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 {
-          return new ValidateMessageResponse(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new ValidateMessageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -455,4 +426,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ValidateMessageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
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
new file mode 100644
index 000000000..ab8ed5a52
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/schema.proto
+
+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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
similarity index 68%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
index 5aa2bf5dd..6b493f678 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 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
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ValidateSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,34 +53,32 @@ private ValidateSchemaRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schema_ != null) { + subBuilder = schema_.toBuilder(); } - case 18: - { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); - } - schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); - } - - break; + schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schema_); + schema_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,42 +86,35 @@ private ValidateSchemaRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } public static final int PARENT_FIELD_NUMBER = 1; 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 @@ -149,32 +123,30 @@ 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 { @@ -185,14 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -200,14 +169,11 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ @java.lang.Override @@ -215,8 +181,6 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** - * - * *
    * Required. The schema object to validate.
    * 
@@ -229,7 +193,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,7 +204,8 @@ 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_); } @@ -261,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSchema()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -271,18 +236,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -306,127 +272,118 @@ 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() @@ -434,15 +391,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +416,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 @@ -479,8 +437,7 @@ 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); + com.google.pubsub.v1.ValidateSchemaRequest result = new com.google.pubsub.v1.ValidateSchemaRequest(this); result.parent_ = parent_; if (schemaBuilder_ == null) { result.schema_ = schema_; @@ -495,39 +452,38 @@ public com.google.pubsub.v1.ValidateSchemaRequest 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.ValidateSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest) other); + return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -574,23 +530,19 @@ public Builder mergeFrom( 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; @@ -599,24 +551,21 @@ 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 { @@ -624,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -695,33 +631,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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 schemaBuilder_ != null || schema_ != null; } /** - * - * *
      * 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() { @@ -732,8 +659,6 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -754,15 +679,14 @@ 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(); onChanged(); @@ -773,8 +697,6 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { return this; } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -784,7 +706,8 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { if (schema_ != null) { - schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); + schema_ = + com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -796,8 +719,6 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -816,8 +737,6 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -825,13 +744,11 @@ public Builder clearSchema() { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { - + onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -842,12 +759,11 @@ 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.
      * 
@@ -855,24 +771,21 @@ 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); } @@ -882,12 +795,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(); } @@ -896,16 +809,16 @@ 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 { - return new ValidateSchemaRequest(input, extensionRegistry); - } - }; + 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 { + return new ValidateSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ValidateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 2c972155f..c40d9f9a7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,86 +1,53 @@ -/* - * Copyright 2020 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 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/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java similarity index 67% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index e7755cca3..f08f29d83 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 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 package com.google.pubsub.v1; /** - * - * *
  * Response for the `ValidateSchema` method.
  * Empty for now.
@@ -28,29 +11,30 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ValidateSchemaResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,13 +53,13 @@ private ValidateSchemaResponse(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,30 +67,27 @@ private ValidateSchemaResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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;
@@ -118,7 +99,8 @@ 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 {
     unknownFields.writeTo(output);
   }
 
@@ -136,13 +118,12 @@ 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -160,104 +141,97 @@ 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.
@@ -265,23 +239,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
@@ -289,15 +261,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -305,9 +278,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
@@ -326,8 +299,7 @@ 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;
     }
@@ -336,39 +308,38 @@ 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;
@@ -405,9 +376,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -417,12 +388,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();
   }
@@ -431,16 +402,16 @@ 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 {
-          return new ValidateSchemaResponse(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new ValidateSchemaResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -455,4 +426,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ValidateSchemaResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
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
new file mode 100644
index 000000000..b3fb35d84
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/schema.proto
+
+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/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
similarity index 100%
rename from proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto
similarity index 100%
rename from proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto
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
deleted file mode 100644
index 5b4e5d304..000000000
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2020 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
-
-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/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 deleted file mode 100644 index 43c455746..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index d48320804..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index a7267ded0..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index 27cd842bc..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index ce75ecb80..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index f101510fd..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index ca8af6c8b..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index b3695fc5a..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index d233bca82..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index 9875c7fe8..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ /dev/null @@ -1,1044 +0,0 @@ -/* - * Copyright 2020 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 - -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_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_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_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\";\n\024MessageStoragePolicy\022#\n\033allowed_p" - + "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" - + "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" - + "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" - + "gle.pubsub.v1.Encoding\"\303\003\n\005Topic\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" - + "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" - + "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" - + "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" - + "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." - + "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" - + "\022=\n\032message_retention_duration\030\010 \001(\0132\031.g" - + "oogle.protobuf.Duration\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pub" - + "sub.googleapis.com/Topic\022!projects/{proj" - + "ect}/topics/{topic}\022\017_deleted-topic_\"\361\001\n" - + "\rPubsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattribut" - + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" - + "e.AttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n" - + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attribu" - + "tesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"E\n\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" - + "A\035\n\033pubsub.googleapis.com/Topic\"w\n\022Updat" - + "eTopicRequest\022+\n\005topic\030\001 \001(\0132\027.google.pu" - + "bsub.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\016Publ" - + "ishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" - + "b.googleapis.com/Topic\0226\n\010messages\030\002 \003(\013" - + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"&" - + "\n\017PublishResponse\022\023\n\013message_ids\030\001 \003(\t\"\200" - + "\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB3\340" - + "A\002\372A-\n+cloudresourcemanager.googleapis.c" - + "om/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006topic" - + "s\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n\017next" - + "_page_token\030\002 \001(\t\"z\n\035ListTopicSubscripti" - + "onsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" - + "b.googleapis.com/Topic\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListTopicSubscr" - + "iptionsResponse\022>\n\rsubscriptions\030\001 \003(\tB\'" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "\027\n\017next_page_token\030\002 \001(\t\"v\n\031ListTopicSna" - + "pshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" - + "bsub.googleapis.com/Topic\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032ListTopicSna" - + "pshotsResponse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"H\n\022DeleteTopicRequest" - + "\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleap" - + "is.com/Topic\"]\n\031DetachSubscriptionReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\"\034\n\032DetachSub" - + "scriptionResponse\"\260\006\n\014Subscription\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" - + "bsub.googleapis.com/Topic\0221\n\013push_config" - + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" - + "ack_deadline_seconds\030\005 \001(\005\022\035\n\025retain_ack" - + "ed_messages\030\007 \001(\010\022=\n\032message_retention_d" - + "uration\030\010 \001(\0132\031.google.protobuf.Duration" - + "\022:\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subs" - + "cription.LabelsEntry\022\037\n\027enable_message_o" - + "rdering\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\013" - + "2\".google.pubsub.v1.ExpirationPolicy\022\016\n\006" - + "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" - + "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" - + "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" - + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_ex" - + "actly_once_delivery\030\020 \001(\010\022H\n topic_messa" - + "ge_retention_duration\030\021 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub." - + "googleapis.com/Subscription\022/projects/{p" - + "roject}/subscriptions/{subscription}\"u\n\013" - + "RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.g" - + "oogle.protobuf.Duration\0222\n\017maximum_backo" - + "ff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020D" - + "eadLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001" - + "(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Exp" - + "irationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.prot" - + "obuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_end" - + "point\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google" - + ".pubsub.v1.PushConfig.AttributesEntry\022<\n" - + "\noidc_token\030\003 \001(\0132&.google.pubsub.v1.Pus" - + "hConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025serv" - + "ice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(" - + "\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"m\n" - + "\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007mess" - + "age\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessa" - + "ge\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSubsc" - + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" - + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" - + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscrip" - + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubscr" - + "iptions\030\001 \003(\0132\036.google.pubsub.v1.Subscri" - + "ption\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Delete" - + "SubscriptionRequest\022@\n\014subscription\030\001 \001(" - + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" - + "ption\"\223\001\n\027ModifyPushConfigRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\0226\n\013push_config\030\002 \001(\013" - + "2\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013" - + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" - + "$\n\"pubsub.googleapis.com/Subscription\022!\n" - + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_" - + "messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021r" - + "eceived_messages\030\001 \003(\0132!.google.pubsub.v" - + "1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlineR" - + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" - + "bsub.googleapis.com/Subscription\022\024\n\007ack_" - + "ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003" - + " \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subsc" - + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" - + ".com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"" - + "\251\002\n\024StreamingPullRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_de" - + "adline_seconds\030\003 \003(\005\022\037\n\027modify_deadline_" - + "ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_sec" - + "onds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030ma" - + "x_outstanding_messages\030\007 \001(\003\022\035\n\025max_outs" - + "tanding_bytes\030\010 \001(\003\"\262\005\n\025StreamingPullRes" - + "ponse\022<\n\021received_messages\030\001 \003(\0132!.googl" - + "e.pubsub.v1.ReceivedMessage\022a\n\030acknowled" - + "ge_confirmation\030\005 \001(\0132?.google.pubsub.v1" - + ".StreamingPullResponse.AcknowledgeConfir" - + "mation\022o\n modify_ack_deadline_confirmati" - + "on\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" - + "lResponse.ModifyAckDeadlineConfirmation\022" - + "_\n\027subscription_properties\030\004 \001(\0132>.googl" - + "e.pubsub.v1.StreamingPullResponse.Subscr" - + "iptionProperties\032j\n\027AcknowledgeConfirmat" - + "ion\022\023\n\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_" - + "ids\030\002 \003(\tB\002\010\001\022\035\n\021unordered_ack_ids\030\003 \003(\t" - + "B\002\010\001\032Q\n\035ModifyAckDeadlineConfirmation\022\023\n" - + "\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_ids\030\002 " - + "\003(\tB\002\010\001\032a\n\026SubscriptionProperties\022%\n\035exa" - + "ctly_once_delivery_enabled\030\001 \001(\010\022 \n\030mess" - + "age_ordering_enabled\030\002 \001(\010J\004\010\002\020\003\"\203\002\n\025Cre" - + "ateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A " - + "\n\036pubsub.googleapis.com/Snapshot\022@\n\014subs" - + "cription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\022C\n\006labels\030\003 \003(\01323.goo" - + "gle.pubsub.v1.CreateSnapshotRequest.Labe" - + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest" - + "\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sn" - + "apshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014" - + "\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub" - + ".googleapis.com/Topic\022/\n\013expire_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\0226\n\006labels" - + "\030\004 \003(\0132&.google.pubsub.v1.Snapshot.Label" - + "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" - + "m/Snapshot\022\'projects/{project}/snapshots" - + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" - + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" - + "om/Snapshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007" - + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" - + "ger.googleapis.com/Project\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapsho" - + "tsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.google.p" - + "ubsub.v1.Snapshot\022\027\n\017next_page_token\030\002 \001" - + "(\t\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030" - + "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" - + "pshot\"\276\001\n\013SeekRequest\022@\n\014subscription\030\001 " - + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" - + "ription\022*\n\004time\030\002 \001(\0132\032.google.protobuf." - + "TimestampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubs" - + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" - + "\n\014SeekResponse2\243\013\n\tPublisher\022q\n\013CreateTo" - + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" - + "bsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=project" - + "s/*/topics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$" - + ".google.pubsub.v1.UpdateTopicRequest\032\027.g" - + "oogle.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topi" - + "c.name=projects/*/topics/*}:\001*\022\223\001\n\007Publi" - + "sh\022 .google.pubsub.v1.PublishRequest\032!.g" - + "oogle.pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"" - + "\'/v1/{topic=projects/*/topics/*}:publish" - + ":\001*\332A\016topic,messages\022w\n\010GetTopic\022!.googl" - + "e.pubsub.v1.GetTopicRequest\032\027.google.pub" - + "sub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{topic=project" - + "s/*/topics/*}\332A\005topic\022\212\001\n\nListTopics\022#.g" - + "oogle.pubsub.v1.ListTopicsRequest\032$.goog" - + "le.pubsub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022" - + "\037/v1/{project=projects/*}/topics\332A\007proje" - + "ct\022\272\001\n\026ListTopicSubscriptions\022/.google.p" - + "ubsub.v1.ListTopicSubscriptionsRequest\0320" - + ".google.pubsub.v1.ListTopicSubscriptions" - + "Response\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/" - + "topics/*}/subscriptions\332A\005topic\022\252\001\n\022List" - + "TopicSnapshots\022+.google.pubsub.v1.ListTo" - + "picSnapshotsRequest\032,.google.pubsub.v1.L" - + "istTopicSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{" - + "topic=projects/*/topics/*}/snapshots\332A\005t" - + "opic\022|\n\013DeleteTopic\022$.google.pubsub.v1.D" - + "eleteTopicRequest\032\026.google.protobuf.Empt" - + "y\"/\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" - + "*}\332A\005topic\022\255\001\n\022DetachSubscription\022+.goog" - + "le.pubsub.v1.DetachSubscriptionRequest\032," - + ".google.pubsub.v1.DetachSubscriptionResp" - + "onse\"<\202\323\344\223\0026\"4/v1/{subscription=projects" - + "/*/subscriptions/*}:detach\032p\312A\025pubsub.go" - + "ogleapis.com\322AUhttps://www.googleapis.co" - + "m/auth/cloud-platform,https://www.google" - + "apis.com/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022" - + "CreateSubscription\022\036.google.pubsub.v1.Su" - + "bscription\032\036.google.pubsub.v1.Subscripti" - + "on\"^\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" - + "ptions/*}:\001*\332A+name,topic,push_config,ac" - + "k_deadline_seconds\022\241\001\n\017GetSubscription\022(" - + ".google.pubsub.v1.GetSubscriptionRequest" - + "\032\036.google.pubsub.v1.Subscription\"D\202\323\344\223\002/" - + "\022-/v1/{subscription=projects/*/subscript" - + "ions/*}\332A\014subscription\022\240\001\n\022UpdateSubscri" - + "ption\022+.google.pubsub.v1.UpdateSubscript" - + "ionRequest\032\036.google.pubsub.v1.Subscripti" - + "on\"=\202\323\344\223\002722/v1/{subscription.name=proje" - + "cts/*/subscriptions/*}:\001*\022\246\001\n\021ListSubscr" - + "iptions\022*.google.pubsub.v1.ListSubscript" - + "ionsRequest\032+.google.pubsub.v1.ListSubsc" - + "riptionsResponse\"8\202\323\344\223\002(\022&/v1/{project=p" - + "rojects/*}/subscriptions\332A\007project\022\237\001\n\022D" - + "eleteSubscription\022+.google.pubsub.v1.Del" - + "eteSubscriptionRequest\032\026.google.protobuf" - + ".Empty\"D\202\323\344\223\002/*-/v1/{subscription=projec" - + "ts/*/subscriptions/*}\332A\014subscription\022\317\001\n" - + "\021ModifyAckDeadline\022*.google.pubsub.v1.Mo" - + "difyAckDeadlineRequest\032\026.google.protobuf" - + ".Empty\"v\202\323\344\223\002D\"?/v1/{subscription=projec" - + "ts/*/subscriptions/*}:modifyAckDeadline:" - + "\001*\332A)subscription,ack_ids,ack_deadline_s" - + "econds\022\250\001\n\013Acknowledge\022$.google.pubsub.v" - + "1.AcknowledgeRequest\032\026.google.protobuf.E" - + "mpty\"[\202\323\344\223\002>\"9/v1/{subscription=projects" - + "/*/subscriptions/*}:acknowledge:\001*\332A\024sub" - + "scription,ack_ids\022\320\001\n\004Pull\022\035.google.pubs" - + "ub.v1.PullRequest\032\036.google.pubsub.v1.Pul" - + "lResponse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:pull:\001*\332A,subs" - + "cription,return_immediately,max_messages" - + "\332A\031subscription,max_messages\022f\n\rStreamin" - + "gPull\022&.google.pubsub.v1.StreamingPullRe" - + "quest\032\'.google.pubsub.v1.StreamingPullRe" - + "sponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).goog" - + "le.pubsub.v1.ModifyPushConfigRequest\032\026.g" - + "oogle.protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subsc" - + "ription=projects/*/subscriptions/*}:modi" - + "fyPushConfig:\001*\332A\030subscription,push_conf" - + "ig\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1.Ge" - + "tSnapshotRequest\032\032.google.pubsub.v1.Snap" - + "shot\"8\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/s" - + "napshots/*}\332A\010snapshot\022\226\001\n\rListSnapshots" - + "\022&.google.pubsub.v1.ListSnapshotsRequest" - + "\032\'.google.pubsub.v1.ListSnapshotsRespons" - + "e\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" - + "shots\332A\007project\022\227\001\n\016CreateSnapshot\022\'.goo" - + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" - + "ogle.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{na" - + "me=projects/*/snapshots/*}:\001*\332A\021name,sub" - + "scription\022\214\001\n\016UpdateSnapshot\022\'.google.pu" - + "bsub.v1.UpdateSnapshotRequest\032\032.google.p" - + "ubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot" - + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" - + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" - + "pshotRequest\032\026.google.protobuf.Empty\"8\202\323" - + "\344\223\002\'*%/v1/{snapshot=projects/*/snapshots" - + "/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubsub." - + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" - + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" - + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" - + ".googleapis.com\322AUhttps://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/pubsubB\256\001\n\024com.google.p" - + "ubsub.v1B\013PubsubProtoP\001Z6google.golang.o" - + "rg/genproto/googleapis/pubsub/v1;pubsub\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", - }); - 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", - }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(2); - 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", - }); - 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(3); - 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(4); - 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(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(10); - 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(11); - 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(12); - 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(13); - 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(14); - 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(15); - 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(16); - 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(17); - 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", - "AckDeadlineSeconds", - "RetainAckedMessages", - "MessageRetentionDuration", - "Labels", - "EnableMessageOrdering", - "ExpirationPolicy", - "Filter", - "DeadLetterPolicy", - "RetryPolicy", - "Detached", - "EnableExactlyOnceDelivery", - "TopicMessageRetentionDuration", - }); - 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(18); - 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(19); - 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(20); - 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(21); - 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", "AuthenticationMethod", - }); - 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_AttributesEntry_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); - 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_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(22); - 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(23); - 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(24); - 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(25); - 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(26); - 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(27); - 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(28); - 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(29); - 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(30); - 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(31); - 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(32); - 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(33); - 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(34); - 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", - }); - 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", - }); - 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(35); - 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(36); - 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(37); - 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(38); - 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(39); - 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(40); - 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(41); - 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(42); - 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(43); - 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/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 deleted file mode 100644 index f692cb891..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Copyright 2020 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 - -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_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\"\341\001\n\006Sc" - + "hema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035." - + "google.pubsub.v1.Schema.Type\022\022\n\ndefiniti" - + "on\030\003 \001(\t\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\023" - + "\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n\034pubs" - + "ub.googleapis.com/Schema\022#projects/{proj" - + "ect}/schemas/{schema}\"\215\001\n\023CreateSchemaRe" - + "quest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubsub.go" - + "ogleapis.com/Schema\022-\n\006schema\030\002 \001(\0132\030.go" - + "ogle.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschema_id\030" - + "\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001 \001(\tB" - + "$\340A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n" - + "\004view\030\002 \001(\0162\034.google.pubsub.v1.SchemaVie" - + "w\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022*\n\004view\030\002 \001(\0162\034.google.pub" - + "sub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" - + "page_token\030\004 \001(\t\"Y\n\023ListSchemasResponse\022" - + ")\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1.Sche" - + "ma\022\027\n\017next_page_token\030\002 \001(\t\"I\n\023DeleteSch" - + "emaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub" - + ".googleapis.com/Schema\"\213\001\n\025ValidateSchem" - + "aRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" - + "esourcemanager.googleapis.com/Project\022-\n" - + "\006schema\030\002 \001(\0132\030.google.pubsub.v1.SchemaB" - + "\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026Valid" - + "ateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.google" - + "apis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030.goog" - + "le.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001(\014\022," - + "\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1.Enco" - + "dingB\r\n\013schema_spec\"\031\n\027ValidateMessageRe" - + "sponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_UNSP" - + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010Encodi" - + "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON\020\001\022\n" - + "\n\006BINARY\020\0022\367\007\n\rSchemaService\022\232\001\n\014CreateS" - + "chema\022%.google.pubsub.v1.CreateSchemaReq" - + "uest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223\002)\"\037" - + "/v1/{parent=projects/*}/schemas:\006schema\332" - + "A\027parent,schema,schema_id\022y\n\tGetSchema\022\"" - + ".google.pubsub.v1.GetSchemaRequest\032\030.goo" - + "gle.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{name=" - + "projects/*/schemas/*}\332A\004name\022\214\001\n\013ListSch" - + "emas\022$.google.pubsub.v1.ListSchemasReque" - + "st\032%.google.pubsub.v1.ListSchemasRespons" - + "e\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/schem" - + "as\332A\006parent\022}\n\014DeleteSchema\022%.google.pub" - + "sub.v1.DeleteSchemaRequest\032\026.google.prot" - + "obuf.Empty\".\202\323\344\223\002!*\037/v1/{name=projects/*" - + "/schemas/*}\332A\004name\022\250\001\n\016ValidateSchema\022\'." - + "google.pubsub.v1.ValidateSchemaRequest\032(" - + ".google.pubsub.v1.ValidateSchemaResponse" - + "\"C\202\323\344\223\002-\"(/v1/{parent=projects/*}/schema" - + "s:validate:\001*\332A\rparent,schema\022\242\001\n\017Valida" - + "teMessage\022(.google.pubsub.v1.ValidateMes" - + "sageRequest\032).google.pubsub.v1.ValidateM" - + "essageResponse\":\202\323\344\223\0024\"//v1/{parent=proj" - + "ects/*}/schemas:validateMessage:\001*\032p\312A\025p" - + "ubsub.googleapis.com\322AUhttps://www.googl" - + "eapis.com/auth/cloud-platform,https://ww" - + "w.googleapis.com/auth/pubsubB\256\001\n\024com.goo" - + "gle.pubsub.v1B\013SchemaProtoP\001Z6google.gol" - + "ang.org/genproto/googleapis/pubsub/v1;pu" - + "bsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" - + "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" - + "b::V1b\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(), - }); - 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", - }); - 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_DeleteSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} 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 deleted file mode 100644 index 5cdd14219..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index e8be64dc7..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - -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/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 deleted file mode 100644 index 9e8467fc1..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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 - -package com.google.pubsub.v1; - -public interface ValidateSchemaResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaResponse) - com.google.protobuf.MessageOrBuilder {} From 8bbfd032798967021c3aaf9f3b83d4b544469106 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 May 2022 21:12:41 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= 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 --- .../cloud/pubsub/v1/SchemaServiceClient.java | 16 +- .../pubsub/v1/SchemaServiceSettings.java | 7 +- .../pubsub/v1/SubscriptionAdminClient.java | 820 +++++- .../pubsub/v1/SubscriptionAdminSettings.java | 7 +- .../cloud/pubsub/v1/TopicAdminClient.java | 250 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 13 +- .../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 - .../cloud/pubsub/v1/stub/PublisherStub.java | 0 .../pubsub/v1/stub/PublisherStubSettings.java | 27 +- .../pubsub/v1/stub/SchemaServiceStub.java | 0 .../v1/stub/SchemaServiceStubSettings.java | 6 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 0 .../v1/stub/SubscriberStubSettings.java | 12 +- .../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 .../pubsub/v1/SchemaServiceClientTest.java | 0 .../v1/SubscriptionAdminClientTest.java | 0 .../cloud/pubsub/v1/TopicAdminClientTest.java | 0 .../com/google/pubsub/v1/PublisherGrpc.java | 906 +++--- .../google/pubsub/v1/SchemaServiceGrpc.java | 906 ++++++ .../com/google/pubsub/v1/SubscriberGrpc.java | 1469 ++++++---- .../google/pubsub/v1/SchemaServiceGrpc.java | 733 ----- .../v1/DeleteSchemaRequestOrBuilder.java | 31 - .../v1/DeleteSnapshotRequestOrBuilder.java | 31 - .../DeleteSubscriptionRequestOrBuilder.java | 31 - .../v1/DeleteTopicRequestOrBuilder.java | 31 - .../DetachSubscriptionRequestOrBuilder.java | 31 - .../DetachSubscriptionResponseOrBuilder.java | 9 - .../v1/GetSnapshotRequestOrBuilder.java | 31 - .../v1/GetSubscriptionRequestOrBuilder.java | 31 - .../pubsub/v1/GetTopicRequestOrBuilder.java | 31 - .../pubsub/v1/PublishRequestOrBuilder.java | 75 - .../com/google/pubsub/v1/PubsubProto.java | 952 ------- .../com/google/pubsub/v1/SchemaProto.java | 236 -- .../pubsub/v1/SeekResponseOrBuilder.java | 9 - .../v1/ValidateMessageResponseOrBuilder.java | 9 - .../v1/ValidateSchemaResponseOrBuilder.java | 9 - .../google/pubsub/v1/AcknowledgeRequest.java | 437 +-- .../v1/AcknowledgeRequestOrBuilder.java | 53 +- .../google/pubsub/v1/CreateSchemaRequest.java | 493 ++-- .../v1/CreateSchemaRequestOrBuilder.java | 52 +- .../pubsub/v1/CreateSnapshotRequest.java | 698 ++--- .../v1/CreateSnapshotRequestOrBuilder.java | 83 +- .../google/pubsub/v1/DeadLetterPolicy.java | 331 ++- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 30 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 326 ++- .../v1/DeleteSchemaRequestOrBuilder.java | 56 + .../pubsub/v1/DeleteSnapshotRequest.java | 329 ++- .../v1/DeleteSnapshotRequestOrBuilder.java | 56 + .../pubsub/v1/DeleteSubscriptionRequest.java | 329 ++- .../DeleteSubscriptionRequestOrBuilder.java | 56 + .../google/pubsub/v1/DeleteTopicRequest.java | 326 ++- .../v1/DeleteTopicRequestOrBuilder.java | 56 + .../pubsub/v1/DetachSubscriptionRequest.java | 329 ++- .../DetachSubscriptionRequestOrBuilder.java | 56 + .../pubsub/v1/DetachSubscriptionResponse.java | 228 +- .../DetachSubscriptionResponseOrBuilder.java | 24 + .../java/com/google/pubsub/v1/Encoding.java | 82 +- .../google/pubsub/v1/ExpirationPolicy.java | 310 ++- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 26 +- .../google/pubsub/v1/GetSchemaRequest.java | 375 ++- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 41 +- .../google/pubsub/v1/GetSnapshotRequest.java | 326 ++- .../v1/GetSnapshotRequestOrBuilder.java | 56 + .../pubsub/v1/GetSubscriptionRequest.java | 329 ++- .../v1/GetSubscriptionRequestOrBuilder.java | 56 + .../com/google/pubsub/v1/GetTopicRequest.java | 322 ++- .../pubsub/v1/GetTopicRequestOrBuilder.java | 56 + .../google/pubsub/v1/ListSchemasRequest.java | 489 ++-- .../v1/ListSchemasRequestOrBuilder.java | 53 +- .../google/pubsub/v1/ListSchemasResponse.java | 454 +-- .../v1/ListSchemasResponseOrBuilder.java | 46 +- .../pubsub/v1/ListSnapshotsRequest.java | 442 +-- .../v1/ListSnapshotsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListSnapshotsResponse.java | 454 +-- .../v1/ListSnapshotsResponseOrBuilder.java | 46 +- .../pubsub/v1/ListSubscriptionsRequest.java | 442 +-- .../v1/ListSubscriptionsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListSubscriptionsResponse.java | 443 +-- .../ListSubscriptionsResponseOrBuilder.java | 45 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 442 +-- .../ListTopicSnapshotsRequestOrBuilder.java | 47 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 415 +-- .../ListTopicSnapshotsResponseOrBuilder.java | 45 +- .../v1/ListTopicSubscriptionsRequest.java | 452 +-- ...istTopicSubscriptionsRequestOrBuilder.java | 47 +- .../v1/ListTopicSubscriptionsResponse.java | 425 +-- ...stTopicSubscriptionsResponseOrBuilder.java | 45 +- .../google/pubsub/v1/ListTopicsRequest.java | 435 +-- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 47 +- .../google/pubsub/v1/ListTopicsResponse.java | 454 +-- .../v1/ListTopicsResponseOrBuilder.java | 46 +- .../pubsub/v1/MessageStoragePolicy.java | 340 ++- .../v1/MessageStoragePolicyOrBuilder.java | 36 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 474 ++-- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 56 +- .../pubsub/v1/ModifyPushConfigRequest.java | 461 +-- .../v1/ModifyPushConfigRequestOrBuilder.java | 52 +- .../com/google/pubsub/v1/ProjectName.java | 0 .../com/google/pubsub/v1/PublishRequest.java | 562 ++-- .../pubsub/v1/PublishRequestOrBuilder.java | 117 + .../com/google/pubsub/v1/PublishResponse.java | 326 ++- .../pubsub/v1/PublishResponseOrBuilder.java | 36 +- .../com/google/pubsub/v1/PubsubMessage.java | 767 ++--- .../pubsub/v1/PubsubMessageOrBuilder.java | 78 +- .../com/google/pubsub/v1/PubsubProto.java | 1044 +++++++ .../com/google/pubsub/v1/PullRequest.java | 430 +-- .../pubsub/v1/PullRequestOrBuilder.java | 51 +- .../com/google/pubsub/v1/PullResponse.java | 359 ++- .../pubsub/v1/PullResponseOrBuilder.java | 36 +- .../java/com/google/pubsub/v1/PushConfig.java | 1071 +++---- .../google/pubsub/v1/PushConfigOrBuilder.java | 66 +- .../com/google/pubsub/v1/ReceivedMessage.java | 424 +-- .../pubsub/v1/ReceivedMessageOrBuilder.java | 38 +- .../com/google/pubsub/v1/RetryPolicy.java | 414 +-- .../pubsub/v1/RetryPolicyOrBuilder.java | 34 +- .../java/com/google/pubsub/v1/Schema.java | 472 ++-- .../java/com/google/pubsub/v1/SchemaName.java | 0 .../com/google/pubsub/v1/SchemaOrBuilder.java | 42 +- .../com/google/pubsub/v1/SchemaProto.java | 255 ++ .../com/google/pubsub/v1/SchemaSettings.java | 372 ++- .../pubsub/v1/SchemaSettingsOrBuilder.java | 41 +- .../java/com/google/pubsub/v1/SchemaView.java | 82 +- .../com/google/pubsub/v1/SeekRequest.java | 561 ++-- .../pubsub/v1/SeekRequestOrBuilder.java | 55 +- .../com/google/pubsub/v1/SeekResponse.java | 218 +- .../pubsub/v1/SeekResponseOrBuilder.java | 24 + .../java/com/google/pubsub/v1/Snapshot.java | 716 ++--- .../com/google/pubsub/v1/SnapshotName.java | 0 .../google/pubsub/v1/SnapshotOrBuilder.java | 75 +- .../pubsub/v1/StreamingPullRequest.java | 842 +++--- .../v1/StreamingPullRequestOrBuilder.java | 98 +- .../pubsub/v1/StreamingPullResponse.java | 2460 +++++++++++------ .../v1/StreamingPullResponseOrBuilder.java | 108 +- .../com/google/pubsub/v1/Subscription.java | 1575 +++++++---- .../google/pubsub/v1/SubscriptionName.java | 0 .../pubsub/v1/SubscriptionOrBuilder.java | 159 +- .../main/java/com/google/pubsub/v1/Topic.java | 956 ++++--- .../java/com/google/pubsub/v1/TopicName.java | 0 .../com/google/pubsub/v1/TopicOrBuilder.java | 94 +- .../pubsub/v1/UpdateSnapshotRequest.java | 472 ++-- .../v1/UpdateSnapshotRequestOrBuilder.java | 43 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 505 ++-- .../UpdateSubscriptionRequestOrBuilder.java | 55 +- .../google/pubsub/v1/UpdateTopicRequest.java | 441 +-- .../v1/UpdateTopicRequestOrBuilder.java | 43 +- .../pubsub/v1/ValidateMessageRequest.java | 661 +++-- .../v1/ValidateMessageRequestOrBuilder.java | 64 +- .../pubsub/v1/ValidateMessageResponse.java | 225 +- .../v1/ValidateMessageResponseOrBuilder.java | 24 + .../pubsub/v1/ValidateSchemaRequest.java | 417 +-- .../v1/ValidateSchemaRequestOrBuilder.java | 43 +- .../pubsub/v1/ValidateSchemaResponse.java | 225 +- .../v1/ValidateSchemaResponseOrBuilder.java | 24 + .../main/proto/google/pubsub/v1/pubsub.proto | 0 .../main/proto/google/pubsub/v1/schema.proto | 0 169 files changed, 23943 insertions(+), 14733 deletions(-) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java (98%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java (75%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java (86%) rename {owl-bot-staging/v1/google-cloud-pubsub => google-cloud-pubsub}/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java (96%) 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/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 (97%) 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 (98%) 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 (98%) 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/SchemaServiceClientTest.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/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 (50%) 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/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/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 (71%) 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/CreateSchemaRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java (69%) 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 (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java (66%) 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/DeleteSnapshotRequest.java (65%) 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 (66%) 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 (66%) 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 (66%) 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 (67%) 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 (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java (70%) 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 (66%) 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 (66%) 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 (65%) 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/ListSchemasRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java (73%) 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 (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java (72%) 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 (70%) 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 (64%) 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 (72%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java (66%) 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 (79%) 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 (69%) 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 (78%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PushConfig.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java (86%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ReceivedMessage.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/RetryPolicy.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Schema.java (75%) 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 (68%) 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 (70%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java (57%) 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 (75%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/SeekResponse.java (66%) 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 (73%) 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 (79%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java (88%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Subscription.java (77%) 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 (88%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/Topic.java (74%) 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 (85%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java (69%) 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 (65%) 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 (73%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java (72%) 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 (67%) 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 (68%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-pubsub-v1 => proto-google-cloud-pubsub-v1}/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java (67%) 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/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 98% 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 index b2bcae096..3ab408e71 100644 --- 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 @@ -76,13 +76,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1020,7 +1020,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListSchemasPagedResponse extends AbstractPagedListResponse< - ListSchemasRequest, ListSchemasResponse, Schema, ListSchemasPage, + ListSchemasRequest, + ListSchemasResponse, + Schema, + ListSchemasPage, ListSchemasFixedSizeCollection> { public static ApiFuture createAsync( @@ -1067,7 +1070,10 @@ public ApiFuture createPageAsync( public static class ListSchemasFixedSizeCollection extends AbstractFixedSizeCollection< - ListSchemasRequest, ListSchemasResponse, Schema, ListSchemasPage, + ListSchemasRequest, + ListSchemasResponse, + Schema, + ListSchemasPage, ListSchemasFixedSizeCollection> { private ListSchemasFixedSizeCollection(List pages, int collectionSize) { 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 97% 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 1d79903e9..597c33bc6 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 @@ -27,7 +27,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; @@ -58,9 +57,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When 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 75% 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 4960921d2..9b48ca018 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; @@ -97,13 +100,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -515,6 +518,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] @@ -640,6 +853,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. @@ -957,6 +1197,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 @@ -1101,6 +1371,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 @@ -1228,6 +1541,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 @@ -1429,6 +1777,80 @@ 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. /** * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many @@ -1584,23 +2006,61 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) { *

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ModifyPushConfigRequest request =
+   *       ModifyPushConfigRequest.newBuilder()
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setPushConfig(PushConfig.newBuilder().build())
+   *           .build();
+   *   subscriptionAdminClient.modifyPushConfig(request);
+   * }
+   * }
+ * + * @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 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()) {
-   *   ModifyPushConfigRequest request =
-   *       ModifyPushConfigRequest.newBuilder()
-   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
-   *           .setPushConfig(PushConfig.newBuilder().build())
-   *           .build();
-   *   subscriptionAdminClient.modifyPushConfig(request);
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
    * }
    * }
* - * @param request The request object containing all of the parameters for the API call. + * @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. */ - public final void modifyPushConfig(ModifyPushConfigRequest request) { - modifyPushConfigCallable().call(request); + @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. @@ -1719,6 +2179,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 <a @@ -2147,6 +2637,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 @@ -2338,6 +2979,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] @@ -2457,6 +3131,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. @@ -2512,6 +3217,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 @@ -2569,6 +3299,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, @@ -2633,7 +3401,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListSubscriptionsPagedResponse extends AbstractPagedListResponse< - ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage, + ListSubscriptionsRequest, + ListSubscriptionsResponse, + Subscription, + ListSubscriptionsPage, ListSubscriptionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2654,7 +3425,9 @@ private ListSubscriptionsPagedResponse(ListSubscriptionsPage page) { public static class ListSubscriptionsPage extends AbstractPage< - ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, + ListSubscriptionsRequest, + ListSubscriptionsResponse, + Subscription, ListSubscriptionsPage> { private ListSubscriptionsPage( @@ -2684,7 +3457,10 @@ public ApiFuture createPageAsync( public static class ListSubscriptionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage, + ListSubscriptionsRequest, + ListSubscriptionsResponse, + Subscription, + ListSubscriptionsPage, ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( @@ -2705,7 +3481,10 @@ protected ListSubscriptionsFixedSizeCollection createCollection( public static class ListSnapshotsPagedResponse extends AbstractPagedListResponse< - ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage, + ListSnapshotsRequest, + ListSnapshotsResponse, + Snapshot, + ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2755,7 +3534,10 @@ public ApiFuture createPageAsync( public static class ListSnapshotsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage, + ListSnapshotsRequest, + ListSnapshotsResponse, + Snapshot, + ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { 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 98% 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 1493e2d78..c658184ab 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 @@ -29,7 +29,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; @@ -72,9 +71,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When 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 86% 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 157f6262d..0aa458c06 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; @@ -80,13 +81,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -230,6 +231,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] @@ -501,6 +531,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. @@ -753,6 +808,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. @@ -1073,6 +1157,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 @@ -1212,6 +1324,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. @@ -1267,6 +1410,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 @@ -1324,6 +1492,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, @@ -1388,7 +1594,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListTopicsPagedResponse extends AbstractPagedListResponse< - ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage, + ListTopicsRequest, + ListTopicsResponse, + Topic, + ListTopicsPage, ListTopicsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1435,7 +1644,10 @@ public ApiFuture createPageAsync( public static class ListTopicsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage, + ListTopicsRequest, + ListTopicsResponse, + Topic, + ListTopicsPage, ListTopicsFixedSizeCollection> { private ListTopicsFixedSizeCollection(List pages, int collectionSize) { @@ -1455,8 +1667,11 @@ protected ListTopicsFixedSizeCollection createCollection( public static class ListTopicSubscriptionsPagedResponse extends AbstractPagedListResponse< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, - ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> { + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, + String, + ListTopicSubscriptionsPage, + ListTopicSubscriptionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -1476,7 +1691,9 @@ private ListTopicSubscriptionsPagedResponse(ListTopicSubscriptionsPage page) { public static class ListTopicSubscriptionsPage extends AbstractPage< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, + String, ListTopicSubscriptionsPage> { private ListTopicSubscriptionsPage( @@ -1506,8 +1723,11 @@ public ApiFuture createPageAsync( public static class ListTopicSubscriptionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, - ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> { + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, + String, + ListTopicSubscriptionsPage, + ListTopicSubscriptionsFixedSizeCollection> { private ListTopicSubscriptionsFixedSizeCollection( List pages, int collectionSize) { @@ -1527,7 +1747,10 @@ protected ListTopicSubscriptionsFixedSizeCollection createCollection( public static class ListTopicSnapshotsPagedResponse extends AbstractPagedListResponse< - ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage, + ListTopicSnapshotsRequest, + ListTopicSnapshotsResponse, + String, + ListTopicSnapshotsPage, ListTopicSnapshotsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1577,7 +1800,10 @@ public ApiFuture createPageAsync( public static class ListTopicSnapshotsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage, + ListTopicSnapshotsRequest, + ListTopicSnapshotsResponse, + String, + ListTopicSnapshotsPage, ListTopicSnapshotsFixedSizeCollection> { private ListTopicSnapshotsFixedSizeCollection( 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 96% 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 519a75417..d0efac54f 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 @@ -30,7 +30,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; @@ -65,9 +64,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -122,7 +121,8 @@ public UnaryCallSettings getTopicSettings() { /** Returns the object with the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return ((PublisherStubSettings) getStubSettings()).listTopicSubscriptionsSettings(); @@ -286,7 +286,8 @@ public UnaryCallSettings.Builder getTopicSettings() { /** Returns the builder for the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return getStubSettingsBuilder().listTopicSubscriptionsSettings(); 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 bc855e57e..53607aafe 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 cfd83cf86..4d06023b7 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 @@ -45,7 +45,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 d29c04424..e199d9ae3 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/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 97% 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 index 3ac382c73..aaeb343d3 100644 --- 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 @@ -88,9 +88,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -130,7 +130,8 @@ public class PublisherStubSettings extends StubSettings { private final PagedCallSettings listTopicsSettings; private final PagedCallSettings< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings; private final PagedCallSettings< @@ -279,11 +280,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -304,7 +307,8 @@ public ApiFuture getFuturePagedResponse( ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> LIST_TOPIC_SNAPSHOTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, + ListTopicSnapshotsRequest, + ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -413,7 +417,8 @@ public UnaryCallSettings getTopicSettings() { /** Returns the object with the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return listTopicSubscriptionsSettings; @@ -553,7 +558,8 @@ public static class Builder extends StubSettings.Builder listTopicsSettings; private final PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings; private final PagedCallSettings.Builder< @@ -840,7 +846,8 @@ public UnaryCallSettings.Builder getTopicSettings() { /** Returns the builder for the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return listTopicSubscriptionsSettings; 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 98% 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 index 89628daf1..a7d8fc4ae 100644 --- 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 @@ -71,9 +71,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When 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 98% 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 b62bec2c4..11a87f726 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 @@ -86,9 +86,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -229,7 +229,8 @@ public Iterable extractResources(ListSnapshotsResponse payload) { ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> LIST_SUBSCRIPTIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListSubscriptionsRequest, ListSubscriptionsResponse, + ListSubscriptionsRequest, + ListSubscriptionsResponse, ListSubscriptionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -403,8 +404,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde /** Returns a builder for the default ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); + return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20); } public static TransportChannelProvider defaultTransportChannelProvider() { 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/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/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/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 50% 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 340a9acc6..638e841d7 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 2020 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,401 +36,518 @@ private PublisherGrpc() {}
   public static final 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.
    * 
*/ - public static abstract class PublisherImplBase implements io.grpc.BindableService { + public abstract static class PublisherImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#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.ServerCalls.asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTopicMethod(), responseObserver); } /** + * + * *
      * Updates an existing topic. 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.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.
      * 
*/ - 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.ServerCalls.asyncUnimplementedUnaryCall(getPublishMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver); + public 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 @@ 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSnapshotsMethod(), responseObserver); + public 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 @@ 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.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,168 +592,192 @@ 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachSubscriptionMethod(), responseObserver); + public void detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetachSubscriptionMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { 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>( - this, METHODID_CREATE_TOPIC))) + getCreateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + this, METHODID_CREATE_TOPIC))) .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateTopicRequest, - com.google.pubsub.v1.Topic>( - this, METHODID_UPDATE_TOPIC))) + getUpdateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>( + this, METHODID_UPDATE_TOPIC))) .addMethod( - getPublishMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PublishRequest, - com.google.pubsub.v1.PublishResponse>( - this, METHODID_PUBLISH))) + getPublishMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>( + this, METHODID_PUBLISH))) .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetTopicRequest, - com.google.pubsub.v1.Topic>( - this, METHODID_GET_TOPIC))) + getGetTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>( + this, METHODID_GET_TOPIC))) .addMethod( - getListTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicsRequest, - com.google.pubsub.v1.ListTopicsResponse>( - this, METHODID_LIST_TOPICS))) + getListTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicsRequest, + com.google.pubsub.v1.ListTopicsResponse>(this, METHODID_LIST_TOPICS))) .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSubscriptionsRequest, - com.google.pubsub.v1.ListTopicSubscriptionsResponse>( - this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) + getListTopicSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSubscriptionsRequest, + com.google.pubsub.v1.ListTopicSubscriptionsResponse>( + this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) .addMethod( - getListTopicSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSnapshotsRequest, - com.google.pubsub.v1.ListTopicSnapshotsResponse>( - this, METHODID_LIST_TOPIC_SNAPSHOTS))) + getListTopicSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSnapshotsRequest, + com.google.pubsub.v1.ListTopicSnapshotsResponse>( + this, METHODID_LIST_TOPIC_SNAPSHOTS))) .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteTopicRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_TOPIC))) + getDeleteTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_TOPIC))) .addMethod( - getDetachSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DetachSubscriptionRequest, - com.google.pubsub.v1.DetachSubscriptionResponse>( - this, METHODID_DETACH_SUBSCRIPTION))) + getDetachSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DetachSubscriptionRequest, + com.google.pubsub.v1.DetachSubscriptionResponse>( + this, METHODID_DETACH_SUBSCRIPTION))) .build(); } } /** + * + * *
    * 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) { + 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/admin#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. 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,
@@ -619,13 +786,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
@@ -634,13 +807,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
@@ -648,22 +826,28 @@ 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); } } /** + * + * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public static final class PublisherBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private PublisherBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -674,6 +858,8 @@ protected PublisherBlockingStub build( } /** + * + * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -685,6 +871,8 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request
     }
 
     /**
+     *
+     *
      * 
      * Updates an existing topic. Note that certain properties of a
      * topic are not modifiable.
@@ -696,17 +884,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.
      * 
@@ -717,26 +910,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,
@@ -745,12 +946,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
@@ -765,6 +969,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
@@ -772,67 +978,77 @@ 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); } } /** + * + * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public static final class PublisherFutureStub extends io.grpc.stub.AbstractFutureStub { - private PublisherFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherFutureStub + extends io.grpc.stub.AbstractFutureStub { + 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/admin#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. 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.
      * 
@@ -844,28 +1060,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,
@@ -874,13 +1098,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
@@ -889,13 +1116,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
@@ -903,8 +1132,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);
     }
@@ -920,11 +1150,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 PublisherImplBase serviceImpl;
     private final int methodId;
 
@@ -938,40 +1168,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();
@@ -989,8 +1232,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  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
@@ -1032,18 +1276,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..c8061efe2
--- /dev/null
+++ b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
@@ -0,0 +1,906 @@
+/*
+ * Copyright 2020 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 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.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 abstract static class SchemaServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a schema.
+     * 
+ */ + public void createSchema( + com.google.pubsub.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a schema.
+     * 
+ */ + public 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.
+     * 
+ */ + public void listSchemas( + com.google.pubsub.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSchemasMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a schema.
+     * 
+ */ + public void deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Validates a schema.
+     * 
+ */ + public 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.
+     * 
+ */ + public void validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getValidateMessageMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_CREATE_SCHEMA))) + .addMethod( + getGetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>( + this, METHODID_GET_SCHEMA))) + .addMethod( + getListSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSchemasRequest, + com.google.pubsub.v1.ListSchemasResponse>(this, METHODID_LIST_SCHEMAS))) + .addMethod( + getDeleteSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_SCHEMA))) + .addMethod( + getValidateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateSchemaRequest, + com.google.pubsub.v1.ValidateSchemaResponse>(this, METHODID_VALIDATE_SCHEMA))) + .addMethod( + getValidateMessageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateMessageRequest, + com.google.pubsub.v1.ValidateMessageResponse>( + this, METHODID_VALIDATE_MESSAGE))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + + /** + * + * + *
+     * 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); + } + } + + /** + * + * + *
+   * 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); + } + + /** + * + * + *
+     * 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); + } + } + + /** + * + * + *
+   * 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); + } + + /** + * + * + *
+     * 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_DELETE_SCHEMA = 3; + private static final int METHODID_VALIDATE_SCHEMA = 4; + private static final int METHODID_VALIDATE_MESSAGE = 5; + + 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 SchemaServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SchemaServiceImplBase 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_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(); + } + } + } + + 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 String methodName; + + SchemaServiceMethodDescriptorSupplier(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(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 08d62c379..de5a11c89 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 2020 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,556 +37,709 @@ private SubscriberGrpc() {}
   public static final 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
    * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ - public static abstract class SubscriberImplBase implements io.grpc.BindableService { + public abstract static class SubscriberImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -583,43 +753,60 @@ public static abstract class SubscriberImplBase implements io.grpc.BindableServi
      * 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSubscriptionMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSubscriptionMethod(), responseObserver); } /** + * + * *
      * Updates an existing subscription. 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.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSubscriptionMethod(), responseObserver); } /** + * + * *
      * Lists matching subscriptions.
      * 
*/ - public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSubscriptionsMethod(), responseObserver); + public 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
@@ -628,12 +815,16 @@ 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.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
@@ -642,12 +833,16 @@ 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.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
@@ -657,24 +852,31 @@ 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.ServerCalls.asyncUnimplementedUnaryCall(getAcknowledgeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAcknowledgeMethod(), responseObserver); } /** + * + * *
      * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - 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.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
@@ -687,10 +889,13 @@ public void pull(com.google.pubsub.v1.PullRequest request,
      */
     public 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
@@ -699,12 +904,16 @@ 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.ServerCalls.asyncUnimplementedUnaryCall(getModifyPushConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getModifyPushConfigMethod(), responseObserver); } /** + * + * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -713,12 +922,16 @@ public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest reques
      * subscription to the 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.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
@@ -727,12 +940,16 @@ 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.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,
@@ -752,12 +969,16 @@ 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSnapshotMethod(), responseObserver); } /** + * + * *
      * Updates an existing snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -767,12 +988,16 @@ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request,
      * 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.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
@@ -785,12 +1010,16 @@ 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.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]
@@ -801,130 +1030,119 @@ 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.ServerCalls.asyncUnimplementedUnaryCall(getSeekMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { 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>( - this, METHODID_CREATE_SUBSCRIPTION))) + getCreateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>( + this, METHODID_CREATE_SUBSCRIPTION))) .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSubscriptionRequest, - com.google.pubsub.v1.Subscription>( - this, METHODID_GET_SUBSCRIPTION))) + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSubscriptionRequest, + com.google.pubsub.v1.Subscription>(this, METHODID_GET_SUBSCRIPTION))) .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSubscriptionRequest, - com.google.pubsub.v1.Subscription>( - this, METHODID_UPDATE_SUBSCRIPTION))) + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSubscriptionRequest, + com.google.pubsub.v1.Subscription>(this, METHODID_UPDATE_SUBSCRIPTION))) .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSubscriptionsRequest, - com.google.pubsub.v1.ListSubscriptionsResponse>( - this, METHODID_LIST_SUBSCRIPTIONS))) + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSubscriptionsRequest, + com.google.pubsub.v1.ListSubscriptionsResponse>( + this, METHODID_LIST_SUBSCRIPTIONS))) .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSubscriptionRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SUBSCRIPTION))) + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_SUBSCRIPTION))) .addMethod( - getModifyAckDeadlineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyAckDeadlineRequest, - com.google.protobuf.Empty>( - this, METHODID_MODIFY_ACK_DEADLINE))) + getModifyAckDeadlineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>( + this, METHODID_MODIFY_ACK_DEADLINE))) .addMethod( - getAcknowledgeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.AcknowledgeRequest, - com.google.protobuf.Empty>( - this, METHODID_ACKNOWLEDGE))) + getAcknowledgeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>( + this, METHODID_ACKNOWLEDGE))) .addMethod( - getPullMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PullRequest, - com.google.pubsub.v1.PullResponse>( - this, METHODID_PULL))) + getPullMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>( + this, METHODID_PULL))) .addMethod( - getStreamingPullMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.pubsub.v1.StreamingPullRequest, - com.google.pubsub.v1.StreamingPullResponse>( - this, METHODID_STREAMING_PULL))) + getStreamingPullMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.pubsub.v1.StreamingPullRequest, + com.google.pubsub.v1.StreamingPullResponse>(this, METHODID_STREAMING_PULL))) .addMethod( - getModifyPushConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyPushConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_MODIFY_PUSH_CONFIG))) + getModifyPushConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( + this, METHODID_MODIFY_PUSH_CONFIG))) .addMethod( - getGetSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSnapshotRequest, - com.google.pubsub.v1.Snapshot>( - this, METHODID_GET_SNAPSHOT))) + getGetSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>( + this, METHODID_GET_SNAPSHOT))) .addMethod( - getListSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSnapshotsRequest, - com.google.pubsub.v1.ListSnapshotsResponse>( - this, METHODID_LIST_SNAPSHOTS))) + getListSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSnapshotsRequest, + com.google.pubsub.v1.ListSnapshotsResponse>(this, METHODID_LIST_SNAPSHOTS))) .addMethod( - getCreateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CreateSnapshotRequest, - com.google.pubsub.v1.Snapshot>( - this, METHODID_CREATE_SNAPSHOT))) + getCreateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>( + this, METHODID_CREATE_SNAPSHOT))) .addMethod( - getUpdateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSnapshotRequest, - com.google.pubsub.v1.Snapshot>( - this, METHODID_UPDATE_SNAPSHOT))) + getUpdateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>( + this, METHODID_UPDATE_SNAPSHOT))) .addMethod( - getDeleteSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSnapshotRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SNAPSHOT))) + getDeleteSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_SNAPSHOT))) .addMethod( - getSeekMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.SeekRequest, - com.google.pubsub.v1.SeekResponse>( - this, METHODID_SEEK))) + getSeekMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>( + this, METHODID_SEEK))) .build(); } } /** + * + * *
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
@@ -932,18 +1150,18 @@ public void seek(com.google.pubsub.v1.SeekRequest request,
    * 
*/ public static final class SubscriberStub extends io.grpc.stub.AbstractAsyncStub { - private SubscriberStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + 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/admin#resource_names).
@@ -957,47 +1175,68 @@ protected SubscriberStub build(
      * 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. 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
@@ -1006,13 +1245,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
@@ -1021,13 +1265,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
@@ -1037,26 +1286,34 @@ 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. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - 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
@@ -1074,6 +1331,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
@@ -1082,13 +1341,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
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1097,13 +1361,18 @@ public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest reques
      * subscription to the 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
@@ -1112,13 +1381,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,
@@ -1138,13 +1412,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. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1154,13 +1433,18 @@ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request,
      * 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
@@ -1173,13 +1457,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]
@@ -1190,7 +1479,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); @@ -1198,15 +1488,17 @@ public void seek(com.google.pubsub.v1.SeekRequest request, } /** + * + * *
    * 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 SubscriberBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SubscriberBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SubscriberBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1217,6 +1509,8 @@ protected SubscriberBlockingStub build( } /** + * + * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -1230,43 +1524,55 @@ protected SubscriberBlockingStub build(
      * 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. 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
@@ -1275,12 +1581,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
@@ -1289,12 +1598,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
@@ -1310,6 +1622,8 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq
     }
 
     /**
+     *
+     *
      * 
      * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
@@ -1322,6 +1636,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
@@ -1330,12 +1646,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
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1344,12 +1663,15 @@ public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPus
      * subscription to the 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
@@ -1358,12 +1680,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,
@@ -1383,12 +1708,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. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1398,12 +1726,15 @@ public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateS
      * 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
@@ -1416,12 +1747,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]
@@ -1439,25 +1773,28 @@ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest r
   }
 
   /**
+   *
+   *
    * 
    * 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 SubscriberFutureStub extends io.grpc.stub.AbstractFutureStub { - private SubscriberFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberFutureStub + extends io.grpc.stub.AbstractFutureStub { + 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/admin#resource_names).
@@ -1471,47 +1808,56 @@ protected SubscriberFutureStub build(
      * 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. 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
@@ -1520,13 +1866,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
@@ -1535,13 +1883,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
@@ -1551,26 +1901,30 @@ 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. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - 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
@@ -1579,13 +1933,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
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1594,13 +1950,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
@@ -1609,13 +1967,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,
@@ -1635,13 +1996,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. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1651,13 +2014,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
@@ -1670,13 +2035,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]
@@ -1687,8 +2054,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);
     }
@@ -1711,11 +2078,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 SubscriberImplBase serviceImpl;
     private final int methodId;
 
@@ -1729,63 +2096,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:
@@ -1799,16 +2183,19 @@ 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();
       }
     }
   }
 
-  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
@@ -1850,25 +2237,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 e6514bb44..000000000
--- a/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
+++ /dev/null
@@ -1,733 +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 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 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 static abstract class SchemaServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a schema.
-     * 
- */ - public void createSchema(com.google.pubsub.v1.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); - } - - /** - *
-     * Gets a schema.
-     * 
- */ - public 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.
-     * 
- */ - public void listSchemas(com.google.pubsub.v1.ListSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); - } - - /** - *
-     * Deletes a schema.
-     * 
- */ - public void deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); - } - - /** - *
-     * Validates a schema.
-     * 
- */ - public 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.
-     * 
- */ - public void validateMessage(com.google.pubsub.v1.ValidateMessageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateMessageMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_CREATE_SCHEMA))) - .addMethod( - getGetSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSchemaRequest, - com.google.pubsub.v1.Schema>( - this, METHODID_GET_SCHEMA))) - .addMethod( - getListSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSchemasRequest, - com.google.pubsub.v1.ListSchemasResponse>( - this, METHODID_LIST_SCHEMAS))) - .addMethod( - getDeleteSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSchemaRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SCHEMA))) - .addMethod( - getValidateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateSchemaRequest, - com.google.pubsub.v1.ValidateSchemaResponse>( - this, METHODID_VALIDATE_SCHEMA))) - .addMethod( - getValidateMessageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateMessageRequest, - com.google.pubsub.v1.ValidateMessageResponse>( - this, METHODID_VALIDATE_MESSAGE))) - .build(); - } - } - - /** - *
-   * 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); - } - - /** - *
-     * 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); - } - } - - /** - *
-   * 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); - } - - /** - *
-     * 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); - } - } - - /** - *
-   * 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); - } - - /** - *
-     * 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_DELETE_SCHEMA = 3; - private static final int METHODID_VALIDATE_SCHEMA = 4; - private static final int METHODID_VALIDATE_MESSAGE = 5; - - 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 SchemaServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SchemaServiceImplBase 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_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(); - } - } - } - - 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 String methodName; - - SchemaServiceMethodDescriptorSupplier(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(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 2901f155e..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -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 f7ee8d19c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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 a0d563a50..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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 c776f2a4b..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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 0acda3201..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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 e9e8bdf14..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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 d0c929953..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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 1b1f6dccb..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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 f29eae1a6..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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/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 96eba7dc9..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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 006fa3771..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ /dev/null @@ -1,952 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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_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_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_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\";\n\024MessageStoragePolicy\022#\n\033allowed_p" + - "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" + - "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + - "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" + - "gle.pubsub.v1.Encoding\"\303\003\n\005Topic\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" + - "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" + - "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" + - "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" + - "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." + - "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" + - "\022=\n\032message_retention_duration\030\010 \001(\0132\031.g" + - "oogle.protobuf.Duration\032-\n\013LabelsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pub" + - "sub.googleapis.com/Topic\022!projects/{proj" + - "ect}/topics/{topic}\022\017_deleted-topic_\"\361\001\n" + - "\rPubsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattribut" + - "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" + - "e.AttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + - "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + - "mestamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attribu" + - "tesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"E\n\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" + - "A\035\n\033pubsub.googleapis.com/Topic\"w\n\022Updat" + - "eTopicRequest\022+\n\005topic\030\001 \001(\0132\027.google.pu" + - "bsub.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + - "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\016Publ" + - "ishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + - "b.googleapis.com/Topic\0226\n\010messages\030\002 \003(\013" + - "2\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"&" + - "\n\017PublishResponse\022\023\n\013message_ids\030\001 \003(\t\"\200" + - "\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB3\340" + - "A\002\372A-\n+cloudresourcemanager.googleapis.c" + - "om/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + - "ken\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006topic" + - "s\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n\017next" + - "_page_token\030\002 \001(\t\"z\n\035ListTopicSubscripti" + - "onsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + - "b.googleapis.com/Topic\022\021\n\tpage_size\030\002 \001(" + - "\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListTopicSubscr" + - "iptionsResponse\022>\n\rsubscriptions\030\001 \003(\tB\'" + - "\372A$\n\"pubsub.googleapis.com/Subscription\022" + - "\027\n\017next_page_token\030\002 \001(\t\"v\n\031ListTopicSna" + - "pshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" + - "bsub.googleapis.com/Topic\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032ListTopicSna" + - "pshotsResponse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"H\n\022DeleteTopicRequest" + - "\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleap" + - "is.com/Topic\"]\n\031DetachSubscriptionReques" + - "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + - "googleapis.com/Subscription\"\034\n\032DetachSub" + - "scriptionResponse\"\260\006\n\014Subscription\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" + - "bsub.googleapis.com/Topic\0221\n\013push_config" + - "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" + - "ack_deadline_seconds\030\005 \001(\005\022\035\n\025retain_ack" + - "ed_messages\030\007 \001(\010\022=\n\032message_retention_d" + - "uration\030\010 \001(\0132\031.google.protobuf.Duration" + - "\022:\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subs" + - "cription.LabelsEntry\022\037\n\027enable_message_o" + - "rdering\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\013" + - "2\".google.pubsub.v1.ExpirationPolicy\022\016\n\006" + - "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" + - "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" + - "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" + - "tryPolicy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_ex" + - "actly_once_delivery\030\020 \001(\010\022H\n topic_messa" + - "ge_retention_duration\030\021 \001(\0132\031.google.pro" + - "tobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub." + - "googleapis.com/Subscription\022/projects/{p" + - "roject}/subscriptions/{subscription}\"u\n\013" + - "RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.g" + - "oogle.protobuf.Duration\0222\n\017maximum_backo" + - "ff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020D" + - "eadLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001" + - "(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Exp" + - "irationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.prot" + - "obuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_end" + - "point\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google" + - ".pubsub.v1.PushConfig.AttributesEntry\022<\n" + - "\noidc_token\030\003 \001(\0132&.google.pubsub.v1.Pus" + - "hConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025serv" + - "ice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(" + - "\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"m\n" + - "\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007mess" + - "age\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessa" + - "ge\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSubsc" + - "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + - "\002\372A$\n\"pubsub.googleapis.com/Subscription" + - "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" + - "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" + - "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + - "protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscrip" + - "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" + - "loudresourcemanager.googleapis.com/Proje" + - "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + - "\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubscr" + - "iptions\030\001 \003(\0132\036.google.pubsub.v1.Subscri" + - "ption\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Delete" + - "SubscriptionRequest\022@\n\014subscription\030\001 \001(" + - "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" + - "ption\"\223\001\n\027ModifyPushConfigRequest\022@\n\014sub" + - "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + - "is.com/Subscription\0226\n\013push_config\030\002 \001(\013" + - "2\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013" + - "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" + - "$\n\"pubsub.googleapis.com/Subscription\022!\n" + - "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_" + - "messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021r" + - "eceived_messages\030\001 \003(\0132!.google.pubsub.v" + - "1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlineR" + - "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" + - "bsub.googleapis.com/Subscription\022\024\n\007ack_" + - "ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003" + - " \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subsc" + - "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + - ".com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"" + - "\251\002\n\024StreamingPullRequest\022@\n\014subscription" + - "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + - "bscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_de" + - "adline_seconds\030\003 \003(\005\022\037\n\027modify_deadline_" + - "ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_sec" + - "onds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030ma" + - "x_outstanding_messages\030\007 \001(\003\022\035\n\025max_outs" + - "tanding_bytes\030\010 \001(\003\"\262\005\n\025StreamingPullRes" + - "ponse\022<\n\021received_messages\030\001 \003(\0132!.googl" + - "e.pubsub.v1.ReceivedMessage\022a\n\030acknowled" + - "ge_confirmation\030\005 \001(\0132?.google.pubsub.v1" + - ".StreamingPullResponse.AcknowledgeConfir" + - "mation\022o\n modify_ack_deadline_confirmati" + - "on\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" + - "lResponse.ModifyAckDeadlineConfirmation\022" + - "_\n\027subscription_properties\030\004 \001(\0132>.googl" + - "e.pubsub.v1.StreamingPullResponse.Subscr" + - "iptionProperties\032j\n\027AcknowledgeConfirmat" + - "ion\022\023\n\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_" + - "ids\030\002 \003(\tB\002\010\001\022\035\n\021unordered_ack_ids\030\003 \003(\t" + - "B\002\010\001\032Q\n\035ModifyAckDeadlineConfirmation\022\023\n" + - "\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_ids\030\002 " + - "\003(\tB\002\010\001\032a\n\026SubscriptionProperties\022%\n\035exa" + - "ctly_once_delivery_enabled\030\001 \001(\010\022 \n\030mess" + - "age_ordering_enabled\030\002 \001(\010J\004\010\002\020\003\"\203\002\n\025Cre" + - "ateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A " + - "\n\036pubsub.googleapis.com/Snapshot\022@\n\014subs" + - "cription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + - "s.com/Subscription\022C\n\006labels\030\003 \003(\01323.goo" + - "gle.pubsub.v1.CreateSnapshotRequest.Labe" + - "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest" + - "\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sn" + - "apshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + - "e.protobuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014" + - "\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub" + - ".googleapis.com/Topic\022/\n\013expire_time\030\003 \001" + - "(\0132\032.google.protobuf.Timestamp\0226\n\006labels" + - "\030\004 \003(\0132&.google.pubsub.v1.Snapshot.Label" + - "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" + - "m/Snapshot\022\'projects/{project}/snapshots" + - "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" + - "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" + - "om/Snapshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007" + - "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + - "ger.googleapis.com/Project\022\021\n\tpage_size\030" + - "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapsho" + - "tsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.google.p" + - "ubsub.v1.Snapshot\022\027\n\017next_page_token\030\002 \001" + - "(\t\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030" + - "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" + - "pshot\"\276\001\n\013SeekRequest\022@\n\014subscription\030\001 " + - "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" + - "ription\022*\n\004time\030\002 \001(\0132\032.google.protobuf." + - "TimestampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubs" + - "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" + - "\n\014SeekResponse2\243\013\n\tPublisher\022q\n\013CreateTo" + - "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" + - "bsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=project" + - "s/*/topics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$" + - ".google.pubsub.v1.UpdateTopicRequest\032\027.g" + - "oogle.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topi" + - "c.name=projects/*/topics/*}:\001*\022\223\001\n\007Publi" + - "sh\022 .google.pubsub.v1.PublishRequest\032!.g" + - "oogle.pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"" + - "\'/v1/{topic=projects/*/topics/*}:publish" + - ":\001*\332A\016topic,messages\022w\n\010GetTopic\022!.googl" + - "e.pubsub.v1.GetTopicRequest\032\027.google.pub" + - "sub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{topic=project" + - "s/*/topics/*}\332A\005topic\022\212\001\n\nListTopics\022#.g" + - "oogle.pubsub.v1.ListTopicsRequest\032$.goog" + - "le.pubsub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022" + - "\037/v1/{project=projects/*}/topics\332A\007proje" + - "ct\022\272\001\n\026ListTopicSubscriptions\022/.google.p" + - "ubsub.v1.ListTopicSubscriptionsRequest\0320" + - ".google.pubsub.v1.ListTopicSubscriptions" + - "Response\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/" + - "topics/*}/subscriptions\332A\005topic\022\252\001\n\022List" + - "TopicSnapshots\022+.google.pubsub.v1.ListTo" + - "picSnapshotsRequest\032,.google.pubsub.v1.L" + - "istTopicSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{" + - "topic=projects/*/topics/*}/snapshots\332A\005t" + - "opic\022|\n\013DeleteTopic\022$.google.pubsub.v1.D" + - "eleteTopicRequest\032\026.google.protobuf.Empt" + - "y\"/\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" + - "*}\332A\005topic\022\255\001\n\022DetachSubscription\022+.goog" + - "le.pubsub.v1.DetachSubscriptionRequest\032," + - ".google.pubsub.v1.DetachSubscriptionResp" + - "onse\"<\202\323\344\223\0026\"4/v1/{subscription=projects" + - "/*/subscriptions/*}:detach\032p\312A\025pubsub.go" + - "ogleapis.com\322AUhttps://www.googleapis.co" + - "m/auth/cloud-platform,https://www.google" + - "apis.com/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022" + - "CreateSubscription\022\036.google.pubsub.v1.Su" + - "bscription\032\036.google.pubsub.v1.Subscripti" + - "on\"^\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" + - "ptions/*}:\001*\332A+name,topic,push_config,ac" + - "k_deadline_seconds\022\241\001\n\017GetSubscription\022(" + - ".google.pubsub.v1.GetSubscriptionRequest" + - "\032\036.google.pubsub.v1.Subscription\"D\202\323\344\223\002/" + - "\022-/v1/{subscription=projects/*/subscript" + - "ions/*}\332A\014subscription\022\240\001\n\022UpdateSubscri" + - "ption\022+.google.pubsub.v1.UpdateSubscript" + - "ionRequest\032\036.google.pubsub.v1.Subscripti" + - "on\"=\202\323\344\223\002722/v1/{subscription.name=proje" + - "cts/*/subscriptions/*}:\001*\022\246\001\n\021ListSubscr" + - "iptions\022*.google.pubsub.v1.ListSubscript" + - "ionsRequest\032+.google.pubsub.v1.ListSubsc" + - "riptionsResponse\"8\202\323\344\223\002(\022&/v1/{project=p" + - "rojects/*}/subscriptions\332A\007project\022\237\001\n\022D" + - "eleteSubscription\022+.google.pubsub.v1.Del" + - "eteSubscriptionRequest\032\026.google.protobuf" + - ".Empty\"D\202\323\344\223\002/*-/v1/{subscription=projec" + - "ts/*/subscriptions/*}\332A\014subscription\022\317\001\n" + - "\021ModifyAckDeadline\022*.google.pubsub.v1.Mo" + - "difyAckDeadlineRequest\032\026.google.protobuf" + - ".Empty\"v\202\323\344\223\002D\"?/v1/{subscription=projec" + - "ts/*/subscriptions/*}:modifyAckDeadline:" + - "\001*\332A)subscription,ack_ids,ack_deadline_s" + - "econds\022\250\001\n\013Acknowledge\022$.google.pubsub.v" + - "1.AcknowledgeRequest\032\026.google.protobuf.E" + - "mpty\"[\202\323\344\223\002>\"9/v1/{subscription=projects" + - "/*/subscriptions/*}:acknowledge:\001*\332A\024sub" + - "scription,ack_ids\022\320\001\n\004Pull\022\035.google.pubs" + - "ub.v1.PullRequest\032\036.google.pubsub.v1.Pul" + - "lResponse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=pr" + - "ojects/*/subscriptions/*}:pull:\001*\332A,subs" + - "cription,return_immediately,max_messages" + - "\332A\031subscription,max_messages\022f\n\rStreamin" + - "gPull\022&.google.pubsub.v1.StreamingPullRe" + - "quest\032\'.google.pubsub.v1.StreamingPullRe" + - "sponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).goog" + - "le.pubsub.v1.ModifyPushConfigRequest\032\026.g" + - "oogle.protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subsc" + - "ription=projects/*/subscriptions/*}:modi" + - "fyPushConfig:\001*\332A\030subscription,push_conf" + - "ig\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1.Ge" + - "tSnapshotRequest\032\032.google.pubsub.v1.Snap" + - "shot\"8\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/s" + - "napshots/*}\332A\010snapshot\022\226\001\n\rListSnapshots" + - "\022&.google.pubsub.v1.ListSnapshotsRequest" + - "\032\'.google.pubsub.v1.ListSnapshotsRespons" + - "e\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" + - "shots\332A\007project\022\227\001\n\016CreateSnapshot\022\'.goo" + - "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" + - "ogle.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{na" + - "me=projects/*/snapshots/*}:\001*\332A\021name,sub" + - "scription\022\214\001\n\016UpdateSnapshot\022\'.google.pu" + - "bsub.v1.UpdateSnapshotRequest\032\032.google.p" + - "ubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot" + - ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" + - "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" + - "pshotRequest\032\026.google.protobuf.Empty\"8\202\323" + - "\344\223\002\'*%/v1/{snapshot=projects/*/snapshots" + - "/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubsub." + - "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" + - "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" + - "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" + - ".googleapis.com\322AUhttps://www.googleapis" + - ".com/auth/cloud-platform,https://www.goo" + - "gleapis.com/auth/pubsubB\256\001\n\024com.google.p" + - "ubsub.v1B\013PubsubProtoP\001Z6google.golang.o" + - "rg/genproto/googleapis/pubsub/v1;pubsub\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", }); - 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", }); - internal_static_google_pubsub_v1_Topic_descriptor = - getDescriptor().getMessageTypes().get(2); - 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", }); - 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(3); - 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(4); - 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(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(10); - 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(11); - 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(12); - 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(13); - 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(14); - 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(15); - 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(16); - 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(17); - 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", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", "Labels", "EnableMessageOrdering", "ExpirationPolicy", "Filter", "DeadLetterPolicy", "RetryPolicy", "Detached", "EnableExactlyOnceDelivery", "TopicMessageRetentionDuration", }); - 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(18); - 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(19); - 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(20); - 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(21); - 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", "AuthenticationMethod", }); - 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_AttributesEntry_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); - 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_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(22); - 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(23); - 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(24); - 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(25); - 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(26); - 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(27); - 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(28); - 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(29); - 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(30); - 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(31); - 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(32); - 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(33); - 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(34); - 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", }); - 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", }); - 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(35); - 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(36); - 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(37); - 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(38); - 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(39); - 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(40); - 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(41); - 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(42); - 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(43); - 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 3577fd03d..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ /dev/null @@ -1,236 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -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_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\"\341\001\n\006Sc" + - "hema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035." + - "google.pubsub.v1.Schema.Type\022\022\n\ndefiniti" + - "on\030\003 \001(\t\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\023" + - "\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n\034pubs" + - "ub.googleapis.com/Schema\022#projects/{proj" + - "ect}/schemas/{schema}\"\215\001\n\023CreateSchemaRe" + - "quest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubsub.go" + - "ogleapis.com/Schema\022-\n\006schema\030\002 \001(\0132\030.go" + - "ogle.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschema_id\030" + - "\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001 \001(\tB" + - "$\340A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n" + - "\004view\030\002 \001(\0162\034.google.pubsub.v1.SchemaVie" + - "w\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030\001 \001(\t" + - "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + - "s.com/Project\022*\n\004view\030\002 \001(\0162\034.google.pub" + - "sub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" + - "page_token\030\004 \001(\t\"Y\n\023ListSchemasResponse\022" + - ")\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1.Sche" + - "ma\022\027\n\017next_page_token\030\002 \001(\t\"I\n\023DeleteSch" + - "emaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub" + - ".googleapis.com/Schema\"\213\001\n\025ValidateSchem" + - "aRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + - "esourcemanager.googleapis.com/Project\022-\n" + - "\006schema\030\002 \001(\0132\030.google.pubsub.v1.SchemaB" + - "\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026Valid" + - "ateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + - "-\n+cloudresourcemanager.googleapis.com/P" + - "roject\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.google" + - "apis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030.goog" + - "le.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001(\014\022," + - "\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1.Enco" + - "dingB\r\n\013schema_spec\"\031\n\027ValidateMessageRe" + - "sponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_UNSP" + - "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010Encodi" + - "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON\020\001\022\n" + - "\n\006BINARY\020\0022\367\007\n\rSchemaService\022\232\001\n\014CreateS" + - "chema\022%.google.pubsub.v1.CreateSchemaReq" + - "uest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223\002)\"\037" + - "/v1/{parent=projects/*}/schemas:\006schema\332" + - "A\027parent,schema,schema_id\022y\n\tGetSchema\022\"" + - ".google.pubsub.v1.GetSchemaRequest\032\030.goo" + - "gle.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{name=" + - "projects/*/schemas/*}\332A\004name\022\214\001\n\013ListSch" + - "emas\022$.google.pubsub.v1.ListSchemasReque" + - "st\032%.google.pubsub.v1.ListSchemasRespons" + - "e\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/schem" + - "as\332A\006parent\022}\n\014DeleteSchema\022%.google.pub" + - "sub.v1.DeleteSchemaRequest\032\026.google.prot" + - "obuf.Empty\".\202\323\344\223\002!*\037/v1/{name=projects/*" + - "/schemas/*}\332A\004name\022\250\001\n\016ValidateSchema\022\'." + - "google.pubsub.v1.ValidateSchemaRequest\032(" + - ".google.pubsub.v1.ValidateSchemaResponse" + - "\"C\202\323\344\223\002-\"(/v1/{parent=projects/*}/schema" + - "s:validate:\001*\332A\rparent,schema\022\242\001\n\017Valida" + - "teMessage\022(.google.pubsub.v1.ValidateMes" + - "sageRequest\032).google.pubsub.v1.ValidateM" + - "essageResponse\":\202\323\344\223\0024\"//v1/{parent=proj" + - "ects/*}/schemas:validateMessage:\001*\032p\312A\025p" + - "ubsub.googleapis.com\322AUhttps://www.googl" + - "eapis.com/auth/cloud-platform,https://ww" + - "w.googleapis.com/auth/pubsubB\256\001\n\024com.goo" + - "gle.pubsub.v1B\013SchemaProtoP\001Z6google.gol" + - "ang.org/genproto/googleapis/pubsub/v1;pu" + - "bsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" + - "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" + - "b::V1b\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(), - }); - 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", }); - 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_DeleteSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(); - } - - // @@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 df6f6dd5c..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -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/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 ab8ed5a52..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -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 b3fb35d84..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -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 71% 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 349a946e7..38f0841ad 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,24 +1,42 @@ +/* + * Copyright 2020 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 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.EMPTY; @@ -26,16 +44,15 @@ private AcknowledgeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AcknowledgeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AcknowledgeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private AcknowledgeRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + subscription_ = s; + break; } - ackIds_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ackIds_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private AcknowledgeRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); @@ -94,28 +112,36 @@ private AcknowledgeRequest( makeExtensionsImmutable(); } } - 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; 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 @@ -124,30 +150,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 { @@ -158,6 +186,8 @@ public java.lang.String getSubscription() { public static final int ACK_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList 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
@@ -165,13 +195,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
@@ -179,12 +211,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
@@ -192,6 +227,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. */ @@ -199,6 +235,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
@@ -206,15 +244,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; @@ -226,8 +265,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_); } @@ -262,17 +300,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,118 +331,127 @@ 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() @@ -414,16 +459,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +479,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_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 @@ -456,7 +500,8 @@ 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); + com.google.pubsub.v1.AcknowledgeRequest result = + new com.google.pubsub.v1.AcknowledgeRequest(this); int from_bitField0_ = bitField0_; result.subscription_ = subscription_; if (((bitField0_ & 0x00000001) != 0)) { @@ -472,38 +517,39 @@ public com.google.pubsub.v1.AcknowledgeRequest 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.AcknowledgeRequest) { - return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); + return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest) other); } else { super.mergeFrom(other); return this; @@ -554,23 +600,28 @@ public Builder mergeFrom( } 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; @@ -579,21 +630,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 { @@ -601,70 +655,87 @@ 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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ackIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -672,13 +743,15 @@ 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() { return ackIds_.getUnmodifiableView(); } /** + * + * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -686,12 +759,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
@@ -699,6 +775,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. */ @@ -706,6 +783,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
@@ -713,14 +792,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
@@ -728,21 +809,23 @@ 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) { + public Builder setAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); 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
@@ -750,20 +833,22 @@ 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) { + public Builder addAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); 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
@@ -771,18 +856,19 @@ 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_); 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
@@ -790,6 +876,7 @@ public Builder addAllAckIds(
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -799,6 +886,8 @@ public Builder clearAckIds() { 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
@@ -806,23 +895,23 @@ 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) { + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(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); } @@ -832,12 +921,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(); } @@ -846,16 +935,16 @@ 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 { - return new AcknowledgeRequest(input, extensionRegistry); - } - }; + 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 { + return new AcknowledgeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -870,6 +959,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 3f461f31d..4951b0bb1 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,35 +1,62 @@ +/* + * Copyright 2020 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 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
@@ -37,11 +64,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
@@ -49,10 +78,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
@@ -60,11 +92,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
@@ -72,9 +107,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/CreateSchemaRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java similarity index 72% 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 6bdeff4f2..9f2348931 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private CreateSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSchemaRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,41 @@ private CreateSchemaRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); - } - schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schema_ != null) { + subBuilder = schema_.toBuilder(); + } + schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schema_); + schema_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - schemaId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + schemaId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +113,42 @@ private CreateSchemaRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } public static final int PARENT_FIELD_NUMBER = 1; 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 @@ -130,30 +157,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 { @@ -164,6 +193,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.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -172,6 +203,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 @@ -179,6 +211,8 @@ public boolean hasSchema() { return schema_ != null; } /** + * + * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -187,6 +221,7 @@ public boolean hasSchema() {
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -194,6 +229,8 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** + * + * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -211,6 +248,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
   public static final int SCHEMA_ID_FIELD_NUMBER = 3;
   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.
@@ -219,6 +258,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
    * 
* * string schema_id = 3; + * * @return The schemaId. */ @java.lang.Override @@ -227,14 +267,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.
@@ -243,16 +284,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 { @@ -261,6 +301,7 @@ public java.lang.String getSchemaId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,8 +313,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_); } @@ -296,8 +336,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schema_ != null) { - 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_); @@ -310,22 +349,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -350,118 +386,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() @@ -469,16 +514,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +540,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 @@ -517,7 +561,8 @@ 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); + com.google.pubsub.v1.CreateSchemaRequest result = + new com.google.pubsub.v1.CreateSchemaRequest(this); result.parent_ = parent_; if (schemaBuilder_ == null) { result.schema_ = schema_; @@ -533,38 +578,39 @@ public com.google.pubsub.v1.CreateSchemaRequest 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.CreateSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -615,19 +661,23 @@ public Builder mergeFrom( 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; @@ -636,21 +686,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 { @@ -658,57 +711,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -716,8 +782,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.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -726,12 +797,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 schemaBuilder_ != null || schema_ != null; } /** + * + * *
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -740,6 +814,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() { @@ -750,6 +825,8 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** + * + * *
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -773,6 +850,8 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -782,8 +861,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();
         onChanged();
@@ -794,6 +872,8 @@ public Builder setSchema(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -806,8 +886,7 @@ public Builder setSchema(
     public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
       if (schemaBuilder_ == null) {
         if (schema_ != null) {
-          schema_ =
-            com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial();
+          schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial();
         } else {
           schema_ = value;
         }
@@ -819,6 +898,8 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -840,6 +921,8 @@ public Builder clearSchema() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -850,11 +933,13 @@ public Builder clearSchema() {
      * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() {
-      
+
       onChanged();
       return getSchemaFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -868,11 +953,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.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -883,14 +969,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_;
@@ -898,6 +987,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.
@@ -906,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; @@ -921,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.
@@ -929,15 +1022,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 { @@ -945,6 +1037,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.
@@ -953,20 +1047,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) { + public Builder setSchemaId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schemaId_ = value; onChanged(); return this; } /** + * + * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -975,15 +1071,18 @@ public Builder setSchemaId(
      * 
* * string schema_id = 3; + * * @return This builder for chaining. */ public Builder clearSchemaId() { - + schemaId_ = getDefaultInstance().getSchemaId(); onChanged(); return this; } /** + * + * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -992,23 +1091,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) { + public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaId_ = 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); } @@ -1018,12 +1117,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(); } @@ -1032,16 +1131,16 @@ 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 { - return new CreateSchemaRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1056,6 +1155,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 69% 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 329e106b9..395a549cf 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,35 +1,62 @@ +/* + * Copyright 2020 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 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.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -38,10 +65,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.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -50,10 +80,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.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -66,6 +99,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.
@@ -74,10 +109,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.
@@ -86,8 +124,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 adebdf417..6140d5e45 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private CreateSnapshotRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,38 +72,40 @@ private CreateSnapshotRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + subscription_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,41 +113,44 @@ private CreateSnapshotRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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; 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
@@ -138,7 +160,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * name rules</a>. 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 @@ -147,14 +172,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
@@ -164,17 +190,18 @@ public java.lang.String getName() {
    * name rules</a>. 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 { @@ -185,6 +212,8 @@ public java.lang.String getName() { public static final int SUBSCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object subscription_; /** + * + * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -197,7 +226,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 @@ -206,14 +238,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:
@@ -226,17 +259,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 { @@ -245,24 +279,23 @@ 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, + ""); } - 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_; } @@ -271,6 +304,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -278,22 +313,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 3;
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -302,11 +337,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -315,16 +351,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, 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;
   }
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -333,12 +369,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 3;
    */
   @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();
     }
@@ -346,6 +381,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -357,20 +393,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);
     unknownFields.writeTo(output);
   }
 
@@ -386,15 +417,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -404,19 +435,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -441,140 +470,147 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { 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() @@ -582,16 +618,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -604,9 +639,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 @@ -625,7 +660,8 @@ 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); + com.google.pubsub.v1.CreateSnapshotRequest result = + new com.google.pubsub.v1.CreateSnapshotRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.subscription_ = subscription_; @@ -639,38 +675,39 @@ public com.google.pubsub.v1.CreateSnapshotRequest 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.CreateSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other); + return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -687,8 +724,7 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { subscription_ = other.subscription_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -717,10 +753,13 @@ public Builder mergeFrom( } 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
@@ -730,14 +769,16 @@ public Builder mergeFrom(
      * name rules</a>. 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; @@ -746,6 +787,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
@@ -755,16 +798,17 @@ public java.lang.String getName() {
      * name rules</a>. 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 { @@ -772,6 +816,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
@@ -781,21 +827,25 @@ public java.lang.String getName() {
      * name rules</a>. 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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
@@ -805,16 +855,21 @@ public Builder setName(
      * name rules</a>. 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() { - + name_ = getDefaultInstance().getName(); 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
@@ -824,17 +879,19 @@ public Builder clearName() {
      * name rules</a>. 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -842,6 +899,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:
@@ -854,14 +913,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; @@ -870,6 +931,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -882,16 +945,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 { @@ -899,6 +963,8 @@ public java.lang.String getSubscription() { } } /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -911,21 +977,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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -938,16 +1008,21 @@ 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() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** + * + * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -960,38 +1035,39 @@ 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) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1003,6 +1079,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1010,22 +1088,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 3;
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1034,11 +1112,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1047,16 +1126,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, 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;
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1065,12 +1145,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 3;
      */
     @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();
       }
@@ -1078,11 +1157,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1090,23 +1170,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 3;
      */
-
-    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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1114,19 +1192,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 3;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1134,16 +1213,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 3;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       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);
     }
 
@@ -1153,12 +1229,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();
   }
@@ -1167,16 +1243,16 @@ 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 {
-      return new CreateSnapshotRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new CreateSnapshotRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1191,6 +1267,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 68%
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 208a01e30..647f8506e 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,13 +1,31 @@
+/*
+ * Copyright 2020 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
 
 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
@@ -17,11 +35,16 @@ public interface CreateSnapshotRequestOrBuilder extends
    * name rules</a>. 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
@@ -31,13 +54,17 @@ public interface CreateSnapshotRequestOrBuilder extends
    * name rules</a>. 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:
@@ -50,11 +77,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:
@@ -67,13 +99,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(); /** + * + * *
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -83,6 +119,8 @@ public interface CreateSnapshotRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -90,15 +128,13 @@ public interface CreateSnapshotRequestOrBuilder extends
    *
    * map<string, string> labels = 3;
    */
-  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();
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -106,9 +142,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -118,11 +155,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -130,7 +169,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3;
    */
-
-  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 77%
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 e6cd796e0..018a74139 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,9 +1,26 @@
+/*
+ * Copyright 2020 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
 
 package com.google.pubsub.v1;
 
 /**
+ *
+ *
  * 
  * Dead lettering is done on a best effort basis. The same message might be
  * dead lettered multiple times.
@@ -13,31 +30,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeadLetterPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,24 +73,25 @@ private DeadLetterPolicy(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            deadLetterTopic_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            maxDeliveryAttempts_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              deadLetterTopic_ = s;
+              break;
+            }
+          case 16:
+            {
+              maxDeliveryAttempts_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,29 +99,33 @@ private DeadLetterPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object deadLetterTopic_;
   /**
+   *
+   *
    * 
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -116,6 +138,7 @@ private DeadLetterPolicy(
    * 
* * string dead_letter_topic = 1; + * * @return The deadLetterTopic. */ @java.lang.Override @@ -124,14 +147,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; } } /** + * + * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -144,16 +168,15 @@ public java.lang.String getDeadLetterTopic() {
    * 
* * string dead_letter_topic = 1; + * * @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 { @@ -164,6 +187,8 @@ public java.lang.String getDeadLetterTopic() { public static final int MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER = 2; private int maxDeliveryAttempts_; /** + * + * *
    * The maximum number of delivery attempts for any message. The value must be
    * between 5 and 100.
@@ -177,6 +202,7 @@ public java.lang.String getDeadLetterTopic() {
    * 
* * int32 max_delivery_attempts = 2; + * * @return The maxDeliveryAttempts. */ @java.lang.Override @@ -185,6 +211,7 @@ public int getMaxDeliveryAttempts() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,8 +223,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_); } @@ -217,8 +243,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -228,17 +253,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -259,97 +282,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.
@@ -359,21 +388,23 @@ 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()
@@ -381,16 +412,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -402,9 +432,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
@@ -423,7 +453,8 @@ 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);
+      com.google.pubsub.v1.DeadLetterPolicy result =
+          new com.google.pubsub.v1.DeadLetterPolicy(this);
       result.deadLetterTopic_ = deadLetterTopic_;
       result.maxDeliveryAttempts_ = maxDeliveryAttempts_;
       onBuilt();
@@ -434,38 +465,39 @@ public com.google.pubsub.v1.DeadLetterPolicy 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.DeadLetterPolicy) {
-        return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy)other);
+        return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,6 +544,8 @@ public Builder mergeFrom(
 
     private java.lang.Object deadLetterTopic_ = "";
     /**
+     *
+     *
      * 
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -524,13 +558,13 @@ public Builder mergeFrom(
      * 
* * string dead_letter_topic = 1; + * * @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; @@ -539,6 +573,8 @@ public java.lang.String getDeadLetterTopic() { } } /** + * + * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -551,15 +587,14 @@ public java.lang.String getDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1; + * * @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 { @@ -567,6 +602,8 @@ public java.lang.String getDeadLetterTopic() { } } /** + * + * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -579,20 +616,22 @@ public java.lang.String getDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1; + * * @param value The deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopic( - java.lang.String value) { + public Builder setDeadLetterTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deadLetterTopic_ = value; onChanged(); return this; } /** + * + * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -605,15 +644,18 @@ public Builder setDeadLetterTopic(
      * 
* * string dead_letter_topic = 1; + * * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { - + deadLetterTopic_ = getDefaultInstance().getDeadLetterTopic(); onChanged(); return this; } /** + * + * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -626,23 +668,25 @@ public Builder clearDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1; + * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deadLetterTopic_ = value; onChanged(); return this; } - private int maxDeliveryAttempts_ ; + private int maxDeliveryAttempts_; /** + * + * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -656,6 +700,7 @@ public Builder setDeadLetterTopicBytes(
      * 
* * int32 max_delivery_attempts = 2; + * * @return The maxDeliveryAttempts. */ @java.lang.Override @@ -663,6 +708,8 @@ public int getMaxDeliveryAttempts() { return maxDeliveryAttempts_; } /** + * + * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -676,16 +723,19 @@ public int getMaxDeliveryAttempts() {
      * 
* * int32 max_delivery_attempts = 2; + * * @param value The maxDeliveryAttempts to set. * @return This builder for chaining. */ public Builder setMaxDeliveryAttempts(int value) { - + maxDeliveryAttempts_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -699,17 +749,18 @@ public Builder setMaxDeliveryAttempts(int value) {
      * 
* * int32 max_delivery_attempts = 2; + * * @return This builder for chaining. */ public Builder clearMaxDeliveryAttempts() { - + maxDeliveryAttempts_ = 0; 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); } @@ -719,12 +770,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(); } @@ -733,16 +784,16 @@ 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 { - return new DeadLetterPolicy(input, extensionRegistry); - } - }; + 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 { + return new DeadLetterPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -757,6 +808,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 76% 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 a08edfcd9..1e3060f7b 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,13 +1,31 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -20,10 +38,13 @@ public interface DeadLetterPolicyOrBuilder extends
    * 
* * string dead_letter_topic = 1; + * * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** + * + * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -36,12 +57,14 @@ public interface DeadLetterPolicyOrBuilder extends
    * 
* * string dead_letter_topic = 1; + * * @return The bytes for deadLetterTopic. */ - com.google.protobuf.ByteString - getDeadLetterTopicBytes(); + com.google.protobuf.ByteString getDeadLetterTopicBytes(); /** + * + * *
    * The maximum number of delivery attempts for any message. The value must be
    * between 5 and 100.
@@ -55,6 +78,7 @@ public interface DeadLetterPolicyOrBuilder extends
    * 
* * int32 max_delivery_attempts = 2; + * * @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 66% 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 6d2e7eed0..84747a7ae 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteSchemaRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteSchemaRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +231,127 @@ 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() @@ -324,16 +359,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +377,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 @@ -364,7 +398,8 @@ 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); + com.google.pubsub.v1.DeleteSchemaRequest result = + new com.google.pubsub.v1.DeleteSchemaRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +409,39 @@ public com.google.pubsub.v1.DeleteSchemaRequest 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.DeleteSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +485,23 @@ public Builder mergeFrom( 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; @@ -470,21 +510,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 { @@ -492,64 +535,77 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -559,12 +615,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(); } @@ -573,16 +629,16 @@ 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 { - return new DeleteSchemaRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +653,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..5b4e5d304 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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 + +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/DeleteSnapshotRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java similarity index 65% 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 96070669d..8113bad2e 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteSnapshotRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - snapshot_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + snapshot_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteSnapshotRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ 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() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,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 @@ -364,7 +399,8 @@ 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); + com.google.pubsub.v1.DeleteSnapshotRequest result = + new com.google.pubsub.v1.DeleteSnapshotRequest(this); result.snapshot_ = snapshot_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.pubsub.v1.DeleteSnapshotRequest 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.DeleteSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( 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; @@ -470,21 +511,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 { @@ -492,64 +536,77 @@ 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) { + public Builder setSnapshot(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshot_ = value; 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() { - + snapshot_ = getDefaultInstance().getSnapshot(); 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) = { ... } + * + * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes( - com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = 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); } @@ -559,12 +616,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(); } @@ -573,16 +630,16 @@ 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 { - return new DeleteSnapshotRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,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..43c455746 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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 + +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 66% 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 20f87ecda..90bb58433 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteSubscriptionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subscription_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteSubscriptionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ 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() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,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 @@ -364,7 +399,8 @@ 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); + com.google.pubsub.v1.DeleteSubscriptionRequest result = + new com.google.pubsub.v1.DeleteSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest 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.DeleteSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( 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; @@ -470,21 +511,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 { @@ -492,64 +536,77 @@ 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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = 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); } @@ -559,12 +616,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(); } @@ -573,16 +630,16 @@ 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 { - return new DeleteSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,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..d48320804 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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 + +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 66% 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 8e68c47ef..5b3a9e2cb 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteTopicRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + topic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteTopicRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +231,127 @@ 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() @@ -324,16 +359,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +377,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 @@ -364,7 +398,8 @@ 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); + com.google.pubsub.v1.DeleteTopicRequest result = + new com.google.pubsub.v1.DeleteTopicRequest(this); result.topic_ = topic_; onBuilt(); return result; @@ -374,38 +409,39 @@ public com.google.pubsub.v1.DeleteTopicRequest 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.DeleteTopicRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +485,23 @@ public Builder mergeFrom( 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; @@ -470,21 +510,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 { @@ -492,64 +535,77 @@ 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) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = 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); } @@ -559,12 +615,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(); } @@ -573,16 +629,16 @@ 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 { - return new DeleteTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +653,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..a7267ded0 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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 + +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 66% 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 b7b797ecd..80e218214 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetachSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DetachSubscriptionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subscription_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DetachSubscriptionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ 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() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,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 @@ -364,7 +399,8 @@ 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); + com.google.pubsub.v1.DetachSubscriptionRequest result = + new com.google.pubsub.v1.DetachSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.pubsub.v1.DetachSubscriptionRequest 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.DetachSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( 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; @@ -470,21 +511,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 { @@ -492,64 +536,77 @@ 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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = 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); } @@ -559,12 +616,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(); } @@ -573,16 +630,16 @@ 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 { - return new DetachSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new DetachSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,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..27cd842bc --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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 + +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 67% 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 cfb391c46..425eff37f 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,9 +1,26 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; /** + * + * *
  * Response for the DetachSubscription method.
  * Reserved for future use.
@@ -11,30 +28,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DetachSubscriptionResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,13 +69,13 @@ private DetachSubscriptionResponse(
           case 0:
             done = true;
             break;
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -67,27 +83,30 @@ private DetachSubscriptionResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
@@ -99,8 +118,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 {
     unknownFields.writeTo(output);
   }
 
@@ -118,12 +136,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -141,97 +160,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.
@@ -239,21 +265,23 @@ 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()
@@ -261,16 +289,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -278,9 +305,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
@@ -299,7 +326,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;
     }
@@ -308,38 +336,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;
@@ -347,7 +376,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.unknownFields);
       onChanged();
       return this;
@@ -376,9 +406,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -388,12 +418,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();
   }
@@ -402,16 +432,16 @@ 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 {
-      return new DetachSubscriptionResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new DetachSubscriptionResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -426,6 +456,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..ce75ecb80
--- /dev/null
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 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
+
+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 8ae906633..838fe7682 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,18 +1,36 @@
+/*
+ * Copyright 2020 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
 
 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
    * 
@@ -21,6 +39,8 @@ public enum Encoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
    * JSON encoding
    * 
@@ -29,6 +49,8 @@ public enum Encoding */ JSON(1), /** + * + * *
    * Binary encoding, as defined by the schema type. For some schema types,
    * binary encoding may not be available.
@@ -41,6 +63,8 @@ public enum Encoding
   ;
 
   /**
+   *
+   *
    * 
    * Unspecified
    * 
@@ -49,6 +73,8 @@ public enum Encoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
    * JSON encoding
    * 
@@ -57,6 +83,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.
@@ -66,7 +94,6 @@ public enum Encoding
    */
   public static final int BINARY_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -91,49 +118,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;
@@ -149,4 +176,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 75%
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 09336d5e6..e9ed8b2f7 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,9 +1,26 @@
+/*
+ * Copyright 2020 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
 
 package com.google.pubsub.v1;
 
 /**
+ *
+ *
  * 
  * A policy that specifies the conditions for resource expiration (i.e.,
  * automatic resource deletion).
@@ -11,30 +28,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ExpirationPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,26 +69,27 @@ private ExpirationPolicy(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (ttl_ != null) {
-              subBuilder = ttl_.toBuilder();
+          case 10:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (ttl_ != null) {
+                subBuilder = ttl_.toBuilder();
+              }
+              ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(ttl_);
+                ttl_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(ttl_);
-              ttl_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -80,29 +97,33 @@ private ExpirationPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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);
   }
 
   public static final int TTL_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration ttl_;
   /**
+   *
+   *
    * 
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -113,6 +134,7 @@ private ExpirationPolicy(
    * 
* * .google.protobuf.Duration ttl = 1; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -120,6 +142,8 @@ public boolean hasTtl() { return ttl_ != null; } /** + * + * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -130,6 +154,7 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 1; + * * @return The ttl. */ @java.lang.Override @@ -137,6 +162,8 @@ public com.google.protobuf.Duration getTtl() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } /** + * + * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -154,6 +181,7 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -165,8 +193,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 (ttl_ != null) {
       output.writeMessage(1, getTtl());
     }
@@ -180,8 +207,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (ttl_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getTtl());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTtl());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -191,7 +217,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);
@@ -200,8 +226,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -223,97 +248,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).
@@ -321,21 +352,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()
@@ -343,16 +376,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -366,9 +398,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
@@ -387,7 +419,8 @@ 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);
+      com.google.pubsub.v1.ExpirationPolicy result =
+          new com.google.pubsub.v1.ExpirationPolicy(this);
       if (ttlBuilder_ == null) {
         result.ttl_ = ttl_;
       } else {
@@ -401,38 +434,39 @@ public com.google.pubsub.v1.ExpirationPolicy 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.ExpirationPolicy) {
-        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy)other);
+        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,8 +509,13 @@ public Builder mergeFrom(
 
     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_;
     /**
+     *
+     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -487,12 +526,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration ttl = 1; + * * @return Whether the ttl field is set. */ public boolean hasTtl() { return ttlBuilder_ != null || ttl_ != null; } /** + * + * *
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -503,6 +545,7 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 1; + * * @return The ttl. */ public com.google.protobuf.Duration getTtl() { @@ -513,6 +556,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -538,6 +583,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -549,8 +596,7 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 1;
      */
-    public Builder setTtl(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         ttl_ = builderForValue.build();
         onChanged();
@@ -561,6 +607,8 @@ public Builder setTtl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -575,8 +623,7 @@ public Builder setTtl(
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
         if (ttl_ != null) {
-          ttl_ =
-            com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
+          ttl_ = com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
         } else {
           ttl_ = value;
         }
@@ -588,6 +635,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -611,6 +660,8 @@ public Builder clearTtl() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -623,11 +674,13 @@ public Builder clearTtl() {
      * .google.protobuf.Duration ttl = 1;
      */
     public com.google.protobuf.Duration.Builder getTtlBuilder() {
-      
+
       onChanged();
       return getTtlFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -643,11 +696,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_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -660,21 +714,23 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 1;
      */
     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);
     }
 
@@ -684,12 +740,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();
   }
@@ -698,16 +754,16 @@ 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 {
-      return new ExpirationPolicy(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new ExpirationPolicy(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -722,6 +778,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 73%
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 097989dce..ac04be2f7 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,13 +1,31 @@
+/*
+ * Copyright 2020 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
 
 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 {
 
   /**
+   *
+   *
    * 
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -18,10 +36,13 @@ public interface ExpirationPolicyOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 1; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -32,10 +53,13 @@ public interface ExpirationPolicyOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 1; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
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 70%
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 21836f83c..9a1f22ba3 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,24 +1,42 @@
+/*
+ * Copyright 2020 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
 
 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; @@ -26,16 +44,15 @@ private GetSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSchemaRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private GetSchemaRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - view_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + view_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,42 @@ private GetSchemaRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -117,30 +143,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 { @@ -151,6 +179,8 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 2; private int view_; /** + * + * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -158,12 +188,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 fields to return in the response. If not set, returns a Schema
    * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -171,15 +205,18 @@ 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() { @SuppressWarnings("deprecation") com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(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; @@ -191,8 +228,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_); } @@ -212,8 +248,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -223,15 +258,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -253,118 +287,126 @@ 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() @@ -372,16 +414,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -393,9 +434,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 @@ -414,7 +455,8 @@ 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); + com.google.pubsub.v1.GetSchemaRequest result = + new com.google.pubsub.v1.GetSchemaRequest(this); result.name_ = name_; result.view_ = view_; onBuilt(); @@ -425,38 +467,39 @@ public com.google.pubsub.v1.GetSchemaRequest 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.GetSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.GetSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.GetSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -503,19 +546,23 @@ public Builder mergeFrom( 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; @@ -524,21 +571,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 { @@ -546,57 +596,70 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -604,6 +667,8 @@ public Builder setNameBytes( private int view_ = 0; /** + * + * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -611,12 +676,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 fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -624,16 +693,19 @@ 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. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** + * + * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -641,6 +713,7 @@ public Builder setViewValue(int value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ @java.lang.Override @@ -650,6 +723,8 @@ 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 `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -657,6 +732,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. */ @@ -664,12 +740,14 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -677,17 +755,18 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; 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); } @@ -697,12 +776,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(); } @@ -711,16 +790,16 @@ 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 { - return new GetSchemaRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -735,6 +814,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 e06bc63f9..54c9481e2 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,35 +1,62 @@ +/* + * Copyright 2020 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 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 `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -37,10 +64,13 @@ public interface GetSchemaRequestOrBuilder extends
    * 
* * .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 `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -48,6 +78,7 @@ public interface GetSchemaRequestOrBuilder extends
    * 
* * .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 66% 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 df560469d..e40c7802e 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetSnapshotRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - snapshot_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + snapshot_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetSnapshotRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +231,127 @@ 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() @@ -324,16 +359,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +377,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 @@ -364,7 +398,8 @@ 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); + com.google.pubsub.v1.GetSnapshotRequest result = + new com.google.pubsub.v1.GetSnapshotRequest(this); result.snapshot_ = snapshot_; onBuilt(); return result; @@ -374,38 +409,39 @@ public com.google.pubsub.v1.GetSnapshotRequest 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.GetSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other); + return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +485,23 @@ public Builder mergeFrom( 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; @@ -470,21 +510,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 { @@ -492,64 +535,77 @@ 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) { + public Builder setSnapshot(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshot_ = value; 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() { - + snapshot_ = getDefaultInstance().getSnapshot(); 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) = { ... } + * + * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes( - com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = 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); } @@ -559,12 +615,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(); } @@ -573,16 +629,16 @@ 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 { - return new GetSnapshotRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +653,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..f101510fd --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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 + +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 66% 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 85aaa7138..0a0122d3c 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetSubscriptionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subscription_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetSubscriptionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ 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() @@ -324,16 +360,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,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 @@ -364,7 +399,8 @@ 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); + com.google.pubsub.v1.GetSubscriptionRequest result = + new com.google.pubsub.v1.GetSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.pubsub.v1.GetSubscriptionRequest 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.GetSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( 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; @@ -470,21 +511,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 { @@ -492,64 +536,77 @@ 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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = 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); } @@ -559,12 +616,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(); } @@ -573,16 +630,16 @@ 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 { - return new GetSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,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..ca8af6c8b --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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 + +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 65% 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 e3d16e0d8..43e15615e 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetTopicRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + topic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetTopicRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +231,126 @@ 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() @@ -324,16 +358,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +376,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 @@ -374,38 +407,39 @@ public com.google.pubsub.v1.GetTopicRequest 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.GetTopicRequest) { - return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.GetTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +483,23 @@ public Builder mergeFrom( 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; @@ -470,21 +508,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 { @@ -492,64 +533,77 @@ 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) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = 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); } @@ -559,12 +613,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(); } @@ -573,16 +627,16 @@ 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 { - return new GetTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new GetTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +651,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..b3695fc5a --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 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 + +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/ListSchemasRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java similarity index 72% 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 9f82523bc..9e75e40f4 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,24 +1,42 @@ +/* + * Copyright 2020 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 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; @@ -27,16 +45,15 @@ private ListSchemasRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemasRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSchemasRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListSchemasRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - view_ = rawValue; - break; - } - case 24: { + parent_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + view_ = rawValue; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +112,42 @@ private ListSchemasRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -129,30 +156,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 { @@ -163,6 +192,8 @@ public java.lang.String getParent() { public static final int VIEW_FIELD_NUMBER = 2; private int 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
@@ -170,12 +201,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
@@ -183,9 +218,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() { @SuppressWarnings("deprecation") com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; @@ -194,11 +231,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Maximum number of schemas to return.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -209,6 +249,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; 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
@@ -216,6 +258,7 @@ public int getPageSize() {
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -224,14 +267,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
@@ -239,16 +283,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 { @@ -257,6 +300,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +312,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_); } @@ -295,12 +338,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_); @@ -313,20 +354,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -351,118 +389,127 @@ 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() @@ -470,16 +517,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +541,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 @@ -516,7 +562,8 @@ 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); + com.google.pubsub.v1.ListSchemasRequest result = + new com.google.pubsub.v1.ListSchemasRequest(this); result.parent_ = parent_; result.view_ = view_; result.pageSize_ = pageSize_; @@ -529,38 +576,39 @@ public com.google.pubsub.v1.ListSchemasRequest 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.ListSchemasRequest) { - return mergeFrom((com.google.pubsub.v1.ListSchemasRequest)other); + return mergeFrom((com.google.pubsub.v1.ListSchemasRequest) other); } else { super.mergeFrom(other); return this; @@ -614,19 +662,23 @@ public Builder mergeFrom( 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; @@ -635,21 +687,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 { @@ -657,57 +712,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -715,6 +783,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
@@ -722,12 +792,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
@@ -735,16 +809,19 @@ 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. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); 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 +829,7 @@ public Builder setViewValue(int value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return The view. */ @java.lang.Override @@ -761,6 +839,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
@@ -768,6 +848,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. */ @@ -775,12 +856,14 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); 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
@@ -788,22 +871,26 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; + * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -811,30 +898,36 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -842,6 +935,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
@@ -849,13 +944,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; @@ -864,6 +959,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
@@ -871,15 +968,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 { @@ -887,6 +983,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
@@ -894,20 +992,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -915,15 +1015,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -931,23 +1034,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -957,12 +1060,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(); } @@ -971,16 +1074,16 @@ 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 { - return new ListSchemasRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSchemasRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -995,6 +1098,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 65% 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 49bdd3109..bd5787e76 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,35 +1,62 @@ +/* + * Copyright 2020 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 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
@@ -37,10 +64,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
@@ -48,21 +78,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
@@ -70,10 +106,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
@@ -81,8 +120,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 73% 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 d39f94764..d7acc8862 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListSchemasResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemasResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSchemasResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListSchemasResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - schemas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + schemas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + schemas_.add( + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry)); + break; } - schemas_.add( - input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListSchemasResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); @@ -94,22 +112,27 @@ private ListSchemasResponse( makeExtensionsImmutable(); } } - 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; private java.util.List schemas_; /** + * + * *
    * The resulting schemas.
    * 
@@ -121,6 +144,8 @@ public java.util.List getSchemasList() { return schemas_; } /** + * + * *
    * The resulting schemas.
    * 
@@ -128,11 +153,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.
    * 
@@ -144,6 +170,8 @@ public int getSchemasCount() { return schemas_.size(); } /** + * + * *
    * The resulting schemas.
    * 
@@ -155,6 +183,8 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } /** + * + * *
    * The resulting schemas.
    * 
@@ -162,20 +192,22 @@ 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; 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 @@ -184,30 +216,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 { @@ -216,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +260,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)); } @@ -245,8 +277,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_); @@ -259,17 +290,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +321,127 @@ 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() @@ -411,17 +449,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) { getSchemasFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +475,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 @@ -458,7 +496,8 @@ 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); int from_bitField0_ = bitField0_; if (schemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +517,39 @@ public com.google.pubsub.v1.ListSchemasResponse 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.ListSchemasResponse) { - return mergeFrom((com.google.pubsub.v1.ListSchemasResponse)other); + return mergeFrom((com.google.pubsub.v1.ListSchemasResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +576,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_); } @@ -576,21 +617,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +653,8 @@ public java.util.List getSchemasList() { } } /** + * + * *
      * The resulting schemas.
      * 
@@ -619,6 +669,8 @@ public int getSchemasCount() { } } /** + * + * *
      * The resulting schemas.
      * 
@@ -633,14 +685,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(); @@ -654,14 +707,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()); @@ -672,6 +726,8 @@ public Builder setSchemas( return this; } /** + * + * *
      * The resulting schemas.
      * 
@@ -692,14 +748,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(); @@ -713,14 +770,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()); @@ -731,14 +789,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()); @@ -749,18 +808,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); @@ -768,6 +827,8 @@ public Builder addAllSchemas( return this; } /** + * + * *
      * The resulting schemas.
      * 
@@ -785,6 +846,8 @@ public Builder clearSchemas() { return this; } /** + * + * *
      * The resulting schemas.
      * 
@@ -802,39 +865,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 { @@ -842,6 +910,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( } } /** + * + * *
      * The resulting schemas.
      * 
@@ -849,42 +919,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_; @@ -892,19 +966,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; @@ -913,21 +989,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 { @@ -935,64 +1012,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1002,12 +1086,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(); } @@ -1016,16 +1100,16 @@ 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 { - return new ListSchemasResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSchemasResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1124,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 aaa6844d5..3ee2015b1 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,22 +1,41 @@ +/* + * Copyright 2020 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 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.
    * 
@@ -25,6 +44,8 @@ public interface ListSchemasResponseOrBuilder extends */ com.google.pubsub.v1.Schema getSchemas(int index); /** + * + * *
    * The resulting schemas.
    * 
@@ -33,43 +54,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 69% 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 e88d3579a..c23abd212 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSnapshotsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSnapshotsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListSnapshotsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListSnapshotsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -122,30 +148,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 { @@ -156,11 +184,14 @@ public java.lang.String getProject() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of snapshots to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,6 +202,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -178,6 +211,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,14 +220,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 `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -201,16 +236,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @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 { @@ -219,6 +253,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +265,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_); } @@ -254,8 +288,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_); @@ -268,19 +301,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,118 +334,127 @@ 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() @@ -422,16 +462,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +484,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 @@ -466,7 +505,8 @@ 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); + com.google.pubsub.v1.ListSnapshotsRequest result = + new com.google.pubsub.v1.ListSnapshotsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -478,38 +518,39 @@ public com.google.pubsub.v1.ListSnapshotsRequest 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.ListSnapshotsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest) other); } else { super.mergeFrom(other); return this; @@ -560,19 +601,23 @@ public Builder mergeFrom( 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; @@ -581,21 +626,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 { @@ -603,69 +651,85 @@ 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) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; 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() { - + project_ = getDefaultInstance().getProject(); 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) = { ... } + * + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -673,30 +737,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -704,6 +774,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -711,13 +783,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; @@ -726,6 +798,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -733,15 +807,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @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 { @@ -749,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -756,20 +831,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -777,15 +854,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -793,23 +873,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -819,12 +899,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(); } @@ -833,16 +913,16 @@ 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 { - return new ListSnapshotsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSnapshotsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +937,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 57% 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 2a859ca35..c4a67ace0 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,45 +1,75 @@ +/* + * Copyright 2020 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 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(); /** + * + * *
    * Maximum number of snapshots to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -47,10 +77,13 @@ public interface ListSnapshotsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -58,8 +91,8 @@ public interface ListSnapshotsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @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 73% 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 5a56dde2e..8d44aa126 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSnapshotsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSnapshotsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListSnapshotsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snapshots_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + snapshots_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + snapshots_.add( + input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry)); + break; } - snapshots_.add( - input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListSnapshotsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); @@ -94,22 +112,27 @@ private ListSnapshotsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List snapshots_; /** + * + * *
    * The resulting snapshots.
    * 
@@ -121,6 +144,8 @@ public java.util.List getSnapshotsList() { return snapshots_; } /** + * + * *
    * The resulting snapshots.
    * 
@@ -128,11 +153,13 @@ public java.util.List getSnapshotsList() { * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSnapshotsOrBuilderList() { return snapshots_; } /** + * + * *
    * The resulting snapshots.
    * 
@@ -144,6 +171,8 @@ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
    * The resulting snapshots.
    * 
@@ -155,6 +184,8 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
    * The resulting snapshots.
    * 
@@ -162,20 +193,22 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ @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; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * 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; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +217,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 snapshot that match the
    * request; this value should be passed in a new `ListSnapshotsRequest`.
    * 
* * 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 { @@ -216,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,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)); } @@ -245,8 +278,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_); @@ -259,17 +291,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +323,127 @@ 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() @@ -411,17 +451,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) { getSnapshotsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +477,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 @@ -458,7 +498,8 @@ 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); int from_bitField0_ = bitField0_; if (snapshotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +519,39 @@ public com.google.pubsub.v1.ListSnapshotsResponse 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.ListSnapshotsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +578,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_); } @@ -576,21 +619,28 @@ public Builder mergeFrom( } 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_; /** + * + * *
      * The resulting snapshots.
      * 
@@ -605,6 +655,8 @@ public java.util.List getSnapshotsList() { } } /** + * + * *
      * The resulting snapshots.
      * 
@@ -619,6 +671,8 @@ public int getSnapshotsCount() { } } /** + * + * *
      * The resulting snapshots.
      * 
@@ -633,14 +687,15 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { } } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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(); @@ -654,14 +709,15 @@ public Builder setSnapshots( return this; } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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()); @@ -672,6 +728,8 @@ public Builder setSnapshots( return this; } /** + * + * *
      * The resulting snapshots.
      * 
@@ -692,14 +750,15 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { return this; } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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(); @@ -713,14 +772,15 @@ public Builder addSnapshots( return this; } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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()); @@ -731,14 +791,15 @@ public Builder addSnapshots( return this; } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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()); @@ -749,6 +810,8 @@ public Builder addSnapshots( return this; } /** + * + * *
      * The resulting snapshots.
      * 
@@ -759,8 +822,7 @@ 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); @@ -768,6 +830,8 @@ public Builder addAllSnapshots( return this; } /** + * + * *
      * The resulting snapshots.
      * 
@@ -785,6 +849,8 @@ public Builder clearSnapshots() { return this; } /** + * + * *
      * The resulting snapshots.
      * 
@@ -802,39 +868,44 @@ public Builder removeSnapshots(int index) { return this; } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder( - int index) { + public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder().getBuilder(index); } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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); } } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsOrBuilderList() { + public java.util.List + getSnapshotsOrBuilderList() { if (snapshotsBuilder_ != null) { return snapshotsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +913,8 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( } } /** + * + * *
      * The resulting snapshots.
      * 
@@ -849,42 +922,47 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ 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()); } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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()); } /** + * + * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - 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_; @@ -892,19 +970,21 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * 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; + * * @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; @@ -913,21 +993,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * 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; + * * @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 { @@ -935,64 +1016,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * 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; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * 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; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1002,12 +1090,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(); } @@ -1016,16 +1104,16 @@ 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 { - return new ListSnapshotsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSnapshotsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/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 similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 2f9eb5709..bbbf2955d 100644 --- a/owl-bot-staging/v1/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 @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; -public interface ListSnapshotsResponseOrBuilder extends +public interface ListSnapshotsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - java.util.List - getSnapshotsList(); + java.util.List getSnapshotsList(); /** + * + * *
    * The resulting snapshots.
    * 
@@ -25,6 +44,8 @@ public interface ListSnapshotsResponseOrBuilder extends */ com.google.pubsub.v1.Snapshot getSnapshots(int index); /** + * + * *
    * The resulting snapshots.
    * 
@@ -33,43 +54,50 @@ public interface ListSnapshotsResponseOrBuilder extends */ int getSnapshotsCount(); /** + * + * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - java.util.List - getSnapshotsOrBuilderList(); + java.util.List getSnapshotsOrBuilderList(); /** + * + * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index); + com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); /** + * + * *
    * 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; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * 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; + * * @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/ListSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java similarity index 69% 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 2e184c39a..d7db4c0ea 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSubscriptionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListSubscriptionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListSubscriptionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -122,30 +148,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 { @@ -156,11 +184,14 @@ public java.lang.String getProject() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of subscriptions to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,6 +202,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -178,6 +211,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,14 +220,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 `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -201,16 +236,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @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 { @@ -219,6 +253,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +265,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_); } @@ -254,8 +288,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_); @@ -268,19 +301,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,118 +334,127 @@ 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() @@ -422,16 +462,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +484,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 @@ -466,7 +505,8 @@ 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); + com.google.pubsub.v1.ListSubscriptionsRequest result = + new com.google.pubsub.v1.ListSubscriptionsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -478,38 +518,39 @@ public com.google.pubsub.v1.ListSubscriptionsRequest 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.ListSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; @@ -560,19 +601,23 @@ public Builder mergeFrom( 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; @@ -581,21 +626,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 { @@ -603,69 +651,85 @@ 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) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; 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() { - + project_ = getDefaultInstance().getProject(); 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) = { ... } + * + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -673,30 +737,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -704,6 +774,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -711,13 +783,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; @@ -726,6 +798,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -733,15 +807,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @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 { @@ -749,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -756,20 +831,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -777,15 +854,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -793,23 +873,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -819,12 +899,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(); } @@ -833,16 +913,16 @@ 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 { - return new ListSubscriptionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSubscriptionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +937,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 57% 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 18b75f777..73b1fac51 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,45 +1,75 @@ +/* + * Copyright 2020 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 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(); /** + * + * *
    * Maximum number of subscriptions to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -47,10 +77,13 @@ public interface ListSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -58,8 +91,8 @@ public interface ListSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @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 75% 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 7e6f86ffd..237045561 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSubscriptionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListSubscriptionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - subscriptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + subscriptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subscriptions_.add( + input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); + break; } - subscriptions_.add( - input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListSubscriptionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -94,22 +112,27 @@ private ListSubscriptionsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List subscriptions_; /** + * + * *
    * The subscriptions that match the request.
    * 
@@ -121,6 +144,8 @@ public java.util.List getSubscriptionsList() return subscriptions_; } /** + * + * *
    * The subscriptions that match the request.
    * 
@@ -128,11 +153,13 @@ public java.util.List getSubscriptionsList() * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSubscriptionsOrBuilderList() { return subscriptions_; } /** + * + * *
    * The subscriptions that match the request.
    * 
@@ -144,6 +171,8 @@ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
    * The subscriptions that match the request.
    * 
@@ -155,6 +184,8 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
    * The subscriptions that match the request.
    * 
@@ -162,14 +193,15 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ @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; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -177,6 +209,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +218,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; } } /** + * + * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -200,16 +234,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -218,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +263,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)); } @@ -247,8 +280,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_); @@ -261,17 +293,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,118 +325,127 @@ 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() @@ -413,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) { getSubscriptionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +479,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 @@ -460,7 +500,8 @@ 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); int from_bitField0_ = bitField0_; if (subscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -480,38 +521,39 @@ public com.google.pubsub.v1.ListSubscriptionsResponse 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.ListSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse) other); } else { super.mergeFrom(other); return this; @@ -538,9 +580,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_); } @@ -578,21 +621,28 @@ public Builder mergeFrom( } 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_; /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -607,6 +657,8 @@ public java.util.List getSubscriptionsList() } } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -621,6 +673,8 @@ public int getSubscriptionsCount() { } } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -635,14 +689,15 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { } } /** + * + * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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(); @@ -656,6 +711,8 @@ public Builder setSubscriptions( return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -674,6 +731,8 @@ public Builder setSubscriptions( return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -694,14 +753,15 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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(); @@ -715,14 +775,15 @@ public Builder addSubscriptions( return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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()); @@ -733,6 +794,8 @@ public Builder addSubscriptions( return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -751,6 +814,8 @@ public Builder addSubscriptions( return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -761,8 +826,7 @@ 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); @@ -770,6 +834,8 @@ public Builder addAllSubscriptions( return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -787,6 +853,8 @@ public Builder clearSubscriptions() { return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -804,39 +872,44 @@ public Builder removeSubscriptions(int index) { return this; } /** + * + * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder( - int index) { + public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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); } } /** + * + * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public java.util.List - getSubscriptionsOrBuilderList() { + public java.util.List + getSubscriptionsOrBuilderList() { if (subscriptionsBuilder_ != null) { return subscriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -844,6 +917,8 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( } } /** + * + * *
      * The subscriptions that match the request.
      * 
@@ -851,38 +926,46 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ 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()); } /** + * + * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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()); } /** + * + * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - 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(), @@ -894,6 +977,8 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -901,13 +986,13 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(
      * 
* * 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; @@ -916,6 +1001,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -923,15 +1010,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -939,6 +1025,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -946,20 +1034,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -967,15 +1057,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -983,23 +1076,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1009,12 +1102,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(); } @@ -1023,16 +1116,16 @@ 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 { - return new ListSubscriptionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSubscriptionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,6 +1140,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 69% 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 acc6e8f80..1dcf23dd0 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,22 +1,41 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - java.util.List - getSubscriptionsList(); + java.util.List getSubscriptionsList(); /** + * + * *
    * The subscriptions that match the request.
    * 
@@ -25,6 +44,8 @@ public interface ListSubscriptionsResponseOrBuilder extends */ com.google.pubsub.v1.Subscription getSubscriptions(int index); /** + * + * *
    * The subscriptions that match the request.
    * 
@@ -33,25 +54,30 @@ public interface ListSubscriptionsResponseOrBuilder extends */ int getSubscriptionsCount(); /** + * + * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - java.util.List + java.util.List getSubscriptionsOrBuilderList(); /** + * + * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( - int index); + com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index); /** + * + * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -59,10 +85,13 @@ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -70,8 +99,8 @@ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(
    * 
* * 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/ListTopicSnapshotsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java similarity index 70% 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 aff65b971..17a383573 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListTopicSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSnapshotsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicSnapshotsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListTopicSnapshotsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + topic_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListTopicSnapshotsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -122,30 +148,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 { @@ -156,11 +184,14 @@ public java.lang.String getTopic() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of snapshot names to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,6 +202,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -178,6 +211,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,14 +220,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 `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -201,16 +236,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @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 { @@ -219,6 +253,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +265,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_); } @@ -254,8 +288,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_); @@ -268,19 +301,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,118 +334,127 @@ 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() @@ -422,16 +462,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +484,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 @@ -466,7 +505,8 @@ 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); + com.google.pubsub.v1.ListTopicSnapshotsRequest result = + new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); result.topic_ = topic_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -478,38 +518,39 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest 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.ListTopicSnapshotsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest) other); } else { super.mergeFrom(other); return this; @@ -560,19 +601,23 @@ public Builder mergeFrom( 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; @@ -581,21 +626,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 { @@ -603,69 +651,85 @@ 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) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -673,30 +737,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -704,6 +774,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -711,13 +783,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; @@ -726,6 +798,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -733,15 +807,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @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 { @@ -749,6 +822,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -756,20 +831,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -777,15 +854,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -793,23 +873,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -819,12 +899,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(); } @@ -833,16 +913,16 @@ 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 { - return new ListTopicSnapshotsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSnapshotsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +937,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 58% 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 63e1913b0..3e3382705 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,45 +1,75 @@ +/* + * Copyright 2020 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 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(); /** + * + * *
    * Maximum number of snapshot names to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -47,10 +77,13 @@ public interface ListTopicSnapshotsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -58,8 +91,8 @@ public interface ListTopicSnapshotsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @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 72% 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 0e5eee8e8..ea2130886 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,24 +1,42 @@ +/* + * Copyright 2020 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 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.EMPTY; nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListTopicSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSnapshotsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicSnapshotsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListTopicSnapshotsResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snapshots_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + snapshots_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + snapshots_.add(s); + break; } - snapshots_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListTopicSnapshotsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); @@ -94,50 +112,61 @@ private ListTopicSnapshotsResponse( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList snapshots_; /** + * + * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; + * * @return A list containing the snapshots. */ - public com.google.protobuf.ProtocolStringList - getSnapshotsList() { + public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_; } /** + * + * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; + * * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; + * * @param index The index of the element to return. * @return The snapshots at the given index. */ @@ -145,22 +174,26 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; + * * @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; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -168,6 +201,7 @@ public java.lang.String getSnapshots(int index) {
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -176,14 +210,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; } } /** + * + * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -191,16 +226,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -209,6 +243,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +255,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)); } @@ -256,17 +290,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -289,118 +322,127 @@ 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() @@ -408,16 +450,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +470,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_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 @@ -450,7 +491,8 @@ 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); + com.google.pubsub.v1.ListTopicSnapshotsResponse result = + new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); @@ -466,38 +508,39 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse 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.ListTopicSnapshotsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse) other); } else { super.mergeFrom(other); return this; @@ -505,7 +548,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_; @@ -548,44 +592,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList snapshots_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSnapshotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { snapshots_ = new com.google.protobuf.LazyStringArrayList(snapshots_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @return A list containing the snapshots. */ - public com.google.protobuf.ProtocolStringList - getSnapshotsList() { + public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_.getUnmodifiableView(); } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @param index The index of the element to return. * @return The snapshots at the given index. */ @@ -593,80 +648,90 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @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); } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @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) { + public Builder setSnapshots(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); return this; } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @param value The snapshots to add. * @return This builder for chaining. */ - public Builder addSnapshots( - java.lang.String value) { + public Builder addSnapshots(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); return this; } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @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_); onChanged(); return this; } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @return This builder for chaining. */ public Builder clearSnapshots() { @@ -676,20 +741,22 @@ public Builder clearSnapshots() { return this; } /** + * + * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; + * * @param value The bytes of the snapshots to add. * @return This builder for chaining. */ - public Builder addSnapshotsBytes( - com.google.protobuf.ByteString value) { + public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); @@ -698,6 +765,8 @@ public Builder addSnapshotsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -705,13 +774,13 @@ public Builder addSnapshotsBytes(
      * 
* * 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; @@ -720,6 +789,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -727,15 +798,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -743,6 +813,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -750,20 +822,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -771,15 +845,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -787,23 +864,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -813,12 +890,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(); } @@ -827,16 +904,16 @@ 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 { - return new ListTopicSnapshotsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSnapshotsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,6 +928,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 66% 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 09729ce06..778a80008 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,54 +1,82 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; + * * @return A list containing the snapshots. */ - java.util.List - getSnapshotsList(); + java.util.List getSnapshotsList(); /** + * + * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; + * * @return The count of snapshots. */ int getSnapshotsCount(); /** + * + * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; + * * @param index The index of the element to return. * @return The snapshots at the given index. */ java.lang.String getSnapshots(int index); /** + * + * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; + * * @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); /** + * + * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -56,10 +84,13 @@ public interface ListTopicSnapshotsResponseOrBuilder extends
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -67,8 +98,8 @@ public interface ListTopicSnapshotsResponseOrBuilder extends
    * 
* * 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/ListTopicSubscriptionsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java similarity index 69% 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 fb207b641..ae8c370d6 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListTopicSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSubscriptionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicSubscriptionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListTopicSubscriptionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + topic_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListTopicSubscriptionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -122,30 +148,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 { @@ -156,11 +184,14 @@ public java.lang.String getTopic() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of subscription names to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,6 +202,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -178,6 +211,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,14 +220,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 `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -201,16 +236,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @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 { @@ -219,6 +253,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +265,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_); } @@ -254,8 +288,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_); @@ -268,19 +301,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -304,117 +335,126 @@ 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() @@ -422,16 +462,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +484,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 @@ -466,7 +505,8 @@ 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); + com.google.pubsub.v1.ListTopicSubscriptionsRequest result = + new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); result.topic_ = topic_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -478,38 +518,39 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest 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.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; @@ -517,7 +558,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_; onChanged(); @@ -548,7 +590,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -560,19 +603,23 @@ public Builder mergeFrom( 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; @@ -581,21 +628,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 { @@ -603,69 +653,85 @@ 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) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -673,30 +739,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -704,6 +776,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -711,13 +785,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; @@ -726,6 +800,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -733,15 +809,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @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 { @@ -749,6 +824,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -756,20 +833,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -777,15 +856,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -793,23 +875,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -819,12 +901,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(); } @@ -833,16 +915,16 @@ 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 { - return new ListTopicSubscriptionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSubscriptionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +939,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 58% 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 950ac7b4e..2d09f8895 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,45 +1,75 @@ +/* + * Copyright 2020 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 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(); /** + * + * *
    * Maximum number of subscription names to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -47,10 +77,13 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -58,8 +91,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @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 72% 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 ea21fa1f7..16bfc8bfe 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,24 +1,43 @@ +/* + * Copyright 2020 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 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.EMPTY; nextPageToken_ = ""; @@ -26,16 +45,15 @@ private ListTopicSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSubscriptionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicSubscriptionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,30 @@ private ListTopicSubscriptionsResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - subscriptions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + subscriptions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subscriptions_.add(s); + break; } - subscriptions_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListTopicSubscriptionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); @@ -94,50 +113,61 @@ private ListTopicSubscriptionsResponse( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList subscriptions_; /** + * + * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList - getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_; } /** + * + * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -145,22 +175,26 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.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; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -168,6 +202,7 @@ public java.lang.String getSubscriptions(int index) {
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -176,14 +211,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; } } /** + * + * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -191,16 +227,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -209,6 +244,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +256,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)); } @@ -256,17 +291,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,117 +324,126 @@ 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() @@ -408,16 +451,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +471,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_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 @@ -450,7 +492,8 @@ 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); + com.google.pubsub.v1.ListTopicSubscriptionsResponse result = + new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); @@ -466,38 +509,39 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse 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.ListTopicSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse) other); } else { super.mergeFrom(other); return this; @@ -505,7 +549,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_; @@ -539,7 +584,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,44 +594,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList subscriptions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList - getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_.getUnmodifiableView(); } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -593,80 +650,90 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.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); } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.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) { + public Builder setSubscriptions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubscriptionsIsMutable(); + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); onChanged(); return this; } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @param value The subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptions( - java.lang.String value) { + public Builder addSubscriptions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubscriptionsIsMutable(); + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); return this; } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.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_); onChanged(); return this; } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSubscriptions() { @@ -676,20 +743,22 @@ public Builder clearSubscriptions() { return this; } /** + * + * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.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) { + public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); @@ -698,6 +767,8 @@ public Builder addSubscriptionsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -705,13 +776,13 @@ public Builder addSubscriptionsBytes(
      * 
* * 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; @@ -720,6 +791,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -727,15 +800,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -743,6 +815,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -750,20 +824,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -771,15 +847,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -787,23 +866,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -813,12 +892,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(); } @@ -827,16 +906,16 @@ 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 { - return new ListTopicSubscriptionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSubscriptionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,6 +930,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 70% 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 28f5759b8..dffc961db 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,54 +1,82 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the subscriptions. */ - java.util.List - getSubscriptionsList(); + java.util.List getSubscriptionsList(); /** + * + * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of subscriptions. */ int getSubscriptionsCount(); /** + * + * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.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); /** + * + * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.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); /** + * + * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -56,10 +84,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder extends
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -67,8 +98,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder extends
    * 
* * 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/ListTopicsRequest.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java similarity index 69% 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 d7eb278f4..cbb0a15ed 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListTopicsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListTopicsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -122,30 +148,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 { @@ -156,11 +184,14 @@ public java.lang.String getProject() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of topics to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,6 +202,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -178,6 +211,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,14 +220,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 `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -201,16 +236,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @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 { @@ -219,6 +253,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +265,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_); } @@ -254,8 +288,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_); @@ -268,19 +301,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,118 +333,127 @@ 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() @@ -422,16 +461,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +483,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 @@ -466,7 +504,8 @@ 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); + com.google.pubsub.v1.ListTopicsRequest result = + new com.google.pubsub.v1.ListTopicsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -478,38 +517,39 @@ public com.google.pubsub.v1.ListTopicsRequest 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.ListTopicsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListTopicsRequest) other); } else { super.mergeFrom(other); return this; @@ -560,19 +600,23 @@ public Builder mergeFrom( 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; @@ -581,21 +625,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 { @@ -603,69 +650,85 @@ 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) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; 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() { - + project_ = getDefaultInstance().getProject(); 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) = { ... } + * + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -673,30 +736,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -704,6 +773,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -711,13 +782,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; @@ -726,6 +797,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -733,15 +806,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @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 { @@ -749,6 +821,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -756,20 +830,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -777,15 +853,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -793,23 +872,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -819,12 +898,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(); } @@ -833,16 +912,16 @@ 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 { - return new ListTopicsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTopicsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +936,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 57% 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 d6acb0277..8f5219329 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,45 +1,75 @@ +/* + * Copyright 2020 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 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(); /** + * + * *
    * Maximum number of topics to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -47,10 +77,13 @@ public interface ListTopicsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -58,8 +91,8 @@ public interface ListTopicsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @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 73% 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 6a4ad7bfc..ba9cb473c 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private ListTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListTopicsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - topics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + topics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + topics_.add( + input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); + break; } - topics_.add( - input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListTopicsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -94,22 +112,27 @@ private ListTopicsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List topics_; /** + * + * *
    * The resulting topics.
    * 
@@ -121,6 +144,8 @@ public java.util.List getTopicsList() { return topics_; } /** + * + * *
    * The resulting topics.
    * 
@@ -128,11 +153,12 @@ public java.util.List getTopicsList() { * repeated .google.pubsub.v1.Topic topics = 1; */ @java.lang.Override - public java.util.List - getTopicsOrBuilderList() { + public java.util.List getTopicsOrBuilderList() { return topics_; } /** + * + * *
    * The resulting topics.
    * 
@@ -144,6 +170,8 @@ public int getTopicsCount() { return topics_.size(); } /** + * + * *
    * The resulting topics.
    * 
@@ -155,6 +183,8 @@ public com.google.pubsub.v1.Topic getTopics(int index) { return topics_.get(index); } /** + * + * *
    * The resulting topics.
    * 
@@ -162,20 +192,22 @@ public com.google.pubsub.v1.Topic getTopics(int index) { * repeated .google.pubsub.v1.Topic topics = 1; */ @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; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * 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; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +216,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 topics that match the
    * request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * 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 { @@ -216,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +260,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)); } @@ -245,8 +277,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_); @@ -259,17 +290,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +321,127 @@ 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() @@ -411,17 +449,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) { getTopicsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +475,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 @@ -458,7 +496,8 @@ 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); int from_bitField0_ = bitField0_; if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +517,39 @@ public com.google.pubsub.v1.ListTopicsResponse 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.ListTopicsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListTopicsResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +576,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_); } @@ -576,21 +617,27 @@ public Builder mergeFrom( } 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_; /** + * + * *
      * The resulting topics.
      * 
@@ -605,6 +652,8 @@ public java.util.List getTopicsList() { } } /** + * + * *
      * The resulting topics.
      * 
@@ -619,6 +668,8 @@ public int getTopicsCount() { } } /** + * + * *
      * The resulting topics.
      * 
@@ -633,14 +684,15 @@ public com.google.pubsub.v1.Topic getTopics(int index) { } } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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(); @@ -654,14 +706,15 @@ public Builder setTopics( return this; } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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()); @@ -672,6 +725,8 @@ public Builder setTopics( return this; } /** + * + * *
      * The resulting topics.
      * 
@@ -692,14 +747,15 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { return this; } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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(); @@ -713,14 +769,15 @@ public Builder addTopics( return this; } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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()); @@ -731,14 +788,15 @@ public Builder addTopics( return this; } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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()); @@ -749,18 +807,18 @@ public Builder addTopics( return this; } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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); @@ -768,6 +826,8 @@ public Builder addAllTopics( return this; } /** + * + * *
      * The resulting topics.
      * 
@@ -785,6 +845,8 @@ public Builder clearTopics() { return this; } /** + * + * *
      * The resulting topics.
      * 
@@ -802,39 +864,43 @@ public Builder removeTopics(int index) { return this; } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.Topic.Builder getTopicsBuilder( - int index) { + public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { return getTopicsFieldBuilder().getBuilder(index); } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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); } } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public java.util.List - getTopicsOrBuilderList() { + public java.util.List getTopicsOrBuilderList() { if (topicsBuilder_ != null) { return topicsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +908,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( } } /** + * + * *
      * The resulting topics.
      * 
@@ -849,42 +917,46 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( * repeated .google.pubsub.v1.Topic topics = 1; */ 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()); } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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()); } /** + * + * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - 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_; @@ -892,19 +964,21 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * 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; + * * @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; @@ -913,21 +987,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * 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; + * * @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 { @@ -935,64 +1010,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * 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; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * 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; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1002,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(); } @@ -1016,16 +1098,16 @@ 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 { - return new ListTopicsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTopicsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1122,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 63% 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 3706fd7e5..c29de3514 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,22 +1,41 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - java.util.List - getTopicsList(); + java.util.List getTopicsList(); /** + * + * *
    * The resulting topics.
    * 
@@ -25,6 +44,8 @@ public interface ListTopicsResponseOrBuilder extends */ com.google.pubsub.v1.Topic getTopics(int index); /** + * + * *
    * The resulting topics.
    * 
@@ -33,43 +54,50 @@ public interface ListTopicsResponseOrBuilder extends */ int getTopicsCount(); /** + * + * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - java.util.List - getTopicsOrBuilderList(); + java.util.List getTopicsOrBuilderList(); /** + * + * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( - int index); + com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index); /** + * + * *
    * 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; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * 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; + * * @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 74% 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 83b12b7b8..c02987c8e 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,40 +1,57 @@ +/* + * Copyright 2020 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 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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MessageStoragePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MessageStoragePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private MessageStoragePolicy( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + allowedPersistenceRegions_.add(s); + break; } - allowedPersistenceRegions_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +95,7 @@ private MessageStoragePolicy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); @@ -87,22 +104,27 @@ private MessageStoragePolicy( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList allowedPersistenceRegions_; /** + * + * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -112,13 +134,15 @@ private MessageStoragePolicy(
    * 
* * repeated string allowed_persistence_regions = 1; + * * @return A list containing the allowedPersistenceRegions. */ - public com.google.protobuf.ProtocolStringList - getAllowedPersistenceRegionsList() { + public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_; } /** + * + * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -128,12 +152,15 @@ private MessageStoragePolicy(
    * 
* * repeated string allowed_persistence_regions = 1; + * * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } /** + * + * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -143,6 +170,7 @@ public int getAllowedPersistenceRegionsCount() {
    * 
* * repeated string allowed_persistence_regions = 1; + * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ @@ -150,6 +178,8 @@ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } /** + * + * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -159,15 +189,16 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
    * 
* * repeated string allowed_persistence_regions = 1; + * * @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); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,10 +210,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)); } unknownFields.writeTo(output); } @@ -209,15 +240,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.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 (!getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,118 +270,127 @@ public int hashCode() { 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() @@ -357,16 +398,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,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_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 @@ -397,7 +437,8 @@ 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); + com.google.pubsub.v1.MessageStoragePolicy result = + new com.google.pubsub.v1.MessageStoragePolicy(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); @@ -412,38 +453,39 @@ public com.google.pubsub.v1.MessageStoragePolicy 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.MessageStoragePolicy) { - return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other); + return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy) other); } else { super.mergeFrom(other); return this; @@ -490,16 +532,22 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedPersistenceRegionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); + allowedPersistenceRegions_ = + new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -509,13 +557,15 @@ private void ensureAllowedPersistenceRegionsIsMutable() {
      * 
* * repeated string allowed_persistence_regions = 1; + * * @return A list containing the allowedPersistenceRegions. */ - public com.google.protobuf.ProtocolStringList - getAllowedPersistenceRegionsList() { + public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_.getUnmodifiableView(); } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -525,12 +575,15 @@ private void ensureAllowedPersistenceRegionsIsMutable() {
      * 
* * repeated string allowed_persistence_regions = 1; + * * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -540,6 +593,7 @@ public int getAllowedPersistenceRegionsCount() {
      * 
* * repeated string allowed_persistence_regions = 1; + * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ @@ -547,6 +601,8 @@ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -556,14 +612,16 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
      * 
* * repeated string allowed_persistence_regions = 1; + * * @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); } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -573,21 +631,23 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
      * 
* * repeated string allowed_persistence_regions = 1; + * * @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) { + public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedPersistenceRegionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -597,20 +657,22 @@ public Builder setAllowedPersistenceRegions(
      * 
* * repeated string allowed_persistence_regions = 1; + * * @param value The allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllowedPersistenceRegions( - java.lang.String value) { + public Builder addAllowedPersistenceRegions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedPersistenceRegionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(value); onChanged(); return this; } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -620,18 +682,19 @@ public Builder addAllowedPersistenceRegions(
      * 
* * repeated string allowed_persistence_regions = 1; + * * @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_); onChanged(); return this; } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -641,6 +704,7 @@ public Builder addAllAllowedPersistenceRegions(
      * 
* * repeated string allowed_persistence_regions = 1; + * * @return This builder for chaining. */ public Builder clearAllowedPersistenceRegions() { @@ -650,6 +714,8 @@ public Builder clearAllowedPersistenceRegions() { return this; } /** + * + * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -659,23 +725,23 @@ public Builder clearAllowedPersistenceRegions() {
      * 
* * repeated string allowed_persistence_regions = 1; + * * @param value The bytes of the allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllowedPersistenceRegionsBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(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); } @@ -685,12 +751,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(); } @@ -699,16 +765,16 @@ 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 { - return new MessageStoragePolicy(input, extensionRegistry); - } - }; + 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 { + return new MessageStoragePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,6 +789,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 75% 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 7eec02f6f..e606797dc 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,13 +1,31 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -17,11 +35,13 @@ public interface MessageStoragePolicyOrBuilder extends
    * 
* * repeated string allowed_persistence_regions = 1; + * * @return A list containing the allowedPersistenceRegions. */ - java.util.List - getAllowedPersistenceRegionsList(); + java.util.List getAllowedPersistenceRegionsList(); /** + * + * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -31,10 +51,13 @@ public interface MessageStoragePolicyOrBuilder extends
    * 
* * repeated string allowed_persistence_regions = 1; + * * @return The count of allowedPersistenceRegions. */ int getAllowedPersistenceRegionsCount(); /** + * + * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -44,11 +67,14 @@ public interface MessageStoragePolicyOrBuilder extends
    * 
* * repeated string allowed_persistence_regions = 1; + * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ java.lang.String getAllowedPersistenceRegions(int index); /** + * + * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -58,9 +84,9 @@ public interface MessageStoragePolicyOrBuilder extends
    * 
* * repeated string allowed_persistence_regions = 1; + * * @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); } 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 72% 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 fe8cc2b02..f3c067c7d 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,24 +1,42 @@ +/* + * Copyright 2020 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 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.EMPTY; @@ -26,16 +44,15 @@ private ModifyAckDeadlineRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModifyAckDeadlineRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModifyAckDeadlineRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,35 @@ private ModifyAckDeadlineRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subscription_ = s; - break; - } - case 24: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - ackDeadlineSeconds_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + subscription_ = s; + break; } - ackIds_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + ackDeadlineSeconds_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ackIds_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +108,7 @@ private ModifyAckDeadlineRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); @@ -99,28 +117,36 @@ private ModifyAckDeadlineRequest( makeExtensionsImmutable(); } } - 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; 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 @@ -129,30 +155,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 { @@ -163,34 +191,42 @@ public java.lang.String getSubscription() { public static final int ACK_IDS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList ackIds_; /** + * + * *
    * 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. */ @@ -198,22 +234,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_; /** + * + * *
    * 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
@@ -226,6 +266,7 @@ public java.lang.String getAckIds(int index) {
    * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -234,6 +275,7 @@ public int getAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +287,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_); } @@ -269,8 +310,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; @@ -288,19 +328,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,118 +363,127 @@ 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() @@ -444,16 +491,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -467,9 +513,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_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 @@ -488,7 +534,8 @@ 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); + com.google.pubsub.v1.ModifyAckDeadlineRequest result = + new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; result.subscription_ = subscription_; if (((bitField0_ & 0x00000001) != 0)) { @@ -505,38 +552,39 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest 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.ModifyAckDeadlineRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); + return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest) other); } else { super.mergeFrom(other); return this; @@ -590,23 +638,28 @@ public Builder mergeFrom( } 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; @@ -615,21 +668,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 { @@ -637,98 +693,121 @@ 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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ackIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -736,80 +815,90 @@ 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) { + public Builder setAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); 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) { + public Builder addAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); 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_); 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() { @@ -819,28 +908,32 @@ public Builder clearAckIds() { 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) { + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); 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
@@ -853,6 +946,7 @@ public Builder addAckIdsBytes(
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -860,6 +954,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
@@ -872,16 +968,19 @@ public int getAckDeadlineSeconds() {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setAckDeadlineSeconds(int value) { - + ackDeadlineSeconds_ = value; onChanged(); 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
@@ -894,17 +993,18 @@ public Builder setAckDeadlineSeconds(int value) {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - + ackDeadlineSeconds_ = 0; 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); } @@ -914,12 +1014,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(); } @@ -928,16 +1028,16 @@ 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 { - return new ModifyAckDeadlineRequest(input, extensionRegistry); - } - }; + 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 { + return new ModifyAckDeadlineRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,6 +1052,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 934a38975..663ca36d9 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,76 +1,113 @@ +/* + * Copyright 2020 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 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
@@ -83,6 +120,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 70% 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 4cc075d2c..f3d869b47 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModifyPushConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,35 @@ private ModifyPushConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: { - com.google.pubsub.v1.PushConfig.Builder subBuilder = null; - if (pushConfig_ != null) { - subBuilder = pushConfig_.toBuilder(); + subscription_ = s; + break; } - pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pushConfig_); - pushConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); + } + pushConfig_ = + input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +106,42 @@ private ModifyPushConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; 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 @@ -123,30 +150,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 { @@ -157,6 +186,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.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -165,7 +196,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 @@ -173,6 +206,8 @@ public boolean hasPushConfig() { return pushConfig_ != null; } /** + * + * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -181,7 +216,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 @@ -189,6 +226,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.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -197,7 +236,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() { @@ -205,6 +245,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +257,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_); } @@ -237,8 +277,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (pushConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPushConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -248,19 +287,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -284,118 +322,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() @@ -403,16 +450,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +474,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 @@ -449,7 +495,8 @@ 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); + com.google.pubsub.v1.ModifyPushConfigRequest result = + new com.google.pubsub.v1.ModifyPushConfigRequest(this); result.subscription_ = subscription_; if (pushConfigBuilder_ == null) { result.pushConfig_ = pushConfig_; @@ -464,38 +511,39 @@ public com.google.pubsub.v1.ModifyPushConfigRequest 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.ModifyPushConfigRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); + return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -542,19 +590,23 @@ public Builder mergeFrom( 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; @@ -563,21 +615,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 { @@ -585,57 +640,70 @@ 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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; @@ -643,8 +711,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.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -653,13 +726,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 pushConfigBuilder_ != null || pushConfig_ != null; } /** + * + * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -668,17 +745,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.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -687,7 +770,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) { @@ -703,6 +787,8 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** + * + * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -711,10 +797,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(); onChanged(); @@ -725,6 +811,8 @@ public Builder setPushConfig( return this; } /** + * + * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -733,13 +821,16 @@ 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 (pushConfig_ != null) { pushConfig_ = - com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_) + .mergeFrom(value) + .buildPartial(); } else { pushConfig_ = value; } @@ -751,6 +842,8 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** + * + * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -759,7 +852,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() { if (pushConfigBuilder_ == null) { @@ -773,6 +867,8 @@ public Builder clearPushConfig() { return this; } /** + * + * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -781,14 +877,17 @@ 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() { - + onChanged(); return getPushConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -797,17 +896,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.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -816,24 +919,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); } @@ -843,12 +950,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(); } @@ -857,16 +964,16 @@ 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 { - return new ModifyPushConfigRequest(input, extensionRegistry); - } - }; + 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 { + return new ModifyPushConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +988,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 3b80a1389..10a208c31 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,35 +1,62 @@ +/* + * Copyright 2020 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 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.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -38,11 +65,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.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -51,11 +82,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.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -64,7 +99,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 64% 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 266801fc9..4d0732319 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,24 +1,42 @@ +/* + * Copyright 2020 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 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(); @@ -26,16 +44,15 @@ private PublishRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublishRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private PublishRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - messages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + topic_ = s; + break; } - messages_.add( - input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + messages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + messages_.add( + input.readMessage( + com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private PublishRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -94,28 +113,36 @@ private PublishRequest( makeExtensionsImmutable(); } } - 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; 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 @@ -124,30 +151,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 { @@ -158,64 +187,84 @@ public java.lang.String getTopic() { public static final int MESSAGES_FIELD_NUMBER = 2; 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; @@ -227,8 +276,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_); } @@ -248,8 +296,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -259,17 +306,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +337,126 @@ 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() @@ -411,17 +464,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) { getMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +490,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 @@ -478,38 +531,39 @@ public com.google.pubsub.v1.PublishRequest 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.PublishRequest) { - return mergeFrom((com.google.pubsub.v1.PublishRequest)other); + return mergeFrom((com.google.pubsub.v1.PublishRequest) other); } else { super.mergeFrom(other); return this; @@ -540,9 +594,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000001); - messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessagesFieldBuilder() : null; + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessagesFieldBuilder() + : null; } else { messagesBuilder_.addAllMessages(other.messages_); } @@ -576,23 +631,28 @@ public Builder mergeFrom( } 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; @@ -601,21 +661,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 { @@ -623,80 +686,101 @@ 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) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } private java.util.List messages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000001; - } + } } 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) { @@ -706,11 +790,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) { @@ -720,11 +808,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) { @@ -734,14 +826,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(); @@ -755,11 +850,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) { @@ -773,11 +872,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) { @@ -793,14 +896,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(); @@ -814,14 +920,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()); @@ -832,11 +941,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) { @@ -850,18 +963,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); @@ -869,11 +985,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) { @@ -886,11 +1006,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) { @@ -903,39 +1027,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 { @@ -943,56 +1078,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -1002,12 +1150,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(); } @@ -1016,16 +1164,16 @@ 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 { - return new PublishRequest(input, extensionRegistry); - } - }; + 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 { + return new PublishRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1188,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..d233bca82 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 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 + +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 72% 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 ee06a2eae..25caaf8bc 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,40 +1,57 @@ +/* + * Copyright 2020 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 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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublishResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private PublishResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - messageIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + messageIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + messageIds_.add(s); + break; } - messageIds_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +95,7 @@ private PublishResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { messageIds_ = messageIds_.getUnmodifiableView(); @@ -87,22 +104,27 @@ private PublishResponse( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList messageIds_; /** + * + * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -110,13 +132,15 @@ private PublishResponse(
    * 
* * repeated string message_ids = 1; + * * @return A list containing the messageIds. */ - public com.google.protobuf.ProtocolStringList - getMessageIdsList() { + public com.google.protobuf.ProtocolStringList getMessageIdsList() { return messageIds_; } /** + * + * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -124,12 +148,15 @@ private PublishResponse(
    * 
* * repeated string message_ids = 1; + * * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); } /** + * + * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -137,6 +164,7 @@ public int getMessageIdsCount() {
    * 
* * repeated string message_ids = 1; + * * @param index The index of the element to return. * @return The messageIds at the given index. */ @@ -144,6 +172,8 @@ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } /** + * + * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -151,15 +181,16 @@ public java.lang.String getMessageIds(int index) {
    * 
* * repeated string message_ids = 1; + * * @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; @@ -171,8 +202,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)); } @@ -201,15 +231,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,118 +259,126 @@ 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() @@ -349,16 +386,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -368,9 +404,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_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 @@ -404,38 +440,39 @@ public com.google.pubsub.v1.PublishResponse 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.PublishResponse) { - return mergeFrom((com.google.pubsub.v1.PublishResponse)other); + return mergeFrom((com.google.pubsub.v1.PublishResponse) other); } else { super.mergeFrom(other); return this; @@ -482,16 +519,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList messageIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMessageIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messageIds_ = new com.google.protobuf.LazyStringArrayList(messageIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -499,13 +541,15 @@ private void ensureMessageIdsIsMutable() {
      * 
* * repeated string message_ids = 1; + * * @return A list containing the messageIds. */ - public com.google.protobuf.ProtocolStringList - getMessageIdsList() { + public com.google.protobuf.ProtocolStringList getMessageIdsList() { return messageIds_.getUnmodifiableView(); } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -513,12 +557,15 @@ private void ensureMessageIdsIsMutable() {
      * 
* * repeated string message_ids = 1; + * * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -526,6 +573,7 @@ public int getMessageIdsCount() {
      * 
* * repeated string message_ids = 1; + * * @param index The index of the element to return. * @return The messageIds at the given index. */ @@ -533,6 +581,8 @@ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -540,14 +590,16 @@ public java.lang.String getMessageIds(int index) {
      * 
* * repeated string message_ids = 1; + * * @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); } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -555,21 +607,23 @@ public java.lang.String getMessageIds(int index) {
      * 
* * repeated string message_ids = 1; + * * @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) { + public Builder setMessageIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdsIsMutable(); + throw new NullPointerException(); + } + ensureMessageIdsIsMutable(); messageIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -577,20 +631,22 @@ public Builder setMessageIds(
      * 
* * repeated string message_ids = 1; + * * @param value The messageIds to add. * @return This builder for chaining. */ - public Builder addMessageIds( - java.lang.String value) { + public Builder addMessageIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdsIsMutable(); + throw new NullPointerException(); + } + ensureMessageIdsIsMutable(); messageIds_.add(value); onChanged(); return this; } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -598,18 +654,19 @@ public Builder addMessageIds(
      * 
* * repeated string message_ids = 1; + * * @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_); onChanged(); return this; } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -617,6 +674,7 @@ public Builder addAllMessageIds(
      * 
* * repeated string message_ids = 1; + * * @return This builder for chaining. */ public Builder clearMessageIds() { @@ -626,6 +684,8 @@ public Builder clearMessageIds() { return this; } /** + * + * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -633,23 +693,23 @@ public Builder clearMessageIds() {
      * 
* * repeated string message_ids = 1; + * * @param value The bytes of the messageIds to add. * @return This builder for chaining. */ - public Builder addMessageIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMessageIdsIsMutable(); messageIds_.add(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); } @@ -659,12 +719,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(); } @@ -673,16 +733,16 @@ 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 { - return new PublishResponse(input, extensionRegistry); - } - }; + 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 { + return new PublishResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -697,6 +757,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 66% 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 a7b56d66f..27dbe63f8 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,13 +1,31 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -15,11 +33,13 @@ public interface PublishResponseOrBuilder extends
    * 
* * repeated string message_ids = 1; + * * @return A list containing the messageIds. */ - java.util.List - getMessageIdsList(); + java.util.List getMessageIdsList(); /** + * + * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -27,10 +47,13 @@ public interface PublishResponseOrBuilder extends
    * 
* * repeated string message_ids = 1; + * * @return The count of messageIds. */ int getMessageIdsCount(); /** + * + * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -38,11 +61,14 @@ public interface PublishResponseOrBuilder extends
    * 
* * repeated string message_ids = 1; + * * @param index The index of the element to return. * @return The messageIds at the given index. */ java.lang.String getMessageIds(int index); /** + * + * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -50,9 +76,9 @@ public interface PublishResponseOrBuilder extends
    * 
* * repeated string message_ids = 1; + * * @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 56e0332fd..f9243a265 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,9 +1,26 @@ +/* + * Copyright 2020 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 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.
@@ -17,15 +34,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_ = "";
@@ -34,16 +52,15 @@ private PubsubMessage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PubsubMessage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PubsubMessage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,56 +80,62 @@ private PubsubMessage(
           case 0:
             done = true;
             break;
-          case 10: {
-
-            data_ = input.readBytes();
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              attributes_ = com.google.protobuf.MapField.newMapField(
-                  AttributesDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              data_ = input.readBytes();
+              break;
             }
-            com.google.protobuf.MapEntry
-            attributes__ = input.readMessage(
-                AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            attributes_.getMutableMap().put(
-                attributes__.getKey(), attributes__.getValue());
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                attributes_ =
+                    com.google.protobuf.MapField.newMapField(
+                        AttributesDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry attributes__ =
+                  input.readMessage(
+                      AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue());
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            messageId_ = s;
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (publishTime_ != null) {
-              subBuilder = publishTime_.toBuilder();
+              messageId_ = s;
+              break;
             }
-            publishTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(publishTime_);
-              publishTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (publishTime_ != null) {
+                subBuilder = publishTime_.toBuilder();
+              }
+              publishTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(publishTime_);
+                publishTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            orderingKey_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              orderingKey_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -120,47 +143,51 @@ private PubsubMessage(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       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);
   }
 
   public static final int DATA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString data_;
   /**
+   *
+   *
    * 
    * The message data field. If this field is empty, the message must contain
    * at least one attribute.
    * 
* * bytes data = 1; + * * @return The data. */ @java.lang.Override @@ -169,24 +196,23 @@ 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, + ""); } - 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_; } @@ -195,6 +221,8 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
    * 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
@@ -203,22 +231,22 @@ public int getAttributesCount() {
    *
    * map<string, string> attributes = 2;
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * 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
@@ -228,11 +256,12 @@ public java.util.Map getAttributes() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
-
   public java.util.Map getAttributesMap() {
     return internalGetAttributes().getMap();
   }
   /**
+   *
+   *
    * 
    * 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
@@ -242,16 +271,17 @@ public java.util.Map getAttributesMap() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
-
   public java.lang.String getAttributesOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAttributes().getMap();
+      java.lang.String key, 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;
   }
   /**
+   *
+   *
    * 
    * 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
@@ -261,12 +291,11 @@ public java.lang.String getAttributesOrDefault(
    * map<string, string> attributes = 2;
    */
   @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();
     }
@@ -276,6 +305,8 @@ public java.lang.String getAttributesOrThrow(
   public static final int MESSAGE_ID_FIELD_NUMBER = 3;
   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
@@ -284,6 +315,7 @@ public java.lang.String getAttributesOrThrow(
    * 
* * string message_id = 3; + * * @return The messageId. */ @java.lang.Override @@ -292,14 +324,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
@@ -308,16 +341,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 { @@ -328,6 +360,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
@@ -335,6 +369,7 @@ public java.lang.String getMessageId() {
    * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -342,6 +377,8 @@ public boolean hasPublishTime() { return publishTime_ != null; } /** + * + * *
    * 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
@@ -349,6 +386,7 @@ public boolean hasPublishTime() {
    * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return The publishTime. */ @java.lang.Override @@ -356,6 +394,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
@@ -372,6 +412,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
   public static final int ORDERING_KEY_FIELD_NUMBER = 5;
   private volatile java.lang.Object orderingKey_;
   /**
+   *
+   *
    * 
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -382,6 +424,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * string ordering_key = 5; + * * @return The orderingKey. */ @java.lang.Override @@ -390,14 +433,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; } } /** + * + * *
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -408,16 +452,15 @@ public java.lang.String getOrderingKey() {
    * 
* * string ordering_key = 5; + * * @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 { @@ -426,6 +469,7 @@ public java.lang.String getOrderingKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -437,17 +481,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_); } @@ -467,25 +506,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 (publishTime_ != null) { - 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_); @@ -498,26 +535,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -548,97 +580,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.
@@ -652,43 +690,43 @@ 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"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         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.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         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()
@@ -696,16 +734,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -726,9 +763,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
@@ -767,38 +804,39 @@ public com.google.pubsub.v1.PubsubMessage 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.PubsubMessage) {
-        return mergeFrom((com.google.pubsub.v1.PubsubMessage)other);
+        return mergeFrom((com.google.pubsub.v1.PubsubMessage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -810,8 +848,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());
       if (!other.getMessageId().isEmpty()) {
         messageId_ = other.messageId_;
         onChanged();
@@ -851,16 +888,20 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; + * * @return The data. */ @java.lang.Override @@ -868,56 +909,64 @@ public com.google.protobuf.ByteString getData() { return data_; } /** + * + * *
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; + * * @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(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** + * + * *
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; + * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); 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() { + internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } + private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged();; + internalGetMutableAttributes() { + onChanged(); + ; 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(); @@ -929,6 +978,8 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
      * 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
@@ -937,22 +988,22 @@ public int getAttributesCount() {
      *
      * map<string, string> attributes = 2;
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * 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
@@ -962,11 +1013,12 @@ public java.util.Map getAttributes() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
-
     public java.util.Map getAttributesMap() {
       return internalGetAttributes().getMap();
     }
     /**
+     *
+     *
      * 
      * 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
@@ -976,16 +1028,17 @@ public java.util.Map getAttributesMap() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
-
     public java.lang.String getAttributesOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAttributes().getMap();
+        java.lang.String key, 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;
     }
     /**
+     *
+     *
      * 
      * 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
@@ -995,12 +1048,11 @@ public java.lang.String getAttributesOrDefault(
      * map<string, string> attributes = 2;
      */
     @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();
       }
@@ -1008,11 +1060,12 @@ public java.lang.String getAttributesOrThrow(
     }
 
     public Builder clearAttributes() {
-      internalGetMutableAttributes().getMutableMap()
-          .clear();
+      internalGetMutableAttributes().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1021,23 +1074,21 @@ public Builder clearAttributes() {
      *
      * map<string, string> attributes = 2;
      */
-
-    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() {
       return internalGetMutableAttributes().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1046,19 +1097,20 @@ public Builder removeAttributes(
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAttributes(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableAttributes().getMutableMap()
-          .put(key, value);
+      internalGetMutableAttributes().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1067,16 +1119,15 @@ public Builder putAttributes(
      *
      * map<string, string> attributes = 2;
      */
-
-    public Builder putAllAttributes(
-        java.util.Map values) {
-      internalGetMutableAttributes().getMutableMap()
-          .putAll(values);
+    public Builder putAllAttributes(java.util.Map values) {
+      internalGetMutableAttributes().getMutableMap().putAll(values);
       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
@@ -1085,13 +1136,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; @@ -1100,6 +1151,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
@@ -1108,15 +1161,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 { @@ -1124,6 +1176,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
@@ -1132,20 +1186,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) { + public Builder setMessageId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + messageId_ = value; 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
@@ -1154,15 +1210,18 @@ public Builder setMessageId(
      * 
* * string message_id = 3; + * * @return This builder for chaining. */ public Builder clearMessageId() { - + messageId_ = getDefaultInstance().getMessageId(); 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
@@ -1171,16 +1230,16 @@ 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) { + public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + messageId_ = value; onChanged(); return this; @@ -1188,8 +1247,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
@@ -1197,12 +1261,15 @@ public Builder setMessageIdBytes(
      * 
* * .google.protobuf.Timestamp publish_time = 4; + * * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return publishTimeBuilder_ != null || publishTime_ != null; } /** + * + * *
      * 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
@@ -1210,16 +1277,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
@@ -1242,6 +1314,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
@@ -1250,8 +1324,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();
         onChanged();
@@ -1262,6 +1335,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
@@ -1274,7 +1349,9 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
         if (publishTime_ != null) {
           publishTime_ =
-            com.google.protobuf.Timestamp.newBuilder(publishTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(publishTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           publishTime_ = value;
         }
@@ -1286,6 +1363,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
@@ -1306,6 +1385,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
@@ -1315,11 +1396,13 @@ public Builder clearPublishTime() {
      * .google.protobuf.Timestamp publish_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
-      
+
       onChanged();
       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
@@ -1332,11 +1415,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
@@ -1346,14 +1432,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_;
@@ -1361,6 +1450,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
 
     private java.lang.Object orderingKey_ = "";
     /**
+     *
+     *
      * 
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1371,13 +1462,13 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * string ordering_key = 5; + * * @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; @@ -1386,6 +1477,8 @@ public java.lang.String getOrderingKey() { } } /** + * + * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1396,15 +1489,14 @@ public java.lang.String getOrderingKey() {
      * 
* * string ordering_key = 5; + * * @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 { @@ -1412,6 +1504,8 @@ public java.lang.String getOrderingKey() { } } /** + * + * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1422,20 +1516,22 @@ public java.lang.String getOrderingKey() {
      * 
* * string ordering_key = 5; + * * @param value The orderingKey to set. * @return This builder for chaining. */ - public Builder setOrderingKey( - java.lang.String value) { + public Builder setOrderingKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderingKey_ = value; onChanged(); return this; } /** + * + * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1446,15 +1542,18 @@ public Builder setOrderingKey(
      * 
* * string ordering_key = 5; + * * @return This builder for chaining. */ public Builder clearOrderingKey() { - + orderingKey_ = getDefaultInstance().getOrderingKey(); onChanged(); return this; } /** + * + * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1465,23 +1564,23 @@ public Builder clearOrderingKey() {
      * 
* * string ordering_key = 5; + * * @param value The bytes for orderingKey to set. * @return This builder for chaining. */ - public Builder setOrderingKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderingKey_ = 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); } @@ -1491,12 +1590,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(); } @@ -1505,16 +1604,16 @@ 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 { - return new PubsubMessage(input, extensionRegistry); - } - }; + 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 { + return new PubsubMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1529,6 +1628,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 79% 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 7d3aaaf26..c06beec09 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,24 +1,45 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * The message data field. If this field is empty, the message must contain
    * at least one attribute.
    * 
* * bytes data = 1; + * * @return The data. */ com.google.protobuf.ByteString getData(); /** + * + * *
    * 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
@@ -29,6 +50,8 @@ public interface PubsubMessageOrBuilder extends
    */
   int getAttributesCount();
   /**
+   *
+   *
    * 
    * 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
@@ -37,15 +60,13 @@ public interface PubsubMessageOrBuilder extends
    *
    * map<string, string> attributes = 2;
    */
-  boolean containsAttributes(
-      java.lang.String key);
-  /**
-   * Use {@link #getAttributesMap()} instead.
-   */
+  boolean containsAttributes(java.lang.String key);
+  /** Use {@link #getAttributesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAttributes();
+  java.util.Map getAttributes();
   /**
+   *
+   *
    * 
    * 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
@@ -54,9 +75,10 @@ boolean containsAttributes(
    *
    * map<string, string> attributes = 2;
    */
-  java.util.Map
-  getAttributesMap();
+  java.util.Map getAttributesMap();
   /**
+   *
+   *
    * 
    * 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
@@ -67,11 +89,13 @@ boolean containsAttributes(
    */
 
   /* nullable */
-java.lang.String getAttributesOrDefault(
+  java.lang.String getAttributesOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * 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
@@ -80,11 +104,11 @@ java.lang.String getAttributesOrDefault(
    *
    * map<string, string> attributes = 2;
    */
-
-  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
@@ -93,10 +117,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
@@ -105,12 +132,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
@@ -118,10 +147,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
@@ -129,10 +161,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
@@ -144,6 +179,8 @@ java.lang.String getAttributesOrThrow(
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -154,10 +191,13 @@ java.lang.String getAttributesOrThrow(
    * 
* * string ordering_key = 5; + * * @return The orderingKey. */ java.lang.String getOrderingKey(); /** + * + * *
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -168,8 +208,8 @@ java.lang.String getAttributesOrThrow(
    * 
* * string ordering_key = 5; + * * @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..9875c7fe8 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -0,0 +1,1044 @@ +/* + * Copyright 2020 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 + +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_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_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_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\";\n\024MessageStoragePolicy\022#\n\033allowed_p" + + "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" + + "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" + + "gle.pubsub.v1.Encoding\"\303\003\n\005Topic\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" + + "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" + + "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" + + "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" + + "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." + + "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" + + "\022=\n\032message_retention_duration\030\010 \001(\0132\031.g" + + "oogle.protobuf.Duration\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pub" + + "sub.googleapis.com/Topic\022!projects/{proj" + + "ect}/topics/{topic}\022\017_deleted-topic_\"\361\001\n" + + "\rPubsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattribut" + + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" + + "e.AttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attribu" + + "tesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"E\n\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" + + "A\035\n\033pubsub.googleapis.com/Topic\"w\n\022Updat" + + "eTopicRequest\022+\n\005topic\030\001 \001(\0132\027.google.pu" + + "bsub.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\016Publ" + + "ishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + + "b.googleapis.com/Topic\0226\n\010messages\030\002 \003(\013" + + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"&" + + "\n\017PublishResponse\022\023\n\013message_ids\030\001 \003(\t\"\200" + + "\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB3\340" + + "A\002\372A-\n+cloudresourcemanager.googleapis.c" + + "om/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006topic" + + "s\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n\017next" + + "_page_token\030\002 \001(\t\"z\n\035ListTopicSubscripti" + + "onsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + + "b.googleapis.com/Topic\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListTopicSubscr" + + "iptionsResponse\022>\n\rsubscriptions\030\001 \003(\tB\'" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "\027\n\017next_page_token\030\002 \001(\t\"v\n\031ListTopicSna" + + "pshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032ListTopicSna" + + "pshotsResponse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"H\n\022DeleteTopicRequest" + + "\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleap" + + "is.com/Topic\"]\n\031DetachSubscriptionReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\"\034\n\032DetachSub" + + "scriptionResponse\"\260\006\n\014Subscription\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\0221\n\013push_config" + + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" + + "ack_deadline_seconds\030\005 \001(\005\022\035\n\025retain_ack" + + "ed_messages\030\007 \001(\010\022=\n\032message_retention_d" + + "uration\030\010 \001(\0132\031.google.protobuf.Duration" + + "\022:\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subs" + + "cription.LabelsEntry\022\037\n\027enable_message_o" + + "rdering\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\013" + + "2\".google.pubsub.v1.ExpirationPolicy\022\016\n\006" + + "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" + + "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" + + "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" + + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_ex" + + "actly_once_delivery\030\020 \001(\010\022H\n topic_messa" + + "ge_retention_duration\030\021 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub." + + "googleapis.com/Subscription\022/projects/{p" + + "roject}/subscriptions/{subscription}\"u\n\013" + + "RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\0222\n\017maximum_backo" + + "ff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020D" + + "eadLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001" + + "(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Exp" + + "irationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.prot" + + "obuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_end" + + "point\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google" + + ".pubsub.v1.PushConfig.AttributesEntry\022<\n" + + "\noidc_token\030\003 \001(\0132&.google.pubsub.v1.Pus" + + "hConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025serv" + + "ice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(" + + "\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"m\n" + + "\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007mess" + + "age\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessa" + + "ge\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSubsc" + + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" + + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" + + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscrip" + + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubscr" + + "iptions\030\001 \003(\0132\036.google.pubsub.v1.Subscri" + + "ption\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Delete" + + "SubscriptionRequest\022@\n\014subscription\030\001 \001(" + + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" + + "ption\"\223\001\n\027ModifyPushConfigRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\0226\n\013push_config\030\002 \001(\013" + + "2\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013" + + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" + + "$\n\"pubsub.googleapis.com/Subscription\022!\n" + + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_" + + "messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021r" + + "eceived_messages\030\001 \003(\0132!.google.pubsub.v" + + "1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlineR" + + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" + + "bsub.googleapis.com/Subscription\022\024\n\007ack_" + + "ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003" + + " \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"" + + "\251\002\n\024StreamingPullRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_de" + + "adline_seconds\030\003 \003(\005\022\037\n\027modify_deadline_" + + "ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_sec" + + "onds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030ma" + + "x_outstanding_messages\030\007 \001(\003\022\035\n\025max_outs" + + "tanding_bytes\030\010 \001(\003\"\262\005\n\025StreamingPullRes" + + "ponse\022<\n\021received_messages\030\001 \003(\0132!.googl" + + "e.pubsub.v1.ReceivedMessage\022a\n\030acknowled" + + "ge_confirmation\030\005 \001(\0132?.google.pubsub.v1" + + ".StreamingPullResponse.AcknowledgeConfir" + + "mation\022o\n modify_ack_deadline_confirmati" + + "on\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" + + "lResponse.ModifyAckDeadlineConfirmation\022" + + "_\n\027subscription_properties\030\004 \001(\0132>.googl" + + "e.pubsub.v1.StreamingPullResponse.Subscr" + + "iptionProperties\032j\n\027AcknowledgeConfirmat" + + "ion\022\023\n\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_" + + "ids\030\002 \003(\tB\002\010\001\022\035\n\021unordered_ack_ids\030\003 \003(\t" + + "B\002\010\001\032Q\n\035ModifyAckDeadlineConfirmation\022\023\n" + + "\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_ids\030\002 " + + "\003(\tB\002\010\001\032a\n\026SubscriptionProperties\022%\n\035exa" + + "ctly_once_delivery_enabled\030\001 \001(\010\022 \n\030mess" + + "age_ordering_enabled\030\002 \001(\010J\004\010\002\020\003\"\203\002\n\025Cre" + + "ateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A " + + "\n\036pubsub.googleapis.com/Snapshot\022@\n\014subs" + + "cription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\022C\n\006labels\030\003 \003(\01323.goo" + + "gle.pubsub.v1.CreateSnapshotRequest.Labe" + + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest" + + "\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sn" + + "apshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014" + + "\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub" + + ".googleapis.com/Topic\022/\n\013expire_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\0226\n\006labels" + + "\030\004 \003(\0132&.google.pubsub.v1.Snapshot.Label" + + "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" + + "m/Snapshot\022\'projects/{project}/snapshots" + + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" + + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" + + "om/Snapshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007" + + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + + "ger.googleapis.com/Project\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapsho" + + "tsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.google.p" + + "ubsub.v1.Snapshot\022\027\n\017next_page_token\030\002 \001" + + "(\t\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030" + + "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" + + "pshot\"\276\001\n\013SeekRequest\022@\n\014subscription\030\001 " + + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" + + "ription\022*\n\004time\030\002 \001(\0132\032.google.protobuf." + + "TimestampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubs" + + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" + + "\n\014SeekResponse2\243\013\n\tPublisher\022q\n\013CreateTo" + + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" + + "bsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=project" + + "s/*/topics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$" + + ".google.pubsub.v1.UpdateTopicRequest\032\027.g" + + "oogle.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topi" + + "c.name=projects/*/topics/*}:\001*\022\223\001\n\007Publi" + + "sh\022 .google.pubsub.v1.PublishRequest\032!.g" + + "oogle.pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"" + + "\'/v1/{topic=projects/*/topics/*}:publish" + + ":\001*\332A\016topic,messages\022w\n\010GetTopic\022!.googl" + + "e.pubsub.v1.GetTopicRequest\032\027.google.pub" + + "sub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{topic=project" + + "s/*/topics/*}\332A\005topic\022\212\001\n\nListTopics\022#.g" + + "oogle.pubsub.v1.ListTopicsRequest\032$.goog" + + "le.pubsub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022" + + "\037/v1/{project=projects/*}/topics\332A\007proje" + + "ct\022\272\001\n\026ListTopicSubscriptions\022/.google.p" + + "ubsub.v1.ListTopicSubscriptionsRequest\0320" + + ".google.pubsub.v1.ListTopicSubscriptions" + + "Response\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/" + + "topics/*}/subscriptions\332A\005topic\022\252\001\n\022List" + + "TopicSnapshots\022+.google.pubsub.v1.ListTo" + + "picSnapshotsRequest\032,.google.pubsub.v1.L" + + "istTopicSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{" + + "topic=projects/*/topics/*}/snapshots\332A\005t" + + "opic\022|\n\013DeleteTopic\022$.google.pubsub.v1.D" + + "eleteTopicRequest\032\026.google.protobuf.Empt" + + "y\"/\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" + + "*}\332A\005topic\022\255\001\n\022DetachSubscription\022+.goog" + + "le.pubsub.v1.DetachSubscriptionRequest\032," + + ".google.pubsub.v1.DetachSubscriptionResp" + + "onse\"<\202\323\344\223\0026\"4/v1/{subscription=projects" + + "/*/subscriptions/*}:detach\032p\312A\025pubsub.go" + + "ogleapis.com\322AUhttps://www.googleapis.co" + + "m/auth/cloud-platform,https://www.google" + + "apis.com/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022" + + "CreateSubscription\022\036.google.pubsub.v1.Su" + + "bscription\032\036.google.pubsub.v1.Subscripti" + + "on\"^\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" + + "ptions/*}:\001*\332A+name,topic,push_config,ac" + + "k_deadline_seconds\022\241\001\n\017GetSubscription\022(" + + ".google.pubsub.v1.GetSubscriptionRequest" + + "\032\036.google.pubsub.v1.Subscription\"D\202\323\344\223\002/" + + "\022-/v1/{subscription=projects/*/subscript" + + "ions/*}\332A\014subscription\022\240\001\n\022UpdateSubscri" + + "ption\022+.google.pubsub.v1.UpdateSubscript" + + "ionRequest\032\036.google.pubsub.v1.Subscripti" + + "on\"=\202\323\344\223\002722/v1/{subscription.name=proje" + + "cts/*/subscriptions/*}:\001*\022\246\001\n\021ListSubscr" + + "iptions\022*.google.pubsub.v1.ListSubscript" + + "ionsRequest\032+.google.pubsub.v1.ListSubsc" + + "riptionsResponse\"8\202\323\344\223\002(\022&/v1/{project=p" + + "rojects/*}/subscriptions\332A\007project\022\237\001\n\022D" + + "eleteSubscription\022+.google.pubsub.v1.Del" + + "eteSubscriptionRequest\032\026.google.protobuf" + + ".Empty\"D\202\323\344\223\002/*-/v1/{subscription=projec" + + "ts/*/subscriptions/*}\332A\014subscription\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.Mo" + + "difyAckDeadlineRequest\032\026.google.protobuf" + + ".Empty\"v\202\323\344\223\002D\"?/v1/{subscription=projec" + + "ts/*/subscriptions/*}:modifyAckDeadline:" + + "\001*\332A)subscription,ack_ids,ack_deadline_s" + + "econds\022\250\001\n\013Acknowledge\022$.google.pubsub.v" + + "1.AcknowledgeRequest\032\026.google.protobuf.E" + + "mpty\"[\202\323\344\223\002>\"9/v1/{subscription=projects" + + "/*/subscriptions/*}:acknowledge:\001*\332A\024sub" + + "scription,ack_ids\022\320\001\n\004Pull\022\035.google.pubs" + + "ub.v1.PullRequest\032\036.google.pubsub.v1.Pul" + + "lResponse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:pull:\001*\332A,subs" + + "cription,return_immediately,max_messages" + + "\332A\031subscription,max_messages\022f\n\rStreamin" + + "gPull\022&.google.pubsub.v1.StreamingPullRe" + + "quest\032\'.google.pubsub.v1.StreamingPullRe" + + "sponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).goog" + + "le.pubsub.v1.ModifyPushConfigRequest\032\026.g" + + "oogle.protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subsc" + + "ription=projects/*/subscriptions/*}:modi" + + "fyPushConfig:\001*\332A\030subscription,push_conf" + + "ig\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1.Ge" + + "tSnapshotRequest\032\032.google.pubsub.v1.Snap" + + "shot\"8\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/s" + + "napshots/*}\332A\010snapshot\022\226\001\n\rListSnapshots" + + "\022&.google.pubsub.v1.ListSnapshotsRequest" + + "\032\'.google.pubsub.v1.ListSnapshotsRespons" + + "e\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" + + "shots\332A\007project\022\227\001\n\016CreateSnapshot\022\'.goo" + + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" + + "ogle.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{na" + + "me=projects/*/snapshots/*}:\001*\332A\021name,sub" + + "scription\022\214\001\n\016UpdateSnapshot\022\'.google.pu" + + "bsub.v1.UpdateSnapshotRequest\032\032.google.p" + + "ubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot" + + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" + + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" + + "pshotRequest\032\026.google.protobuf.Empty\"8\202\323" + + "\344\223\002\'*%/v1/{snapshot=projects/*/snapshots" + + "/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubsub." + + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" + + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" + + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" + + ".googleapis.com\322AUhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/pubsubB\256\001\n\024com.google.p" + + "ubsub.v1B\013PubsubProtoP\001Z6google.golang.o" + + "rg/genproto/googleapis/pubsub/v1;pubsub\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", + }); + 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", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(2); + 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", + }); + 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(3); + 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(4); + 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(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(10); + 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(11); + 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(12); + 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(13); + 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(14); + 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(15); + 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(16); + 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(17); + 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", + "AckDeadlineSeconds", + "RetainAckedMessages", + "MessageRetentionDuration", + "Labels", + "EnableMessageOrdering", + "ExpirationPolicy", + "Filter", + "DeadLetterPolicy", + "RetryPolicy", + "Detached", + "EnableExactlyOnceDelivery", + "TopicMessageRetentionDuration", + }); + 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(18); + 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(19); + 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(20); + 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(21); + 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", "AuthenticationMethod", + }); + 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_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); + 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_ReceivedMessage_descriptor = + getDescriptor().getMessageTypes().get(22); + 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(23); + 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(24); + 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(25); + 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(26); + 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(27); + 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(28); + 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(29); + 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(30); + 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(31); + 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(32); + 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(33); + 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(34); + 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", + }); + 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", + }); + 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(35); + 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(36); + 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(37); + 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(38); + 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(39); + 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(40); + 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(41); + 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(42); + 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(43); + 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 69% 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 360d03fbb..81ff04645 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PullRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,29 +70,30 @@ private PullRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 16: { - - returnImmediately_ = input.readBool(); - break; - } - case 24: { - - maxMessages_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subscription_ = s; + break; + } + case 16: + { + returnImmediately_ = input.readBool(); + break; + } + case 24: + { + maxMessages_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,22 +101,22 @@ private PullRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } @@ -106,12 +124,17 @@ private PullRequest( public static final int SUBSCRIPTION_FIELD_NUMBER = 1; 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 @@ -120,30 +143,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 { @@ -154,6 +179,8 @@ public java.lang.String getSubscription() { public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2; 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`
@@ -164,19 +191,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=1035 + * 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=1035 * @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_; /** + * + * *
    * 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
@@ -184,6 +216,7 @@ public java.lang.String getSubscription() {
    * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxMessages. */ @java.lang.Override @@ -192,6 +225,7 @@ public int getMaxMessages() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +237,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_); } @@ -227,12 +260,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,19 +273,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,8 +297,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) + unknownFields.hashCode(); @@ -278,118 +305,126 @@ 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() @@ -397,16 +432,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +454,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 @@ -453,38 +487,39 @@ public com.google.pubsub.v1.PullRequest 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.PullRequest) { - return mergeFrom((com.google.pubsub.v1.PullRequest)other); + return mergeFrom((com.google.pubsub.v1.PullRequest) other); } else { super.mergeFrom(other); return this; @@ -534,19 +569,23 @@ public Builder mergeFrom( 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; @@ -555,21 +594,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 { @@ -577,64 +619,79 @@ 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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); 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`
@@ -645,16 +702,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=1035 + * + * 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=1035 * @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`
@@ -665,19 +728,25 @@ 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=1035 + * + * 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=1035 * @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; onChanged(); 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`
@@ -688,20 +757,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=1035 + * + * 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=1035 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearReturnImmediately() { - + @java.lang.Deprecated + public Builder clearReturnImmediately() { + 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
@@ -709,6 +784,7 @@ public Builder setSubscriptionBytes(
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxMessages. */ @java.lang.Override @@ -716,6 +792,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
@@ -723,16 +801,19 @@ public int getMaxMessages() {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The maxMessages to set. * @return This builder for chaining. */ public Builder setMaxMessages(int value) { - + maxMessages_ = value; onChanged(); 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
@@ -740,17 +821,18 @@ public Builder setMaxMessages(int value) {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMaxMessages() { - + maxMessages_ = 0; 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); } @@ -760,12 +842,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(); } @@ -774,16 +856,16 @@ 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 { - return new PullRequest(input, extensionRegistry); - } - }; + 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 { + return new PullRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -798,6 +880,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 cfdf30e66..962ab3955 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,35 +1,62 @@ +/* + * Copyright 2020 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 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`
@@ -40,14 +67,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=1035 + * 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=1035 * @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
@@ -55,6 +87,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 78% 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 9c7d2825a..f0482b4c3 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PullResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private PullResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - receivedMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + receivedMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + receivedMessages_.add( + input.readMessage( + com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); + break; } - receivedMessages_.add( - input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private PullResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); @@ -87,22 +105,27 @@ private PullResponse( makeExtensionsImmutable(); } } - 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; private java.util.List receivedMessages_; /** + * + * *
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -117,6 +140,8 @@ public java.util.List getReceivedMessagesL
     return receivedMessages_;
   }
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -127,11 +152,13 @@ public java.util.List getReceivedMessagesL
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getReceivedMessagesOrBuilderList() {
     return receivedMessages_;
   }
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -146,6 +173,8 @@ public int getReceivedMessagesCount() {
     return receivedMessages_.size();
   }
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -160,6 +189,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
     return receivedMessages_.get(index);
   }
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -170,12 +201,12 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
   @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;
@@ -187,8 +218,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));
     }
@@ -202,8 +232,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -213,15 +242,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -242,118 +270,126 @@ 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() @@ -361,17 +397,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) { getReceivedMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -385,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_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 @@ -425,38 +461,39 @@ public com.google.pubsub.v1.PullResponse 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.PullResponse) { - return mergeFrom((com.google.pubsub.v1.PullResponse)other); + return mergeFrom((com.google.pubsub.v1.PullResponse) other); } else { super.mergeFrom(other); return this; @@ -483,9 +520,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_); } @@ -519,21 +557,29 @@ public Builder mergeFrom( } 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_; /** + * + * *
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -551,6 +597,8 @@ public java.util.List getReceivedMessagesL
       }
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -568,6 +616,8 @@ public int getReceivedMessagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -585,6 +635,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -594,8 +646,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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();
@@ -609,6 +660,8 @@ public Builder setReceivedMessages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -630,6 +683,8 @@ public Builder setReceivedMessages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -653,6 +708,8 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -662,8 +719,7 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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();
@@ -677,6 +733,8 @@ public Builder addReceivedMessages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -698,6 +756,8 @@ public Builder addReceivedMessages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -719,6 +779,8 @@ public Builder addReceivedMessages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -732,8 +794,7 @@ 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);
@@ -741,6 +802,8 @@ public Builder addAllReceivedMessages(
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -761,6 +824,8 @@ public Builder clearReceivedMessages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -781,6 +846,8 @@ public Builder removeReceivedMessages(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -790,11 +857,12 @@ public Builder removeReceivedMessages(int index) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(
-        int index) {
+    public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) {
       return getReceivedMessagesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -804,14 +872,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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);
       }
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -821,8 +891,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public java.util.List 
-         getReceivedMessagesOrBuilderList() {
+    public java.util.List
+        getReceivedMessagesOrBuilderList() {
       if (receivedMessagesBuilder_ != null) {
         return receivedMessagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -830,6 +900,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -840,10 +912,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
     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());
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -853,12 +927,13 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder()
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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());
     }
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -868,16 +943,22 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    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 +967,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 +979,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,16 +993,16 @@ 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 {
-      return new PullResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new PullResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -936,6 +1017,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 76%
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 b03221915..f7843870e 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,13 +1,31 @@
+/*
+ * Copyright 2020 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
 
 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 {
 
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -17,9 +35,10 @@ public interface PullResponseOrBuilder extends
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  java.util.List 
-      getReceivedMessagesList();
+  java.util.List getReceivedMessagesList();
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -31,6 +50,8 @@ public interface PullResponseOrBuilder extends
    */
   com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index);
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -42,6 +63,8 @@ public interface PullResponseOrBuilder extends
    */
   int getReceivedMessagesCount();
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -51,9 +74,11 @@ public interface PullResponseOrBuilder extends
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  java.util.List 
+  java.util.List
       getReceivedMessagesOrBuilderList();
   /**
+   *
+   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -63,6 +88,5 @@ public interface PullResponseOrBuilder extends
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  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 76%
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 1135a6322..c551db41d 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,40 +1,57 @@
+/*
+ * Copyright 2020 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
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PushConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,46 +71,53 @@ private PushConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pushEndpoint_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + pushEndpoint_ = s; + break; } - com.google.protobuf.MapEntry - attributes__ = input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - attributes_.getMutableMap().put( - attributes__.getKey(), attributes__.getValue()); - break; - } - case 26: { - com.google.pubsub.v1.PushConfig.OidcToken.Builder subBuilder = null; - if (authenticationMethodCase_ == 3) { - subBuilder = ((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_).toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attributes_ = + com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue()); + break; } - authenticationMethod_ = - input.readMessage(com.google.pubsub.v1.PushConfig.OidcToken.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); - authenticationMethod_ = subBuilder.buildPartial(); + case 26: + { + com.google.pubsub.v1.PushConfig.OidcToken.Builder subBuilder = null; + if (authenticationMethodCase_ == 3) { + subBuilder = + ((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_).toBuilder(); + } + authenticationMethod_ = + input.readMessage( + com.google.pubsub.v1.PushConfig.OidcToken.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); + authenticationMethod_ = subBuilder.buildPartial(); + } + authenticationMethodCase_ = 3; + break; } - authenticationMethodCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,43 +125,45 @@ private PushConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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 { /** + * + * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -147,10 +173,13 @@ public interface OidcTokenOrBuilder extends
      * 
* * string service_account_email = 1; + * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** + * + * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -160,12 +189,14 @@ public interface OidcTokenOrBuilder extends
      * 
* * string service_account_email = 1; + * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString - getServiceAccountEmailBytes(); + com.google.protobuf.ByteString getServiceAccountEmailBytes(); /** + * + * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -176,10 +207,13 @@ public interface OidcTokenOrBuilder extends
      * 
* * string audience = 2; + * * @return The audience. */ java.lang.String getAudience(); /** + * + * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -190,12 +224,14 @@ public interface OidcTokenOrBuilder extends
      * 
* * string audience = 2; + * * @return The bytes for audience. */ - com.google.protobuf.ByteString - getAudienceBytes(); + com.google.protobuf.ByteString getAudienceBytes(); } /** + * + * *
    * Contains information needed for generating an
    * [OpenID Connect
@@ -204,15 +240,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_ = "";
@@ -220,16 +257,15 @@ private OidcToken() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new OidcToken();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private OidcToken(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -248,25 +284,27 @@ private OidcToken(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              serviceAccountEmail_ = s;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+                serviceAccountEmail_ = s;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              audience_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                audience_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -274,29 +312,33 @@ private OidcToken(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    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;
     private volatile java.lang.Object serviceAccountEmail_;
     /**
+     *
+     *
      * 
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -306,6 +348,7 @@ private OidcToken(
      * 
* * string service_account_email = 1; + * * @return The serviceAccountEmail. */ @java.lang.Override @@ -314,14 +357,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; } } /** + * + * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -331,16 +375,15 @@ public java.lang.String getServiceAccountEmail() {
      * 
* * string service_account_email = 1; + * * @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 { @@ -351,6 +394,8 @@ public java.lang.String getServiceAccountEmail() { public static final int AUDIENCE_FIELD_NUMBER = 2; private volatile java.lang.Object audience_; /** + * + * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -361,6 +406,7 @@ public java.lang.String getServiceAccountEmail() {
      * 
* * string audience = 2; + * * @return The audience. */ @java.lang.Override @@ -369,14 +415,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; } } /** + * + * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -387,16 +434,15 @@ public java.lang.String getAudience() {
      * 
* * string audience = 2; + * * @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 { @@ -405,6 +451,7 @@ public java.lang.String getAudience() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -416,8 +463,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_); } @@ -447,17 +493,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -478,88 +523,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 @@ -569,6 +620,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Contains information needed for generating an
      * [OpenID Connect
@@ -577,21 +630,24 @@ 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()
@@ -599,16 +655,15 @@ 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) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -620,9 +675,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
@@ -641,7 +696,8 @@ 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);
+        com.google.pubsub.v1.PushConfig.OidcToken result =
+            new com.google.pubsub.v1.PushConfig.OidcToken(this);
         result.serviceAccountEmail_ = serviceAccountEmail_;
         result.audience_ = audience_;
         onBuilt();
@@ -652,38 +708,41 @@ public com.google.pubsub.v1.PushConfig.OidcToken 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.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;
@@ -731,6 +790,8 @@ public Builder mergeFrom(
 
       private java.lang.Object serviceAccountEmail_ = "";
       /**
+       *
+       *
        * 
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -740,13 +801,13 @@ public Builder mergeFrom(
        * 
* * string service_account_email = 1; + * * @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; @@ -755,6 +816,8 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -764,15 +827,14 @@ public java.lang.String getServiceAccountEmail() {
        * 
* * string service_account_email = 1; + * * @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 { @@ -780,6 +842,8 @@ public java.lang.String getServiceAccountEmail() { } } /** + * + * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -789,20 +853,22 @@ public java.lang.String getServiceAccountEmail() {
        * 
* * string service_account_email = 1; + * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail( - java.lang.String value) { + public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -812,15 +878,18 @@ public Builder setServiceAccountEmail(
        * 
* * string service_account_email = 1; + * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** + * + * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -830,16 +899,16 @@ public Builder clearServiceAccountEmail() {
        * 
* * string service_account_email = 1; + * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -847,6 +916,8 @@ public Builder setServiceAccountEmailBytes( private java.lang.Object audience_ = ""; /** + * + * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -857,13 +928,13 @@ public Builder setServiceAccountEmailBytes(
        * 
* * string audience = 2; + * * @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; @@ -872,6 +943,8 @@ public java.lang.String getAudience() { } } /** + * + * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -882,15 +955,14 @@ public java.lang.String getAudience() {
        * 
* * string audience = 2; + * * @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 { @@ -898,6 +970,8 @@ public java.lang.String getAudience() { } } /** + * + * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -908,20 +982,22 @@ public java.lang.String getAudience() {
        * 
* * string audience = 2; + * * @param value The audience to set. * @return This builder for chaining. */ - public Builder setAudience( - java.lang.String value) { + public Builder setAudience(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audience_ = value; onChanged(); return this; } /** + * + * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -932,15 +1008,18 @@ public Builder setAudience(
        * 
* * string audience = 2; + * * @return This builder for chaining. */ public Builder clearAudience() { - + audience_ = getDefaultInstance().getAudience(); onChanged(); return this; } /** + * + * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -951,20 +1030,21 @@ public Builder clearAudience() {
        * 
* * string audience = 2; + * * @param value The bytes for audience to set. * @return This builder for chaining. */ - public Builder setAudienceBytes( - com.google.protobuf.ByteString value) { + public Builder setAudienceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audience_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -977,12 +1057,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(); } @@ -991,16 +1071,16 @@ 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 { - return new OidcToken(input, extensionRegistry); - } - }; + 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 { + return new OidcToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1015,17 +1095,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int authenticationMethodCase_ = 0; 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; } @@ -1041,31 +1123,36 @@ 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_); } public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object pushEndpoint_; /** + * + * *
    * 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; + * * @return The pushEndpoint. */ @java.lang.Override @@ -1074,30 +1161,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; } } /** + * + * *
    * 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; + * * @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 { @@ -1106,24 +1193,23 @@ 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, + ""); } - 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_; } @@ -1132,6 +1218,8 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1153,22 +1241,22 @@ public int getAttributesCount() {
    *
    * map<string, string> attributes = 2;
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1191,11 +1279,12 @@ public java.util.Map getAttributes() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
-
   public java.util.Map getAttributesMap() {
     return internalGetAttributes().getMap();
   }
   /**
+   *
+   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1218,16 +1307,17 @@ public java.util.Map getAttributesMap() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
-
   public java.lang.String getAttributesOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAttributes().getMap();
+      java.lang.String key, 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;
   }
   /**
+   *
+   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1250,12 +1340,11 @@ public java.lang.String getAttributesOrDefault(
    * map<string, string> attributes = 2;
    */
   @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();
     }
@@ -1264,12 +1353,15 @@ public java.lang.String getAttributesOrThrow(
 
   public static final int OIDC_TOKEN_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * 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; + * * @return Whether the oidcToken field is set. */ @java.lang.Override @@ -1277,22 +1369,27 @@ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } /** + * + * *
    * 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; + * * @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(); } /** + * + * *
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
@@ -1303,12 +1400,13 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() {
   @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();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1320,17 +1418,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_);
     }
@@ -1346,19 +1439,20 @@ 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_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1368,22 +1462,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:
@@ -1418,138 +1509,143 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { 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); } @@ -1559,16 +1655,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1581,9 +1676,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 @@ -1623,38 +1718,39 @@ public com.google.pubsub.v1.PushConfig 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.PushConfig) { - return mergeFrom((com.google.pubsub.v1.PushConfig)other); + return mergeFrom((com.google.pubsub.v1.PushConfig) other); } else { super.mergeFrom(other); return this; @@ -1667,16 +1763,17 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { pushEndpoint_ = other.pushEndpoint_; onChanged(); } - internalGetMutableAttributes().mergeFrom( - other.internalGetAttributes()); + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); 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; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1706,12 +1803,12 @@ public Builder mergeFrom( } 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() { @@ -1725,19 +1822,21 @@ public Builder clearAuthenticationMethod() { private java.lang.Object pushEndpoint_ = ""; /** + * + * *
      * 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; + * * @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; @@ -1746,21 +1845,22 @@ public java.lang.String getPushEndpoint() { } } /** + * + * *
      * 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; + * * @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 { @@ -1768,78 +1868,87 @@ public java.lang.String getPushEndpoint() { } } /** + * + * *
      * 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; + * * @param value The pushEndpoint to set. * @return This builder for chaining. */ - public Builder setPushEndpoint( - java.lang.String value) { + public Builder setPushEndpoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pushEndpoint_ = value; onChanged(); return this; } /** + * + * *
      * 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; + * * @return This builder for chaining. */ public Builder clearPushEndpoint() { - + pushEndpoint_ = getDefaultInstance().getPushEndpoint(); onChanged(); return this; } /** + * + * *
      * 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; + * * @param value The bytes for pushEndpoint to set. * @return This builder for chaining. */ - public Builder setPushEndpointBytes( - com.google.protobuf.ByteString value) { + public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pushEndpoint_ = value; onChanged(); 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() { + internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } + private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged();; + internalGetMutableAttributes() { + onChanged(); + ; 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(); @@ -1851,6 +1960,8 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** + * + * *
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -1872,22 +1983,22 @@ public int getAttributesCount() {
      *
      * map<string, string> attributes = 2;
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -1910,11 +2021,12 @@ public java.util.Map getAttributes() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
-
     public java.util.Map getAttributesMap() {
       return internalGetAttributes().getMap();
     }
     /**
+     *
+     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -1937,16 +2049,17 @@ public java.util.Map getAttributesMap() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
-
     public java.lang.String getAttributesOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAttributes().getMap();
+        java.lang.String key, 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;
     }
     /**
+     *
+     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -1969,12 +2082,11 @@ public java.lang.String getAttributesOrDefault(
      * map<string, string> attributes = 2;
      */
     @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();
       }
@@ -1982,11 +2094,12 @@ public java.lang.String getAttributesOrThrow(
     }
 
     public Builder clearAttributes() {
-      internalGetMutableAttributes().getMutableMap()
-          .clear();
+      internalGetMutableAttributes().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2008,23 +2121,21 @@ public Builder clearAttributes() {
      *
      * map<string, string> attributes = 2;
      */
-
-    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() {
       return internalGetMutableAttributes().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2046,19 +2157,20 @@ public Builder removeAttributes(
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAttributes(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableAttributes().getMutableMap()
-          .put(key, value);
+      internalGetMutableAttributes().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2080,23 +2192,26 @@ public Builder putAttributes(
      *
      * map<string, string> attributes = 2;
      */
-
-    public Builder putAllAttributes(
-        java.util.Map values) {
-      internalGetMutableAttributes().getMutableMap()
-          .putAll(values);
+    public Builder putAllAttributes(java.util.Map values) {
+      internalGetMutableAttributes().getMutableMap().putAll(values);
       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_;
     /**
+     *
+     *
      * 
      * 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; + * * @return Whether the oidcToken field is set. */ @java.lang.Override @@ -2104,12 +2219,15 @@ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } /** + * + * *
      * 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; + * * @return The oidcToken. */ @java.lang.Override @@ -2127,6 +2245,8 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { } } /** + * + * *
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2148,6 +2268,8 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2155,8 +2277,7 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
      *
      * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;
      */
-    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();
@@ -2167,6 +2288,8 @@ public Builder setOidcToken(
       return this;
     }
     /**
+     *
+     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2176,10 +2299,14 @@ public Builder setOidcToken(
      */
     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;
         }
@@ -2195,6 +2322,8 @@ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2219,6 +2348,8 @@ public Builder clearOidcToken() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2230,6 +2361,8 @@ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() {
       return getOidcTokenFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2249,6 +2382,8 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2257,26 +2392,32 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(
      * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;
      */
     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());
         authenticationMethod_ = null;
       }
       authenticationMethodCase_ = 3;
-      onChanged();;
+      onChanged();
+      ;
       return oidcTokenBuilder_;
     }
+
     @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);
     }
 
@@ -2286,12 +2427,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();
   }
@@ -2300,16 +2441,16 @@ 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 {
-      return new PushConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new PushConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2324,6 +2465,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 86%
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 7c8148f2e..6499b5346 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,35 +1,58 @@
+/*
+ * Copyright 2020 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
 
 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 {
 
   /**
+   *
+   *
    * 
    * 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; + * * @return The pushEndpoint. */ java.lang.String getPushEndpoint(); /** + * + * *
    * 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; + * * @return The bytes for pushEndpoint. */ - com.google.protobuf.ByteString - getPushEndpointBytes(); + com.google.protobuf.ByteString getPushEndpointBytes(); /** + * + * *
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -53,6 +76,8 @@ public interface PushConfigOrBuilder extends
    */
   int getAttributesCount();
   /**
+   *
+   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -74,15 +99,13 @@ public interface PushConfigOrBuilder extends
    *
    * map<string, string> attributes = 2;
    */
-  boolean containsAttributes(
-      java.lang.String key);
-  /**
-   * Use {@link #getAttributesMap()} instead.
-   */
+  boolean containsAttributes(java.lang.String key);
+  /** Use {@link #getAttributesMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAttributes();
+  java.util.Map getAttributes();
   /**
+   *
+   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -104,9 +127,10 @@ boolean containsAttributes(
    *
    * map<string, string> attributes = 2;
    */
-  java.util.Map
-  getAttributesMap();
+  java.util.Map getAttributesMap();
   /**
+   *
+   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -130,11 +154,13 @@ boolean containsAttributes(
    */
 
   /* nullable */
-java.lang.String getAttributesOrDefault(
+  java.lang.String getAttributesOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -156,31 +182,37 @@ java.lang.String getAttributesOrDefault(
    *
    * map<string, string> attributes = 2;
    */
-
-  java.lang.String getAttributesOrThrow(
-      java.lang.String key);
+  java.lang.String getAttributesOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * 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; + * * @return Whether the oidcToken field is set. */ boolean hasOidcToken(); /** + * + * *
    * 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; + * * @return The oidcToken. */ com.google.pubsub.v1.PushConfig.OidcToken getOidcToken(); /** + * + * *
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
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 73%
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 62c9eec3d..7145c9e05 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,40 +1,57 @@
+/*
+ * Copyright 2020 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
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReceivedMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,37 +70,40 @@ private ReceivedMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - ackId_ = s; - break; - } - case 18: { - com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; - if (message_ != null) { - subBuilder = message_.toBuilder(); + ackId_ = s; + break; } - message_ = input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { + case 18: + { + com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); + } + message_ = + input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); + } - deliveryAttempt_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + case 24: + { + deliveryAttempt_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,34 +111,39 @@ private ReceivedMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } public static final int ACK_ID_FIELD_NUMBER = 1; private volatile java.lang.Object ackId_; /** + * + * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; + * * @return The ackId. */ @java.lang.Override @@ -127,29 +152,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; } } /** + * + * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; + * * @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 { @@ -160,11 +185,14 @@ public java.lang.String getAckId() { public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.pubsub.v1.PubsubMessage message_; /** + * + * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; + * * @return Whether the message field is set. */ @java.lang.Override @@ -172,11 +200,14 @@ public boolean hasMessage() { return message_ != null; } /** + * + * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; + * * @return The message. */ @java.lang.Override @@ -184,6 +215,8 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } /** + * + * *
    * The message.
    * 
@@ -198,6 +231,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 3; private int deliveryAttempt_; /** + * + * *
    * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    * the associated message to a subscriber.
@@ -214,6 +249,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
    * 
* * int32 delivery_attempt = 3; + * * @return The deliveryAttempt. */ @java.lang.Override @@ -222,6 +258,7 @@ public int getDeliveryAttempt() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +270,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_); } @@ -257,12 +293,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); } if (message_ != null) { - 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -272,22 +306,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -312,118 +343,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() @@ -431,16 +470,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +496,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 @@ -495,38 +533,39 @@ public com.google.pubsub.v1.ReceivedMessage 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.ReceivedMessage) { - return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); + return mergeFrom((com.google.pubsub.v1.ReceivedMessage) other); } else { super.mergeFrom(other); return this; @@ -576,18 +615,20 @@ public Builder mergeFrom( private java.lang.Object ackId_ = ""; /** + * + * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; + * * @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; @@ -596,20 +637,21 @@ public java.lang.String getAckId() { } } /** + * + * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; + * * @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 { @@ -617,54 +659,61 @@ public java.lang.String getAckId() { } } /** + * + * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; + * * @param value The ackId to set. * @return This builder for chaining. */ - public Builder setAckId( - java.lang.String value) { + public Builder setAckId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ackId_ = value; onChanged(); return this; } /** + * + * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; + * * @return This builder for chaining. */ public Builder clearAckId() { - + ackId_ = getDefaultInstance().getAckId(); onChanged(); return this; } /** + * + * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; + * * @param value The bytes for ackId to set. * @return This builder for chaining. */ - public Builder setAckIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAckIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ackId_ = value; onChanged(); return this; @@ -672,34 +721,47 @@ 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_; /** + * + * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; + * * @return Whether the message field is set. */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** + * + * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; + * * @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(); } } /** + * + * *
      * The message.
      * 
@@ -720,14 +782,15 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** + * + * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; */ - 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(); onChanged(); @@ -738,6 +801,8 @@ public Builder setMessage( return this; } /** + * + * *
      * The message.
      * 
@@ -748,7 +813,9 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = - com.google.pubsub.v1.PubsubMessage.newBuilder(message_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.PubsubMessage.newBuilder(message_) + .mergeFrom(value) + .buildPartial(); } else { message_ = value; } @@ -760,6 +827,8 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** + * + * *
      * The message.
      * 
@@ -778,6 +847,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * The message.
      * 
@@ -785,11 +856,13 @@ public Builder clearMessage() { * .google.pubsub.v1.PubsubMessage message = 2; */ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { - + onChanged(); return getMessageFieldBuilder().getBuilder(); } /** + * + * *
      * The message.
      * 
@@ -800,11 +873,14 @@ 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_; } } /** + * + * *
      * The message.
      * 
@@ -812,21 +888,26 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * .google.pubsub.v1.PubsubMessage message = 2; */ 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_; /** + * + * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -843,6 +924,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
      * 
* * int32 delivery_attempt = 3; + * * @return The deliveryAttempt. */ @java.lang.Override @@ -850,6 +932,8 @@ public int getDeliveryAttempt() { return deliveryAttempt_; } /** + * + * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -866,16 +950,19 @@ public int getDeliveryAttempt() {
      * 
* * int32 delivery_attempt = 3; + * * @param value The deliveryAttempt to set. * @return This builder for chaining. */ public Builder setDeliveryAttempt(int value) { - + deliveryAttempt_ = value; onChanged(); return this; } /** + * + * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -892,17 +979,18 @@ public Builder setDeliveryAttempt(int value) {
      * 
* * int32 delivery_attempt = 3; + * * @return This builder for chaining. */ public Builder clearDeliveryAttempt() { - + deliveryAttempt_ = 0; 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); } @@ -912,12 +1000,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(); } @@ -926,16 +1014,16 @@ 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 { - return new ReceivedMessage(input, extensionRegistry); - } - }; + 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 { + return new ReceivedMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1038,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 73% 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 8c5237cf3..805690b39 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,51 +1,80 @@ +/* + * Copyright 2020 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 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 { /** + * + * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; + * * @return The ackId. */ java.lang.String getAckId(); /** + * + * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; + * * @return The bytes for ackId. */ - com.google.protobuf.ByteString - getAckIdBytes(); + com.google.protobuf.ByteString getAckIdBytes(); /** + * + * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; + * * @return Whether the message field is set. */ boolean hasMessage(); /** + * + * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; + * * @return The message. */ com.google.pubsub.v1.PubsubMessage getMessage(); /** + * + * *
    * The message.
    * 
@@ -55,6 +84,8 @@ public interface ReceivedMessageOrBuilder extends com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder(); /** + * + * *
    * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    * the associated message to a subscriber.
@@ -71,6 +102,7 @@ public interface ReceivedMessageOrBuilder extends
    * 
* * int32 delivery_attempt = 3; + * * @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 73% 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 a25308e52..51f5b8e47 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,9 +1,26 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; /** + * + * *
  * A policy that specifies how Cloud Pub/Sub retries message delivery.
  * Retry delay will be exponential based on provided minimum and maximum
@@ -17,30 +34,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RetryPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,39 +75,43 @@ private RetryPolicy(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (minimumBackoff_ != null) {
-              subBuilder = minimumBackoff_.toBuilder();
-            }
-            minimumBackoff_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(minimumBackoff_);
-              minimumBackoff_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (minimumBackoff_ != null) {
+                subBuilder = minimumBackoff_.toBuilder();
+              }
+              minimumBackoff_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(minimumBackoff_);
+                minimumBackoff_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (maximumBackoff_ != null) {
-              subBuilder = maximumBackoff_.toBuilder();
-            }
-            maximumBackoff_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(maximumBackoff_);
-              maximumBackoff_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (maximumBackoff_ != null) {
+                subBuilder = maximumBackoff_.toBuilder();
+              }
+              maximumBackoff_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(maximumBackoff_);
+                maximumBackoff_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -99,22 +119,22 @@ private RetryPolicy(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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);
   }
@@ -122,12 +142,15 @@ private RetryPolicy(
   public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration minimumBackoff_;
   /**
+   *
+   *
    * 
    * 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; + * * @return Whether the minimumBackoff field is set. */ @java.lang.Override @@ -135,19 +158,26 @@ public boolean hasMinimumBackoff() { return minimumBackoff_ != null; } /** + * + * *
    * 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; + * * @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_; } /** + * + * *
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -163,12 +193,15 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
   public static final int MAXIMUM_BACKOFF_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration maximumBackoff_;
   /**
+   *
+   *
    * 
    * 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; + * * @return Whether the maximumBackoff field is set. */ @java.lang.Override @@ -176,19 +209,26 @@ public boolean hasMaximumBackoff() { return maximumBackoff_ != null; } /** + * + * *
    * 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; + * * @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_; } /** + * + * *
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -202,6 +242,7 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -213,8 +254,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 (minimumBackoff_ != null) {
       output.writeMessage(1, getMinimumBackoff());
     }
@@ -231,12 +271,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (minimumBackoff_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getMinimumBackoff());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinimumBackoff());
     }
     if (maximumBackoff_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getMaximumBackoff());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumBackoff());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -246,7 +284,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);
@@ -255,13 +293,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -287,97 +323,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 Cloud Pub/Sub retries message delivery.
    * Retry delay will be exponential based on provided minimum and maximum
@@ -391,21 +433,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()
@@ -413,16 +457,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,9 +485,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
@@ -482,38 +525,39 @@ public com.google.pubsub.v1.RetryPolicy 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.RetryPolicy) {
-        return mergeFrom((com.google.pubsub.v1.RetryPolicy)other);
+        return mergeFrom((com.google.pubsub.v1.RetryPolicy) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -559,36 +603,49 @@ public Builder mergeFrom(
 
     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_;
     /**
+     *
+     *
      * 
      * 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; + * * @return Whether the minimumBackoff field is set. */ public boolean hasMinimumBackoff() { return minimumBackoffBuilder_ != null || minimumBackoff_ != null; } /** + * + * *
      * 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; + * * @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(); } } /** + * + * *
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -610,6 +667,8 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -617,8 +676,7 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration minimum_backoff = 1;
      */
-    public Builder setMinimumBackoff(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) {
       if (minimumBackoffBuilder_ == null) {
         minimumBackoff_ = builderForValue.build();
         onChanged();
@@ -629,6 +687,8 @@ public Builder setMinimumBackoff(
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -640,7 +700,9 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) {
       if (minimumBackoffBuilder_ == null) {
         if (minimumBackoff_ != null) {
           minimumBackoff_ =
-            com.google.protobuf.Duration.newBuilder(minimumBackoff_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(minimumBackoff_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           minimumBackoff_ = value;
         }
@@ -652,6 +714,8 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -671,6 +735,8 @@ public Builder clearMinimumBackoff() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -679,11 +745,13 @@ public Builder clearMinimumBackoff() {
      * .google.protobuf.Duration minimum_backoff = 1;
      */
     public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() {
-      
+
       onChanged();
       return getMinimumBackoffFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -695,11 +763,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -708,14 +779,17 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
      * .google.protobuf.Duration minimum_backoff = 1;
      */
     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_;
@@ -723,36 +797,49 @@ 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_;
     /**
+     *
+     *
      * 
      * 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; + * * @return Whether the maximumBackoff field is set. */ public boolean hasMaximumBackoff() { return maximumBackoffBuilder_ != null || maximumBackoff_ != null; } /** + * + * *
      * 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; + * * @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(); } } /** + * + * *
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -774,6 +861,8 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -781,8 +870,7 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration maximum_backoff = 2;
      */
-    public Builder setMaximumBackoff(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) {
       if (maximumBackoffBuilder_ == null) {
         maximumBackoff_ = builderForValue.build();
         onChanged();
@@ -793,6 +881,8 @@ public Builder setMaximumBackoff(
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -804,7 +894,9 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) {
       if (maximumBackoffBuilder_ == null) {
         if (maximumBackoff_ != null) {
           maximumBackoff_ =
-            com.google.protobuf.Duration.newBuilder(maximumBackoff_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(maximumBackoff_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           maximumBackoff_ = value;
         }
@@ -816,6 +908,8 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -835,6 +929,8 @@ public Builder clearMaximumBackoff() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -843,11 +939,13 @@ public Builder clearMaximumBackoff() {
      * .google.protobuf.Duration maximum_backoff = 2;
      */
     public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() {
-      
+
       onChanged();
       return getMaximumBackoffFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -859,11 +957,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -872,21 +973,24 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() {
      * .google.protobuf.Duration maximum_backoff = 2;
      */
     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);
     }
 
@@ -896,12 +1000,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();
   }
@@ -910,16 +1014,16 @@ 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 {
-      return new RetryPolicy(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new RetryPolicy(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -934,6 +1038,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 75%
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 423adbdf1..e3ace44c0 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,33 +1,57 @@
+/*
+ * Copyright 2020 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
 
 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 {
 
   /**
+   *
+   *
    * 
    * 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; + * * @return Whether the minimumBackoff field is set. */ boolean hasMinimumBackoff(); /** + * + * *
    * 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; + * * @return The minimumBackoff. */ com.google.protobuf.Duration getMinimumBackoff(); /** + * + * *
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -38,26 +62,34 @@ public interface RetryPolicyOrBuilder extends
   com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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; + * * @return Whether the maximumBackoff field is set. */ boolean hasMaximumBackoff(); /** + * + * *
    * 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; + * * @return The maximumBackoff. */ com.google.protobuf.Duration getMaximumBackoff(); /** + * + * *
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
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 75%
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 45559e0f5..9dfc5bca4 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,24 +1,42 @@
+/*
+ * Copyright 2020 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
 
 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; @@ -27,16 +45,15 @@ private Schema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Schema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Schema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private Schema( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - definition_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + definition_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,36 +107,39 @@ private Schema( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -125,6 +148,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * A Protocol Buffer schema definition.
      * 
@@ -133,6 +158,8 @@ public enum Type */ PROTOCOL_BUFFER(1), /** + * + * *
      * An Avro schema definition.
      * 
@@ -144,6 +171,8 @@ public enum Type ; /** + * + * *
      * Default value. This value is unused.
      * 
@@ -152,6 +181,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * A Protocol Buffer schema definition.
      * 
@@ -160,6 +191,8 @@ public enum Type */ public static final int PROTOCOL_BUFFER_VALUE = 1; /** + * + * *
      * An Avro schema definition.
      * 
@@ -168,7 +201,6 @@ public enum Type */ public static final int AVRO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -193,49 +225,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; @@ -255,12 +287,15 @@ private Type(int value) { public static final int NAME_FIELD_NUMBER = 1; 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 @@ -269,30 +304,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 { @@ -303,25 +338,33 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * 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() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.valueOf(type_); return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; @@ -330,6 +373,8 @@ public java.lang.String getName() { public static final int DEFINITION_FIELD_NUMBER = 3; 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
@@ -337,6 +382,7 @@ public java.lang.String getName() {
    * 
* * string definition = 3; + * * @return The definition. */ @java.lang.Override @@ -345,14 +391,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
@@ -360,16 +407,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 { @@ -378,6 +424,7 @@ public java.lang.String getDefinition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,8 +436,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_); } @@ -413,8 +459,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_); @@ -427,18 +472,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.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 (!getDefinition().equals(other.getDefinition())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -461,116 +504,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); } @@ -580,16 +629,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -603,8 +651,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; } @@ -636,38 +683,39 @@ public com.google.pubsub.v1.Schema 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.Schema) { - return mergeFrom((com.google.pubsub.v1.Schema)other); + return mergeFrom((com.google.pubsub.v1.Schema) other); } else { super.mergeFrom(other); return this; @@ -718,19 +766,21 @@ public Builder mergeFrom( 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; @@ -739,21 +789,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 { @@ -761,57 +812,64 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -819,37 +877,47 @@ 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. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return The type. */ @java.lang.Override @@ -859,11 +927,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. */ @@ -871,21 +942,24 @@ public Builder setType(com.google.pubsub.v1.Schema.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -893,6 +967,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
@@ -900,13 +976,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; @@ -915,6 +991,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
@@ -922,15 +1000,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 { @@ -938,6 +1015,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
@@ -945,20 +1024,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) { + public Builder setDefinition(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + definition_ = value; 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
@@ -966,15 +1047,18 @@ public Builder setDefinition(
      * 
* * string definition = 3; + * * @return This builder for chaining. */ public Builder clearDefinition() { - + definition_ = getDefaultInstance().getDefinition(); 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
@@ -982,23 +1066,23 @@ 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) { + public Builder setDefinitionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + definition_ = 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); } @@ -1008,12 +1092,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(); } @@ -1022,16 +1106,16 @@ 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 { - return new Schema(input, extensionRegistry); - } - }; + 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 { + return new Schema(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1046,6 +1130,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 68% 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 c56277a99..30c88d8aa 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,54 +1,83 @@ +/* + * Copyright 2020 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 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
@@ -56,10 +85,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
@@ -67,8 +99,8 @@ public interface SchemaOrBuilder extends
    * 
* * string definition = 3; + * * @return The bytes for definition. */ - com.google.protobuf.ByteString - getDefinitionBytes(); + com.google.protobuf.ByteString getDefinitionBytes(); } 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..f692cb891 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -0,0 +1,255 @@ +/* + * Copyright 2020 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 + +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_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\"\341\001\n\006Sc" + + "hema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035." + + "google.pubsub.v1.Schema.Type\022\022\n\ndefiniti" + + "on\030\003 \001(\t\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\023" + + "\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n\034pubs" + + "ub.googleapis.com/Schema\022#projects/{proj" + + "ect}/schemas/{schema}\"\215\001\n\023CreateSchemaRe" + + "quest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubsub.go" + + "ogleapis.com/Schema\022-\n\006schema\030\002 \001(\0132\030.go" + + "ogle.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschema_id\030" + + "\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001 \001(\tB" + + "$\340A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n" + + "\004view\030\002 \001(\0162\034.google.pubsub.v1.SchemaVie" + + "w\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022*\n\004view\030\002 \001(\0162\034.google.pub" + + "sub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" + + "page_token\030\004 \001(\t\"Y\n\023ListSchemasResponse\022" + + ")\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1.Sche" + + "ma\022\027\n\017next_page_token\030\002 \001(\t\"I\n\023DeleteSch" + + "emaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub" + + ".googleapis.com/Schema\"\213\001\n\025ValidateSchem" + + "aRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + + "esourcemanager.googleapis.com/Project\022-\n" + + "\006schema\030\002 \001(\0132\030.google.pubsub.v1.SchemaB" + + "\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026Valid" + + "ateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.google" + + "apis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030.goog" + + "le.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001(\014\022," + + "\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1.Enco" + + "dingB\r\n\013schema_spec\"\031\n\027ValidateMessageRe" + + "sponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_UNSP" + + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010Encodi" + + "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON\020\001\022\n" + + "\n\006BINARY\020\0022\367\007\n\rSchemaService\022\232\001\n\014CreateS" + + "chema\022%.google.pubsub.v1.CreateSchemaReq" + + "uest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223\002)\"\037" + + "/v1/{parent=projects/*}/schemas:\006schema\332" + + "A\027parent,schema,schema_id\022y\n\tGetSchema\022\"" + + ".google.pubsub.v1.GetSchemaRequest\032\030.goo" + + "gle.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{name=" + + "projects/*/schemas/*}\332A\004name\022\214\001\n\013ListSch" + + "emas\022$.google.pubsub.v1.ListSchemasReque" + + "st\032%.google.pubsub.v1.ListSchemasRespons" + + "e\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/schem" + + "as\332A\006parent\022}\n\014DeleteSchema\022%.google.pub" + + "sub.v1.DeleteSchemaRequest\032\026.google.prot" + + "obuf.Empty\".\202\323\344\223\002!*\037/v1/{name=projects/*" + + "/schemas/*}\332A\004name\022\250\001\n\016ValidateSchema\022\'." + + "google.pubsub.v1.ValidateSchemaRequest\032(" + + ".google.pubsub.v1.ValidateSchemaResponse" + + "\"C\202\323\344\223\002-\"(/v1/{parent=projects/*}/schema" + + "s:validate:\001*\332A\rparent,schema\022\242\001\n\017Valida" + + "teMessage\022(.google.pubsub.v1.ValidateMes" + + "sageRequest\032).google.pubsub.v1.ValidateM" + + "essageResponse\":\202\323\344\223\0024\"//v1/{parent=proj" + + "ects/*}/schemas:validateMessage:\001*\032p\312A\025p" + + "ubsub.googleapis.com\322AUhttps://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/pubsubB\256\001\n\024com.goo" + + "gle.pubsub.v1B\013SchemaProtoP\001Z6google.gol" + + "ang.org/genproto/googleapis/pubsub/v1;pu" + + "bsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" + + "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" + + "b::V1b\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(), + }); + 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", + }); + 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_DeleteSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(); + } + + // @@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 70% 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 30b8b1d13..38a3b711e 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,24 +1,42 @@ +/* + * Copyright 2020 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 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; @@ -26,16 +44,15 @@ private SchemaSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SchemaSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SchemaSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private SchemaSettings( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - schema_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + schema_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - encoding_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + encoding_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,33 @@ private SchemaSettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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
@@ -110,7 +133,10 @@ private SchemaSettings(
    * 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 @@ -119,14 +145,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
@@ -134,17 +161,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 { @@ -155,31 +183,40 @@ public java.lang.String getSchema() { public static final int ENCODING_FIELD_NUMBER = 2; private int encoding_; /** + * + * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @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 of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @return The encoding. */ - @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { + @java.lang.Override + public com.google.pubsub.v1.Encoding getEncoding() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(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; @@ -191,8 +228,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_); } @@ -212,8 +248,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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -223,15 +258,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -253,118 +287,126 @@ 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() @@ -372,16 +414,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -393,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_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 @@ -425,38 +466,39 @@ public com.google.pubsub.v1.SchemaSettings 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.SchemaSettings) { - return mergeFrom((com.google.pubsub.v1.SchemaSettings)other); + return mergeFrom((com.google.pubsub.v1.SchemaSettings) other); } else { super.mergeFrom(other); return this; @@ -503,6 +545,8 @@ public Builder mergeFrom( 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
@@ -510,14 +554,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; @@ -526,6 +572,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
@@ -533,16 +581,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 { @@ -550,6 +599,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
@@ -557,21 +608,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) { + public Builder setSchema(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schema_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -579,16 +634,21 @@ 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() { - + schema_ = getDefaultInstance().getSchema(); onChanged(); return this; } /** + * + * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -596,17 +656,19 @@ 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) { + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; onChanged(); return this; @@ -614,37 +676,47 @@ public Builder setSchemaBytes( private int encoding_ = 0; /** + * + * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @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 of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** + * + * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @return The encoding. */ @java.lang.Override @@ -654,11 +726,14 @@ public com.google.pubsub.v1.Encoding getEncoding() { return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } /** + * + * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @param value The encoding to set. * @return This builder for chaining. */ @@ -666,28 +741,31 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; 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); } @@ -697,12 +775,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(); } @@ -711,16 +789,16 @@ 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 { - return new SchemaSettings(input, extensionRegistry); - } - }; + 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 { + return new SchemaSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -735,6 +813,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 57% 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 216a1a783..f44178d47 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,13 +1,31 @@ +/* + * Copyright 2020 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 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
@@ -15,11 +33,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
@@ -27,27 +50,35 @@ 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(); /** + * + * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; + * * @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/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 67441a0c8..2d9433fd1 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,18 +1,36 @@ +/* + * Copyright 2020 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 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.
@@ -22,6 +40,8 @@ public enum SchemaView
    */
   SCHEMA_VIEW_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Include the name and type of the schema, but not the definition.
    * 
@@ -30,6 +50,8 @@ public enum SchemaView */ BASIC(1), /** + * + * *
    * Include all Schema object fields.
    * 
@@ -41,6 +63,8 @@ public enum SchemaView ; /** + * + * *
    * The default / unset value.
    * The API will default to the BASIC view.
@@ -50,6 +74,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.
    * 
@@ -58,6 +84,8 @@ public enum SchemaView */ public static final int BASIC_VALUE = 1; /** + * + * *
    * Include all Schema object fields.
    * 
@@ -66,7 +94,6 @@ public enum SchemaView */ public static final int FULL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -91,49 +118,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; @@ -149,4 +176,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 75% 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 2a0154d66..813c4f2d4 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,40 +1,57 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SeekRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,39 +70,42 @@ private SeekRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder(); + subscription_ = s; + break; } - target_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_); - target_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder(); + } + target_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 2; + break; } - targetCase_ = 2; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 3; - target_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 3; + target_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +113,38 @@ private SeekRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -137,31 +160,39 @@ 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; 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 @@ -170,29 +201,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 { @@ -202,6 +235,8 @@ public java.lang.String getSubscription() { public static final int TIME_FIELD_NUMBER = 2; /** + * + * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -217,6 +252,7 @@ public java.lang.String getSubscription() {
    * 
* * .google.protobuf.Timestamp time = 2; + * * @return Whether the time field is set. */ @java.lang.Override @@ -224,6 +260,8 @@ public boolean hasTime() { return targetCase_ == 2; } /** + * + * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -239,16 +277,19 @@ public boolean hasTime() {
    * 
* * .google.protobuf.Timestamp time = 2; + * * @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(); } /** + * + * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -268,13 +309,15 @@ 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;
   /**
+   *
+   *
    * 
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -282,12 +325,15 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return targetCase_ == 3; } /** + * + * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -295,6 +341,7 @@ public boolean hasSnapshot() {
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The snapshot. */ public java.lang.String getSnapshot() { @@ -305,8 +352,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; @@ -315,6 +361,8 @@ public java.lang.String getSnapshot() { } } /** + * + * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -322,18 +370,17 @@ public java.lang.String getSnapshot() {
    * 
* * string snapshot = 3 [(.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; } @@ -344,6 +391,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,8 +403,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_); } @@ -379,8 +426,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_); @@ -393,24 +441,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: @@ -445,118 +490,126 @@ 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() @@ -564,16 +617,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -585,9 +637,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 @@ -627,38 +679,39 @@ public com.google.pubsub.v1.SeekRequest 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.SeekRequest) { - return mergeFrom((com.google.pubsub.v1.SeekRequest)other); + return mergeFrom((com.google.pubsub.v1.SeekRequest) other); } else { super.mergeFrom(other); return this; @@ -672,19 +725,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.unknownFields); onChanged(); @@ -714,12 +770,12 @@ public Builder mergeFrom( } 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() { @@ -729,21 +785,24 @@ public Builder clearTarget() { return this; } - 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; @@ -752,20 +811,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 { @@ -773,62 +835,80 @@ 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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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) = { ... } + * + * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } 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_; /** + * + * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -844,6 +924,7 @@ public Builder setSubscriptionBytes(
      * 
* * .google.protobuf.Timestamp time = 2; + * * @return Whether the time field is set. */ @java.lang.Override @@ -851,6 +932,8 @@ public boolean hasTime() { return targetCase_ == 2; } /** + * + * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -866,6 +949,7 @@ public boolean hasTime() {
      * 
* * .google.protobuf.Timestamp time = 2; + * * @return The time. */ @java.lang.Override @@ -883,6 +967,8 @@ public com.google.protobuf.Timestamp getTime() { } } /** + * + * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -913,6 +999,8 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -929,8 +1017,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp time = 2;
      */
-    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();
@@ -941,6 +1028,8 @@ public Builder setTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -959,10 +1048,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;
         }
@@ -978,6 +1068,8 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1011,6 +1103,8 @@ public Builder clearTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1031,6 +1125,8 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
       return getTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1059,6 +1155,8 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1076,25 +1174,31 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      * .google.protobuf.Timestamp time = 2;
      */
     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;
-      onChanged();;
+      onChanged();
+      ;
       return timeBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1102,6 +1206,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -1109,6 +1214,8 @@ public boolean hasSnapshot() { return targetCase_ == 3; } /** + * + * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1116,6 +1223,7 @@ public boolean hasSnapshot() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The snapshot. */ @java.lang.Override @@ -1125,8 +1233,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; @@ -1137,6 +1244,8 @@ public java.lang.String getSnapshot() { } } /** + * + * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1144,19 +1253,18 @@ public java.lang.String getSnapshot() {
      * 
* * string snapshot = 3 [(.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; } @@ -1166,6 +1274,8 @@ public java.lang.String getSnapshot() { } } /** + * + * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1173,20 +1283,22 @@ public java.lang.String getSnapshot() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot( - java.lang.String value) { + public Builder setSnapshot(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - targetCase_ = 3; + throw new NullPointerException(); + } + targetCase_ = 3; target_ = value; onChanged(); return this; } /** + * + * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1194,6 +1306,7 @@ public Builder setSnapshot(
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -1205,6 +1318,8 @@ public Builder clearSnapshot() { return this; } /** + * + * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1212,23 +1327,23 @@ public Builder clearSnapshot() {
      * 
* * string snapshot = 3 [(.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) { + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1238,12 +1353,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(); } @@ -1252,16 +1367,16 @@ 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 { - return new SeekRequest(input, extensionRegistry); - } - }; + 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 { + return new SeekRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1276,6 +1391,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 78% 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 befed225d..b82800a00 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,33 +1,60 @@ +/* + * Copyright 2020 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 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(); /** + * + * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -43,10 +70,13 @@ public interface SeekRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp time = 2; + * * @return Whether the time field is set. */ boolean hasTime(); /** + * + * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -62,10 +92,13 @@ public interface SeekRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp time = 2; + * * @return The time. */ com.google.protobuf.Timestamp getTime(); /** + * + * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -85,6 +118,8 @@ public interface SeekRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -92,10 +127,13 @@ public interface SeekRequestOrBuilder extends
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** + * + * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -103,10 +141,13 @@ public interface SeekRequestOrBuilder extends
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The snapshot. */ java.lang.String getSnapshot(); /** + * + * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -114,10 +155,10 @@ public interface SeekRequestOrBuilder extends
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * * @return The bytes for snapshot. */ - com.google.protobuf.ByteString - getSnapshotBytes(); + com.google.protobuf.ByteString getSnapshotBytes(); public 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 66% 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 e6398f324..fe0aff80d 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,39 +1,55 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SeekResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private SeekResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private SeekResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,7 +135,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); @@ -140,118 +158,126 @@ 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() @@ -259,16 +285,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +301,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 @@ -306,38 +331,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; @@ -374,9 +400,9 @@ public Builder mergeFrom( } 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); } @@ -386,12 +412,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(); } @@ -400,16 +426,16 @@ 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 { - return new SeekResponse(input, extensionRegistry); - } - }; + 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 { + return new SeekResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +450,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..5cdd14219 --- /dev/null +++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + +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 73% 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 b9b452c27..927b203e8 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,9 +1,26 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; /** + * + * *
  * A snapshot resource. Snapshots are used in
  * [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
@@ -14,15 +31,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_ = "";
@@ -30,16 +48,15 @@ private Snapshot() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Snapshot();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Snapshot(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,51 +76,55 @@ private Snapshot(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            topic_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (expireTime_ != null) {
-              subBuilder = expireTime_.toBuilder();
+              topic_ = s;
+              break;
             }
-            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(expireTime_);
-              expireTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (expireTime_ != null) {
+                subBuilder = expireTime_.toBuilder();
+              }
+              expireTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(expireTime_);
+                expireTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -111,34 +132,33 @@ private Snapshot(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       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);
   }
@@ -146,11 +166,14 @@ protected com.google.protobuf.MapField internalGetMapField(
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The name of the snapshot.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -159,29 +182,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; } } /** + * + * *
    * The name of the snapshot.
    * 
* * string name = 1; + * * @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 { @@ -192,11 +215,14 @@ public java.lang.String getName() { public static final int TOPIC_FIELD_NUMBER = 2; private volatile java.lang.Object topic_; /** + * + * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return The topic. */ @java.lang.Override @@ -205,29 +231,29 @@ 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; } } /** + * + * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.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 { @@ -238,6 +264,8 @@ public java.lang.String getTopic() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * 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
@@ -252,6 +280,7 @@ public java.lang.String getTopic() {
    * 
* * .google.protobuf.Timestamp expire_time = 3; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -259,6 +288,8 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * 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
@@ -273,6 +304,7 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 3; + * * @return The expireTime. */ @java.lang.Override @@ -280,6 +312,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * 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
@@ -301,24 +335,23 @@ 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,
+            "");
   }
-  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_;
   }
@@ -327,6 +360,8 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -334,22 +369,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -358,11 +393,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -371,16 +407,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, 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;
   }
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -389,12 +425,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -402,6 +437,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -413,8 +449,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_);
     }
@@ -424,12 +459,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (expireTime_ != null) {
       output.writeMessage(3, getExpireTime());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
     unknownFields.writeTo(output);
   }
 
@@ -446,18 +477,17 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
     }
     if (expireTime_ != null) {
-      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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -467,24 +497,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -513,97 +539,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)
@@ -614,41 +646,39 @@ 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;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         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.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         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);
     }
@@ -658,16 +688,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -686,8 +715,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;
     }
 
@@ -726,38 +754,39 @@ public com.google.pubsub.v1.Snapshot 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.Snapshot) {
-        return mergeFrom((com.google.pubsub.v1.Snapshot)other);
+        return mergeFrom((com.google.pubsub.v1.Snapshot) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -777,8 +806,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -807,22 +835,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The name of the snapshot.
      * 
* * string name = 1; + * * @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; @@ -831,20 +862,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the snapshot.
      * 
* * string name = 1; + * * @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 { @@ -852,54 +884,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the snapshot.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the snapshot.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the snapshot.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -907,18 +946,20 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.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; @@ -927,20 +968,21 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.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 { @@ -948,54 +990,61 @@ public java.lang.String getTopic() { } } /** + * + * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic( - java.lang.String value) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** + * + * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** + * + * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.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) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; @@ -1003,8 +1052,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_; /** + * + * *
      * 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
@@ -1019,12 +1073,15 @@ public Builder setTopicBytes(
      * 
* * .google.protobuf.Timestamp expire_time = 3; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** + * + * *
      * 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
@@ -1039,16 +1096,21 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 3; + * * @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(); } } /** + * + * *
      * 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
@@ -1078,6 +1140,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1093,8 +1157,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 3;
      */
-    public Builder setExpireTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expireTime_ = builderForValue.build();
         onChanged();
@@ -1105,6 +1168,8 @@ public Builder setExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1124,7 +1189,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
         if (expireTime_ != null) {
           expireTime_ =
-            com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
         } else {
           expireTime_ = value;
         }
@@ -1136,6 +1201,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1163,6 +1230,8 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1179,11 +1248,13 @@ public Builder clearExpireTime() {
      * .google.protobuf.Timestamp expire_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
-      
+
       onChanged();
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1203,11 +1274,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * 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
@@ -1224,35 +1298,37 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 3;
      */
     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() {
-      onChanged();;
+        internalGetMutableLabels() {
+      onChanged();
+      ;
       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();
@@ -1264,6 +1340,8 @@ public int getLabelsCount() {
       return internalGetLabels().getMap().size();
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1271,22 +1349,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1295,11 +1373,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1308,16 +1387,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, 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;
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1326,12 +1406,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @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();
       }
@@ -1339,11 +1418,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1351,23 +1431,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1375,19 +1453,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1395,16 +1474,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       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);
     }
 
@@ -1414,12 +1490,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();
   }
@@ -1428,16 +1504,16 @@ 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 {
-      return new Snapshot(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new Snapshot(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1452,6 +1528,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 79%
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 e6e74b5ee..74761e4ad 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,53 +1,81 @@
+/*
+ * Copyright 2020 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
 
 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 {
 
   /**
+   *
+   *
    * 
    * The name of the snapshot.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the snapshot.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return The topic. */ java.lang.String getTopic(); /** + * + * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } + * * @return The bytes for topic. */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); /** + * + * *
    * 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
@@ -62,10 +90,13 @@ public interface SnapshotOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 3; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * 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
@@ -80,10 +111,13 @@ public interface SnapshotOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 3; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * 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
@@ -102,6 +136,8 @@ public interface SnapshotOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -111,6 +147,8 @@ public interface SnapshotOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -118,15 +156,13 @@ public interface SnapshotOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  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();
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -134,9 +170,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -146,11 +183,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -158,7 +197,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  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 81%
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 c0911af0b..fbeb6c13b 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,9 +1,26 @@
+/*
+ * Copyright 2020 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
 
 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
@@ -12,15 +29,16 @@
  *
  * 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.EMPTY;
@@ -31,16 +49,15 @@ private StreamingPullRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingPullRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingPullRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,79 +77,85 @@ private StreamingPullRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            subscription_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              ackIds_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            ackIds_.add(s);
-            break;
-          }
-          case 24: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              modifyDeadlineSeconds_ = newIntList();
-              mutable_bitField0_ |= 0x00000002;
+              subscription_ = s;
+              break;
             }
-            modifyDeadlineSeconds_.addInt(input.readInt32());
-            break;
-          }
-          case 26: {
-            int length = input.readRawVarint32();
-            int limit = input.pushLimit(length);
-            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
-              modifyDeadlineSeconds_ = newIntList();
-              mutable_bitField0_ |= 0x00000002;
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                ackIds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              ackIds_.add(s);
+              break;
             }
-            while (input.getBytesUntilLimit() > 0) {
+          case 24:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                modifyDeadlineSeconds_ = newIntList();
+                mutable_bitField0_ |= 0x00000002;
+              }
               modifyDeadlineSeconds_.addInt(input.readInt32());
+              break;
             }
-            input.popLimit(limit);
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 26:
+            {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
+                modifyDeadlineSeconds_ = newIntList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              while (input.getBytesUntilLimit() > 0) {
+                modifyDeadlineSeconds_.addInt(input.readInt32());
+              }
+              input.popLimit(limit);
+              break;
             }
-            modifyDeadlineAckIds_.add(s);
-            break;
-          }
-          case 40: {
-
-            streamAckDeadlineSeconds_ = input.readInt32();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            clientId_ = s;
-            break;
-          }
-          case 56: {
-
-            maxOutstandingMessages_ = input.readInt64();
-            break;
-          }
-          case 64: {
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              modifyDeadlineAckIds_.add(s);
+              break;
+            }
+          case 40:
+            {
+              streamAckDeadlineSeconds_ = input.readInt32();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            maxOutstandingBytes_ = input.readInt64();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              clientId_ = s;
+              break;
+            }
+          case 56:
+            {
+              maxOutstandingMessages_ = input.readInt64();
+              break;
+            }
+          case 64:
+            {
+              maxOutstandingBytes_ = input.readInt64();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -140,8 +163,7 @@ private StreamingPullRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         ackIds_ = ackIds_.getUnmodifiableView();
@@ -156,22 +178,27 @@ private StreamingPullRequest(
       makeExtensionsImmutable();
     }
   }
-  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;
   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
@@ -179,7 +206,10 @@ private StreamingPullRequest(
    * 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 @@ -188,14 +218,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
@@ -203,17 +234,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 { @@ -224,6 +256,8 @@ public java.lang.String getSubscription() { public static final int ACK_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ackIds_; /** + * + * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -233,13 +267,15 @@ public java.lang.String getSubscription() {
    * 
* * repeated string ack_ids = 2; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -249,12 +285,15 @@ public java.lang.String getSubscription() {
    * 
* * repeated string ack_ids = 2; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -264,6 +303,7 @@ public int getAckIdsCount() {
    * 
* * repeated string ack_ids = 2; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -271,6 +311,8 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -280,17 +322,19 @@ public java.lang.String getAckIds(int index) {
    * 
* * repeated string ack_ids = 2; + * * @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; private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_; /** + * + * *
    * 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
@@ -306,14 +350,16 @@ public java.lang.String getAckIds(int index) {
    * 
* * repeated int32 modify_deadline_seconds = 3; + * * @return A list containing the modifyDeadlineSeconds. */ @java.lang.Override - public java.util.List - getModifyDeadlineSecondsList() { + public java.util.List getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; } /** + * + * *
    * 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
@@ -329,12 +375,15 @@ public java.lang.String getAckIds(int index) {
    * 
* * repeated int32 modify_deadline_seconds = 3; + * * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** + * + * *
    * 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
@@ -350,17 +399,21 @@ public int getModifyDeadlineSecondsCount() {
    * 
* * repeated int32 modify_deadline_seconds = 3; + * * @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; private com.google.protobuf.LazyStringList modifyDeadlineAckIds_; /** + * + * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -370,13 +423,15 @@ public int getModifyDeadlineSeconds(int index) {
    * 
* * repeated string modify_deadline_ack_ids = 4; + * * @return A list containing the modifyDeadlineAckIds. */ - public com.google.protobuf.ProtocolStringList - getModifyDeadlineAckIdsList() { + public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_; } /** + * + * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -386,12 +441,15 @@ public int getModifyDeadlineSeconds(int index) {
    * 
* * repeated string modify_deadline_ack_ids = 4; + * * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** + * + * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -401,6 +459,7 @@ public int getModifyDeadlineAckIdsCount() {
    * 
* * repeated string modify_deadline_ack_ids = 4; + * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ @@ -408,6 +467,8 @@ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** + * + * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -417,17 +478,19 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
    * 
* * repeated string modify_deadline_ack_ids = 4; + * * @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_; /** + * + * *
    * 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
@@ -436,6 +499,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 @@ -446,6 +510,8 @@ public int getStreamAckDeadlineSeconds() { public static final int CLIENT_ID_FIELD_NUMBER = 6; private volatile java.lang.Object clientId_; /** + * + * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -456,6 +522,7 @@ public int getStreamAckDeadlineSeconds() {
    * 
* * string client_id = 6; + * * @return The clientId. */ @java.lang.Override @@ -464,14 +531,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; } } /** + * + * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -482,16 +550,15 @@ public java.lang.String getClientId() {
    * 
* * string client_id = 6; + * * @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 { @@ -502,6 +569,8 @@ public java.lang.String getClientId() { public static final int MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER = 7; private long maxOutstandingMessages_; /** + * + * *
    * Flow control settings for the maximum number of outstanding messages. When
    * there are `max_outstanding_messages` or more currently sent to the
@@ -515,6 +584,7 @@ public java.lang.String getClientId() {
    * 
* * int64 max_outstanding_messages = 7; + * * @return The maxOutstandingMessages. */ @java.lang.Override @@ -525,6 +595,8 @@ public long getMaxOutstandingMessages() { public static final int MAX_OUTSTANDING_BYTES_FIELD_NUMBER = 8; private long maxOutstandingBytes_; /** + * + * *
    * Flow control settings for the maximum number of outstanding bytes. When
    * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -538,6 +610,7 @@ public long getMaxOutstandingMessages() {
    * 
* * int64 max_outstanding_bytes = 8; + * * @return The maxOutstandingBytes. */ @java.lang.Override @@ -546,6 +619,7 @@ public long getMaxOutstandingBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -557,8 +631,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_); @@ -574,7 +647,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_); @@ -611,14 +685,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; } @@ -631,19 +705,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -653,29 +724,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -706,107 +770,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) + unknownFields.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
@@ -815,21 +884,23 @@ 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()
@@ -837,16 +908,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -870,9 +940,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
@@ -891,7 +961,8 @@ 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);
+      com.google.pubsub.v1.StreamingPullRequest result =
+          new com.google.pubsub.v1.StreamingPullRequest(this);
       int from_bitField0_ = bitField0_;
       result.subscription_ = subscription_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -921,38 +992,39 @@ public com.google.pubsub.v1.StreamingPullRequest 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.StreamingPullRequest) {
-        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other);
+        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1036,10 +1108,13 @@ public Builder mergeFrom(
       }
       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
@@ -1047,14 +1122,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; @@ -1063,6 +1140,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
@@ -1070,16 +1149,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 { @@ -1087,6 +1167,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
@@ -1094,21 +1176,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) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; 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
@@ -1116,16 +1202,21 @@ 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() { - + subscription_ = getDefaultInstance().getSubscription(); 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
@@ -1133,30 +1224,36 @@ 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) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList ackIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1166,13 +1263,15 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1182,12 +1281,15 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1197,6 +1299,7 @@ public int getAckIdsCount() {
      * 
* * repeated string ack_ids = 2; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -1204,6 +1307,8 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1213,14 +1318,16 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2; + * * @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); } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1230,21 +1337,23 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2; + * * @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) { + public Builder setAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1254,20 +1363,22 @@ public Builder setAckIds(
      * 
* * repeated string ack_ids = 2; + * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds( - java.lang.String value) { + public Builder addAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1277,18 +1388,19 @@ public Builder addAckIds(
      * 
* * repeated string ack_ids = 2; + * * @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_); onChanged(); return this; } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1298,6 +1410,7 @@ public Builder addAllAckIds(
      * 
* * repeated string ack_ids = 2; + * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -1307,6 +1420,8 @@ public Builder clearAckIds() { return this; } /** + * + * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1316,15 +1431,15 @@ public Builder clearAckIds() {
      * 
* * repeated string ack_ids = 2; + * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); @@ -1332,13 +1447,16 @@ public Builder addAckIdsBytes( } private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); + private void ensureModifyDeadlineSecondsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { modifyDeadlineSeconds_ = mutableCopy(modifyDeadlineSeconds_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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
@@ -1354,14 +1472,17 @@ private void ensureModifyDeadlineSecondsIsMutable() {
      * 
* * repeated int32 modify_deadline_seconds = 3; + * * @return A list containing the modifyDeadlineSeconds. */ - public java.util.List - getModifyDeadlineSecondsList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) : modifyDeadlineSeconds_; + public java.util.List getModifyDeadlineSecondsList() { + return ((bitField0_ & 0x00000002) != 0) + ? java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) + : modifyDeadlineSeconds_; } /** + * + * *
      * 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
@@ -1377,12 +1498,15 @@ private void ensureModifyDeadlineSecondsIsMutable() {
      * 
* * repeated int32 modify_deadline_seconds = 3; + * * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** + * + * *
      * 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
@@ -1398,6 +1522,7 @@ public int getModifyDeadlineSecondsCount() {
      * 
* * repeated int32 modify_deadline_seconds = 3; + * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ @@ -1405,6 +1530,8 @@ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); } /** + * + * *
      * 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
@@ -1420,18 +1547,20 @@ public int getModifyDeadlineSeconds(int index) {
      * 
* * repeated int32 modify_deadline_seconds = 3; + * * @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); onChanged(); return this; } /** + * + * *
      * 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
@@ -1447,6 +1576,7 @@ public Builder setModifyDeadlineSeconds(
      * 
* * repeated int32 modify_deadline_seconds = 3; + * * @param value The modifyDeadlineSeconds to add. * @return This builder for chaining. */ @@ -1457,6 +1587,8 @@ public Builder addModifyDeadlineSeconds(int value) { return this; } /** + * + * *
      * 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
@@ -1472,18 +1604,20 @@ public Builder addModifyDeadlineSeconds(int value) {
      * 
* * repeated int32 modify_deadline_seconds = 3; + * * @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_); onChanged(); return this; } /** + * + * *
      * 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
@@ -1499,6 +1633,7 @@ public Builder addAllModifyDeadlineSeconds(
      * 
* * repeated int32 modify_deadline_seconds = 3; + * * @return This builder for chaining. */ public Builder clearModifyDeadlineSeconds() { @@ -1508,14 +1643,18 @@ public Builder clearModifyDeadlineSeconds() { return this; } - private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureModifyDeadlineAckIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1525,13 +1664,15 @@ private void ensureModifyDeadlineAckIdsIsMutable() {
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @return A list containing the modifyDeadlineAckIds. */ - public com.google.protobuf.ProtocolStringList - getModifyDeadlineAckIdsList() { + public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_.getUnmodifiableView(); } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1541,12 +1682,15 @@ private void ensureModifyDeadlineAckIdsIsMutable() {
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1556,6 +1700,7 @@ public int getModifyDeadlineAckIdsCount() {
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ @@ -1563,6 +1708,8 @@ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1572,14 +1719,16 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @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); } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1589,21 +1738,23 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @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) { + public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureModifyDeadlineAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1613,20 +1764,22 @@ public Builder setModifyDeadlineAckIds(
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @param value The modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addModifyDeadlineAckIds( - java.lang.String value) { + public Builder addModifyDeadlineAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureModifyDeadlineAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); onChanged(); return this; } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1636,18 +1789,19 @@ public Builder addModifyDeadlineAckIds(
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @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_); onChanged(); return this; } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1657,6 +1811,7 @@ public Builder addAllModifyDeadlineAckIds(
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @return This builder for chaining. */ public Builder clearModifyDeadlineAckIds() { @@ -1666,6 +1821,8 @@ public Builder clearModifyDeadlineAckIds() { return this; } /** + * + * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1675,23 +1832,25 @@ public Builder clearModifyDeadlineAckIds() {
      * 
* * repeated string modify_deadline_ack_ids = 4; + * * @param value The bytes of the modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addModifyDeadlineAckIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); onChanged(); 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
@@ -1700,6 +1859,7 @@ public Builder addModifyDeadlineAckIdsBytes(
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamAckDeadlineSeconds. */ @java.lang.Override @@ -1707,6 +1867,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
@@ -1715,16 +1877,19 @@ 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. */ public Builder setStreamAckDeadlineSeconds(int value) { - + streamAckDeadlineSeconds_ = value; onChanged(); 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
@@ -1733,10 +1898,11 @@ public Builder setStreamAckDeadlineSeconds(int value) {
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStreamAckDeadlineSeconds() { - + streamAckDeadlineSeconds_ = 0; onChanged(); return this; @@ -1744,6 +1910,8 @@ public Builder clearStreamAckDeadlineSeconds() { private java.lang.Object clientId_ = ""; /** + * + * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1754,13 +1922,13 @@ public Builder clearStreamAckDeadlineSeconds() {
      * 
* * string client_id = 6; + * * @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; @@ -1769,6 +1937,8 @@ public java.lang.String getClientId() { } } /** + * + * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1779,15 +1949,14 @@ public java.lang.String getClientId() {
      * 
* * string client_id = 6; + * * @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 { @@ -1795,6 +1964,8 @@ public java.lang.String getClientId() { } } /** + * + * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1805,20 +1976,22 @@ public java.lang.String getClientId() {
      * 
* * string client_id = 6; + * * @param value The clientId to set. * @return This builder for chaining. */ - public Builder setClientId( - java.lang.String value) { + public Builder setClientId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientId_ = value; onChanged(); return this; } /** + * + * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1829,15 +2002,18 @@ public Builder setClientId(
      * 
* * string client_id = 6; + * * @return This builder for chaining. */ public Builder clearClientId() { - + clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** + * + * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1848,23 +2024,25 @@ public Builder clearClientId() {
      * 
* * string client_id = 6; + * * @param value The bytes for clientId to set. * @return This builder for chaining. */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; onChanged(); return this; } - private long maxOutstandingMessages_ ; + private long maxOutstandingMessages_; /** + * + * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -1878,6 +2056,7 @@ public Builder setClientIdBytes(
      * 
* * int64 max_outstanding_messages = 7; + * * @return The maxOutstandingMessages. */ @java.lang.Override @@ -1885,6 +2064,8 @@ public long getMaxOutstandingMessages() { return maxOutstandingMessages_; } /** + * + * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -1898,16 +2079,19 @@ public long getMaxOutstandingMessages() {
      * 
* * int64 max_outstanding_messages = 7; + * * @param value The maxOutstandingMessages to set. * @return This builder for chaining. */ public Builder setMaxOutstandingMessages(long value) { - + maxOutstandingMessages_ = value; onChanged(); return this; } /** + * + * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -1921,17 +2105,20 @@ public Builder setMaxOutstandingMessages(long value) {
      * 
* * int64 max_outstanding_messages = 7; + * * @return This builder for chaining. */ public Builder clearMaxOutstandingMessages() { - + maxOutstandingMessages_ = 0L; onChanged(); return this; } - private long maxOutstandingBytes_ ; + private long maxOutstandingBytes_; /** + * + * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -1945,6 +2132,7 @@ public Builder clearMaxOutstandingMessages() {
      * 
* * int64 max_outstanding_bytes = 8; + * * @return The maxOutstandingBytes. */ @java.lang.Override @@ -1952,6 +2140,8 @@ public long getMaxOutstandingBytes() { return maxOutstandingBytes_; } /** + * + * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -1965,16 +2155,19 @@ public long getMaxOutstandingBytes() {
      * 
* * int64 max_outstanding_bytes = 8; + * * @param value The maxOutstandingBytes to set. * @return This builder for chaining. */ public Builder setMaxOutstandingBytes(long value) { - + maxOutstandingBytes_ = value; onChanged(); return this; } /** + * + * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -1988,17 +2181,18 @@ public Builder setMaxOutstandingBytes(long value) {
      * 
* * int64 max_outstanding_bytes = 8; + * * @return This builder for chaining. */ public Builder clearMaxOutstandingBytes() { - + maxOutstandingBytes_ = 0L; 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); } @@ -2008,12 +2202,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(); } @@ -2022,16 +2216,16 @@ 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 { - return new StreamingPullRequest(input, extensionRegistry); - } - }; + 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 { + return new StreamingPullRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2046,6 +2240,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 88% 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 fc77fa2d1..eca392820 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,13 +1,31 @@ +/* + * Copyright 2020 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 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
@@ -15,11 +33,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
@@ -27,13 +50,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(); /** + * + * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -43,11 +70,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2; + * * @return A list containing the ackIds. */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -57,10 +86,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2; + * * @return The count of ackIds. */ int getAckIdsCount(); /** + * + * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -70,11 +102,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** + * + * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -84,13 +119,15 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string ack_ids = 2; + * * @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); /** + * + * *
    * 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
@@ -106,10 +143,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated int32 modify_deadline_seconds = 3; + * * @return A list containing the modifyDeadlineSeconds. */ java.util.List getModifyDeadlineSecondsList(); /** + * + * *
    * 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
@@ -125,10 +165,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated int32 modify_deadline_seconds = 3; + * * @return The count of modifyDeadlineSeconds. */ int getModifyDeadlineSecondsCount(); /** + * + * *
    * 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
@@ -144,12 +187,15 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated int32 modify_deadline_seconds = 3; + * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ int getModifyDeadlineSeconds(int index); /** + * + * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -159,11 +205,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string modify_deadline_ack_ids = 4; + * * @return A list containing the modifyDeadlineAckIds. */ - java.util.List - getModifyDeadlineAckIdsList(); + java.util.List getModifyDeadlineAckIdsList(); /** + * + * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -173,10 +221,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string modify_deadline_ack_ids = 4; + * * @return The count of modifyDeadlineAckIds. */ int getModifyDeadlineAckIdsCount(); /** + * + * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -186,11 +237,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string modify_deadline_ack_ids = 4; + * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ java.lang.String getModifyDeadlineAckIds(int index); /** + * + * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -200,13 +254,15 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * repeated string modify_deadline_ack_ids = 4; + * * @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
@@ -215,11 +271,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamAckDeadlineSeconds. */ int getStreamAckDeadlineSeconds(); /** + * + * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -230,10 +289,13 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * string client_id = 6; + * * @return The clientId. */ java.lang.String getClientId(); /** + * + * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -244,12 +306,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * string client_id = 6; + * * @return The bytes for clientId. */ - com.google.protobuf.ByteString - getClientIdBytes(); + com.google.protobuf.ByteString getClientIdBytes(); /** + * + * *
    * Flow control settings for the maximum number of outstanding messages. When
    * there are `max_outstanding_messages` or more currently sent to the
@@ -263,11 +327,14 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * int64 max_outstanding_messages = 7; + * * @return The maxOutstandingMessages. */ long getMaxOutstandingMessages(); /** + * + * *
    * Flow control settings for the maximum number of outstanding bytes. When
    * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -281,6 +348,7 @@ public interface StreamingPullRequestOrBuilder extends
    * 
* * int64 max_outstanding_bytes = 8; + * * @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 69% 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 22b95f357..0ea49f678 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,9 +1,26 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; /** + * + * *
  * Response for the `StreamingPull` method. This response is used to stream
  * messages from the server to the client.
@@ -11,31 +28,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingPullResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,61 +72,79 @@ private StreamingPullResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              receivedMessages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            receivedMessages_.add(
-                input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder subBuilder = null;
-            if (modifyAckDeadlineConfirmation_ != null) {
-              subBuilder = modifyAckDeadlineConfirmation_.toBuilder();
-            }
-            modifyAckDeadlineConfirmation_ = input.readMessage(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(modifyAckDeadlineConfirmation_);
-              modifyAckDeadlineConfirmation_ = subBuilder.buildPartial();
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                receivedMessages_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              receivedMessages_.add(
+                  input.readMessage(
+                      com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
+                  subBuilder = null;
+              if (modifyAckDeadlineConfirmation_ != null) {
+                subBuilder = modifyAckDeadlineConfirmation_.toBuilder();
+              }
+              modifyAckDeadlineConfirmation_ =
+                  input.readMessage(
+                      com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(modifyAckDeadlineConfirmation_);
+                modifyAckDeadlineConfirmation_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder = null;
-            if (subscriptionProperties_ != null) {
-              subBuilder = subscriptionProperties_.toBuilder();
-            }
-            subscriptionProperties_ = input.readMessage(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(subscriptionProperties_);
-              subscriptionProperties_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder =
+                  null;
+              if (subscriptionProperties_ != null) {
+                subBuilder = subscriptionProperties_.toBuilder();
+              }
+              subscriptionProperties_ =
+                  input.readMessage(
+                      com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(subscriptionProperties_);
+                subscriptionProperties_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 42: {
-            com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder subBuilder = null;
-            if (acknowledgeConfirmation_ != null) {
-              subBuilder = acknowledgeConfirmation_.toBuilder();
-            }
-            acknowledgeConfirmation_ = input.readMessage(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(acknowledgeConfirmation_);
-              acknowledgeConfirmation_ = subBuilder.buildPartial();
+              break;
             }
+          case 42:
+            {
+              com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder
+                  subBuilder = null;
+              if (acknowledgeConfirmation_ != null) {
+                subBuilder = acknowledgeConfirmation_.toBuilder();
+              }
+              acknowledgeConfirmation_ =
+                  input.readMessage(
+                      com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(acknowledgeConfirmation_);
+                acknowledgeConfirmation_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,8 +152,7 @@ private StreamingPullResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_);
@@ -127,151 +161,187 @@ private StreamingPullResponse(
       makeExtensionsImmutable();
     }
   }
-  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 {
 
     /**
+     *
+     *
      * 
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return A list containing the ackIds. */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return The count of ackIds. */ int getAckIdsCount(); /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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); /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return A list containing the invalidAckIds. */ - java.util.List - getInvalidAckIdsList(); + java.util.List getInvalidAckIdsList(); /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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); /** + * + * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @return A list containing the unorderedAckIds. */ - java.util.List - getUnorderedAckIdsList(); + java.util.List getUnorderedAckIdsList(); /** + * + * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @return The count of unorderedAckIds. */ int getUnorderedAckIdsCount(); /** + * + * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ java.lang.String getUnorderedAckIds(int index); /** + * + * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @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); } /** + * + * *
    * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    * previously received message.
@@ -279,15 +349,16 @@ 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.EMPTY;
       invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -296,16 +367,15 @@ private AcknowledgeConfirmation() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AcknowledgeConfirmation();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private AcknowledgeConfirmation(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -325,40 +395,43 @@ private AcknowledgeConfirmation(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                ackIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  ackIds_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                ackIds_.add(s);
+                break;
               }
-              ackIds_.add(s);
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                invalidAckIds_.add(s);
+                break;
               }
-              invalidAckIds_.add(s);
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000004;
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                  unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000004;
+                }
+                unorderedAckIds_.add(s);
+                break;
               }
-              unorderedAckIds_.add(s);
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -366,8 +439,7 @@ private AcknowledgeConfirmation(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           ackIds_ = ackIds_.getUnmodifiableView();
@@ -382,50 +454,61 @@ private AcknowledgeConfirmation(
         makeExtensionsImmutable();
       }
     }
-    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;
     private com.google.protobuf.LazyStringList ackIds_;
     /**
+     *
+     *
      * 
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -433,53 +516,63 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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; private com.google.protobuf.LazyStringList invalidAckIds_; /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList - getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_; } /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -487,51 +580,61 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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; private com.google.protobuf.LazyStringList unorderedAckIds_; /** + * + * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @return A list containing the unorderedAckIds. */ - public com.google.protobuf.ProtocolStringList - getUnorderedAckIdsList() { + public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { return unorderedAckIds_; } /** + * + * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @return The count of unorderedAckIds. */ public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } /** + * + * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ @@ -539,20 +642,23 @@ public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } /** + * + * *
      * List of acknowledgement IDs that were out of order.
      * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @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); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -564,8 +670,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)); } @@ -616,19 +721,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.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 (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false; + if (!getUnorderedAckIdsList().equals(other.getUnorderedAckIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -658,87 +761,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 @@ -748,6 +859,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Acknowledgement IDs sent in one or more previous requests to acknowledge a
      * previously received message.
@@ -755,38 +868,41 @@ 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()
+      // Construct using
+      // com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder()
       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) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -800,14 +916,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_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
@@ -821,7 +939,8 @@ 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);
+        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result =
+            new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           ackIds_ = ackIds_.getUnmodifiableView();
@@ -846,46 +965,53 @@ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation buildP
       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_;
@@ -935,7 +1061,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -944,44 +1072,55 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringList ackIds_ =
+          com.google.protobuf.LazyStringArrayList.EMPTY;
+
       private void ensureAckIdsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
       /**
+       *
+       *
        * 
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -989,80 +1128,90 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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); } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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) { + public Builder setAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds( - java.lang.String value) { + public Builder addAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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_); onChanged(); return this; } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -1072,65 +1221,77 @@ public Builder clearAckIds() { return this; } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList invalidAckIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInvalidAckIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList - getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_.getUnmodifiableView(); } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -1138,85 +1299,95 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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); } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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) { + public Builder setInvalidAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInvalidAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); invalidAckIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param value The invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIds( - java.lang.String value) { + public Builder addInvalidAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInvalidAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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_); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return This builder for chaining. */ public Builder clearInvalidAckIds() { @@ -1226,63 +1397,75 @@ public Builder clearInvalidAckIds() { return this; } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unorderedAckIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnorderedAckIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList(unorderedAckIds_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @return A list containing the unorderedAckIds. */ - public com.google.protobuf.ProtocolStringList - getUnorderedAckIdsList() { + public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { return unorderedAckIds_.getUnmodifiableView(); } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @return The count of unorderedAckIds. */ public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. */ @@ -1290,80 +1473,90 @@ public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @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); } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @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) { + public Builder setUnorderedAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnorderedAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @param value The unorderedAckIds to add. * @return This builder for chaining. */ - public Builder addUnorderedAckIds( - java.lang.String value) { + public Builder addUnorderedAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnorderedAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.add(value); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @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_); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @return This builder for chaining. */ public Builder clearUnorderedAckIds() { @@ -1373,25 +1566,28 @@ public Builder clearUnorderedAckIds() { return this; } /** + * + * *
        * List of acknowledgement IDs that were out of order.
        * 
* * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * * @param value The bytes of the unorderedAckIds to add. * @return This builder for chaining. */ - public Builder addUnorderedAckIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addUnorderedAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1404,30 +1600,32 @@ 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 { - return new AcknowledgeConfirmation(input, extensionRegistry); - } - }; + 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 { + return new AcknowledgeConfirmation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1439,103 +1637,126 @@ 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 { /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return A list containing the ackIds. */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return The count of ackIds. */ int getAckIdsCount(); /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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); /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return A list containing the invalidAckIds. */ - java.util.List - getInvalidAckIdsList(); + java.util.List getInvalidAckIdsList(); /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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); } /** + * + * *
    * Acknowledgement IDs sent in one or more previous requests to modify the
    * deadline for a specific message.
@@ -1543,15 +1764,18 @@ 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.EMPTY;
       invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -1559,16 +1783,15 @@ private ModifyAckDeadlineConfirmation() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ModifyAckDeadlineConfirmation();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private ModifyAckDeadlineConfirmation(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1588,31 +1811,33 @@ private ModifyAckDeadlineConfirmation(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                ackIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  ackIds_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                ackIds_.add(s);
+                break;
               }
-              ackIds_.add(s);
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                  invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
+                  mutable_bitField0_ |= 0x00000002;
+                }
+                invalidAckIds_.add(s);
+                break;
               }
-              invalidAckIds_.add(s);
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1620,8 +1845,7 @@ private ModifyAckDeadlineConfirmation(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         if (((mutable_bitField0_ & 0x00000001) != 0)) {
           ackIds_ = ackIds_.getUnmodifiableView();
@@ -1633,50 +1857,62 @@ private ModifyAckDeadlineConfirmation(
         makeExtensionsImmutable();
       }
     }
-    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;
     private com.google.protobuf.LazyStringList ackIds_;
     /**
+     *
+     *
      * 
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -1684,53 +1920,63 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
      * Successfully processed acknowledgement IDs.
      * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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; private com.google.protobuf.LazyStringList invalidAckIds_; /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList - getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_; } /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -1738,21 +1984,24 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** + * + * *
      * List of acknowledgement IDs that were malformed or whose acknowledgement
      * deadline has expired.
      * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1764,8 +2013,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)); } @@ -1805,17 +2053,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.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 (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1840,88 +2088,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 @@ -1931,6 +2192,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Acknowledgement IDs sent in one or more previous requests to modify the
      * deadline for a specific message.
@@ -1938,38 +2201,42 @@ 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()
+      // Construct using
+      // com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder()
       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) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1981,19 +2248,22 @@ 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_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);
         }
@@ -2001,8 +2271,10 @@ 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);
+      public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
+          buildPartial() {
+        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result =
+            new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           ackIds_ = ackIds_.getUnmodifiableView();
@@ -2022,46 +2294,54 @@ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
       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_;
@@ -2097,11 +2377,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parsedMessage = null;
+        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parsedMessage =
+            null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -2110,44 +2393,55 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+      private com.google.protobuf.LazyStringList ackIds_ =
+          com.google.protobuf.LazyStringArrayList.EMPTY;
+
       private void ensureAckIdsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
           bitField0_ |= 0x00000001;
-         }
+        }
       }
       /**
+       *
+       *
        * 
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -2155,80 +2449,90 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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); } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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) { + public Builder setAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds( - java.lang.String value) { + public Builder addAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @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_); onChanged(); return this; } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -2238,65 +2542,77 @@ public Builder clearAckIds() { return this; } /** + * + * *
        * Successfully processed acknowledgement IDs.
        * 
* * repeated string ack_ids = 1 [ctype = CORD]; + * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList invalidAckIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInvalidAckIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return A list containing the invalidAckIds. */ - public com.google.protobuf.ProtocolStringList - getInvalidAckIdsList() { + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_.getUnmodifiableView(); } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return The count of invalidAckIds. */ public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param index The index of the element to return. * @return The invalidAckIds at the given index. */ @@ -2304,85 +2620,95 @@ public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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); } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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) { + public Builder setInvalidAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInvalidAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); invalidAckIds_.set(index, value); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param value The invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIds( - java.lang.String value) { + public Builder addInvalidAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInvalidAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @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_); onChanged(); return this; } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @return This builder for chaining. */ public Builder clearInvalidAckIds() { @@ -2392,26 +2718,29 @@ public Builder clearInvalidAckIds() { return this; } /** + * + * *
        * List of acknowledgement IDs that were malformed or whose acknowledgement
        * deadline has expired.
        * 
* * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. */ - public Builder addInvalidAckIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2424,30 +2753,33 @@ 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 { - return new ModifyAckDeadlineConfirmation(input, extensionRegistry); - } - }; + 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 { + return new ModifyAckDeadlineConfirmation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2459,67 +2791,75 @@ 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 { /** + * + * *
      * True iff exactly once delivery is enabled for this subscription.
      * 
* * bool exactly_once_delivery_enabled = 1; + * * @return The exactlyOnceDeliveryEnabled. */ boolean getExactlyOnceDeliveryEnabled(); /** + * + * *
      * True iff message ordering is enabled for this subscription.
      * 
* * bool message_ordering_enabled = 2; + * * @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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SubscriptionProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2538,23 +2878,23 @@ private SubscriptionProperties( case 0: done = true; break; - case 8: { - - exactlyOnceDeliveryEnabled_ = input.readBool(); - break; - } - case 16: { - - messageOrderingEnabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + exactlyOnceDeliveryEnabled_ = input.readBool(); + break; + } + case 16: + { + messageOrderingEnabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2562,34 +2902,39 @@ private SubscriptionProperties( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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_; /** + * + * *
      * True iff exactly once delivery is enabled for this subscription.
      * 
* * bool exactly_once_delivery_enabled = 1; + * * @return The exactlyOnceDeliveryEnabled. */ @java.lang.Override @@ -2600,11 +2945,14 @@ public boolean getExactlyOnceDeliveryEnabled() { public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; private boolean messageOrderingEnabled_; /** + * + * *
      * True iff message ordering is enabled for this subscription.
      * 
* * bool message_ordering_enabled = 2; + * * @return The messageOrderingEnabled. */ @java.lang.Override @@ -2613,6 +2961,7 @@ public boolean getMessageOrderingEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2624,8 +2973,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_); } @@ -2642,12 +2990,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2657,17 +3004,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2680,98 +3026,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) + unknownFields.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 @@ -2781,44 +3134,49 @@ 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() + // Construct using + // com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2830,14 +3188,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 @@ -2851,7 +3211,8 @@ 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); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = + new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); result.exactlyOnceDeliveryEnabled_ = exactlyOnceDeliveryEnabled_; result.messageOrderingEnabled_ = messageOrderingEnabled_; onBuilt(); @@ -2862,46 +3223,53 @@ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPa 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()); } @@ -2927,7 +3295,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2937,13 +3307,16 @@ public Builder mergeFrom( return this; } - private boolean exactlyOnceDeliveryEnabled_ ; + private boolean exactlyOnceDeliveryEnabled_; /** + * + * *
        * True iff exactly once delivery is enabled for this subscription.
        * 
* * bool exactly_once_delivery_enabled = 1; + * * @return The exactlyOnceDeliveryEnabled. */ @java.lang.Override @@ -2951,42 +3324,51 @@ public boolean getExactlyOnceDeliveryEnabled() { return exactlyOnceDeliveryEnabled_; } /** + * + * *
        * True iff exactly once delivery is enabled for this subscription.
        * 
* * bool exactly_once_delivery_enabled = 1; + * * @param value The exactlyOnceDeliveryEnabled to set. * @return This builder for chaining. */ public Builder setExactlyOnceDeliveryEnabled(boolean value) { - + exactlyOnceDeliveryEnabled_ = value; onChanged(); return this; } /** + * + * *
        * True iff exactly once delivery is enabled for this subscription.
        * 
* * bool exactly_once_delivery_enabled = 1; + * * @return This builder for chaining. */ public Builder clearExactlyOnceDeliveryEnabled() { - + exactlyOnceDeliveryEnabled_ = false; onChanged(); return this; } - private boolean messageOrderingEnabled_ ; + private boolean messageOrderingEnabled_; /** + * + * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; + * * @return The messageOrderingEnabled. */ @java.lang.Override @@ -2994,34 +3376,41 @@ public boolean getMessageOrderingEnabled() { return messageOrderingEnabled_; } /** + * + * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; + * * @param value The messageOrderingEnabled to set. * @return This builder for chaining. */ public Builder setMessageOrderingEnabled(boolean value) { - + messageOrderingEnabled_ = value; onChanged(); return this; } /** + * + * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; + * * @return This builder for chaining. */ public Builder clearMessageOrderingEnabled() { - + messageOrderingEnabled_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3034,30 +3423,32 @@ 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 { - return new SubscriptionProperties(input, extensionRegistry); - } - }; + 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 { + return new SubscriptionProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3069,15 +3460,17 @@ 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; } - } public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; private java.util.List receivedMessages_; /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3089,6 +3482,8 @@ public java.util.List getReceivedMessagesL return receivedMessages_; } /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3096,11 +3491,13 @@ public java.util.List getReceivedMessagesL * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReceivedMessagesOrBuilderList() { return receivedMessages_; } /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3112,6 +3509,8 @@ public int getReceivedMessagesCount() { return receivedMessages_.size(); } /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3123,6 +3522,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -3130,20 +3531,25 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ @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_; /** + * + * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * * @return Whether the acknowledgeConfirmation field is set. */ @java.lang.Override @@ -3151,40 +3557,59 @@ public boolean hasAcknowledgeConfirmation() { return acknowledgeConfirmation_ != null; } /** + * + * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * * @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_; } /** + * + * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder + getAcknowledgeConfirmationOrBuilder() { return getAcknowledgeConfirmation(); } 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_; /** + * + * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * * @return Whether the modifyAckDeadlineConfirmation field is set. */ @java.lang.Override @@ -3192,39 +3617,58 @@ public boolean hasModifyAckDeadlineConfirmation() { return modifyAckDeadlineConfirmation_ != null; } /** + * + * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * * @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_; } /** + * + * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder + getModifyAckDeadlineConfirmationOrBuilder() { return getModifyAckDeadlineConfirmation(); } public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; /** + * + * *
    * Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * * @return Whether the subscriptionProperties field is set. */ @java.lang.Override @@ -3232,30 +3676,44 @@ public boolean hasSubscriptionProperties() { return subscriptionProperties_ != null; } /** + * + * *
    * Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * * @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_; } /** + * + * *
    * Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder + getSubscriptionPropertiesOrBuilder() { return getSubscriptionProperties(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3267,8 +3725,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)); } @@ -3291,20 +3748,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 (modifyAckDeadlineConfirmation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getModifyAckDeadlineConfirmation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getModifyAckDeadlineConfirmation()); } if (subscriptionProperties_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSubscriptionProperties()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubscriptionProperties()); } if (acknowledgeConfirmation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAcknowledgeConfirmation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAcknowledgeConfirmation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3314,29 +3771,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -3370,97 +3826,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.
@@ -3468,21 +3931,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()
@@ -3490,17 +3955,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) {
         getReceivedMessagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -3532,9 +3997,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
@@ -3553,7 +4018,8 @@ 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);
       int from_bitField0_ = bitField0_;
       if (receivedMessagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -3587,38 +4053,39 @@ public com.google.pubsub.v1.StreamingPullResponse 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.StreamingPullResponse) {
-        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other);
+        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3645,9 +4112,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_);
           }
@@ -3690,21 +4158,29 @@ public Builder mergeFrom(
       }
       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_;
 
     /**
+     *
+     *
      * 
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3719,6 +4195,8 @@ public java.util.List getReceivedMessagesL } } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3733,6 +4211,8 @@ public int getReceivedMessagesCount() { } } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3747,14 +4227,15 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { } } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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(); @@ -3768,6 +4249,8 @@ public Builder setReceivedMessages( return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3786,6 +4269,8 @@ public Builder setReceivedMessages( return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3806,14 +4291,15 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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(); @@ -3827,6 +4313,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3845,6 +4333,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3863,6 +4353,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3873,8 +4365,7 @@ 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); @@ -3882,6 +4373,8 @@ public Builder addAllReceivedMessages( return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3899,6 +4392,8 @@ public Builder clearReceivedMessages() { return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3916,39 +4411,44 @@ public Builder removeReceivedMessages(int index) { return this; } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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); } } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public java.util.List - getReceivedMessagesOrBuilderList() { + public java.util.List + getReceivedMessagesOrBuilderList() { if (receivedMessagesBuilder_ != null) { return receivedMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -3956,6 +4456,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -3963,38 +4465,47 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ 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()); } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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()); } /** + * + * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - 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(), @@ -4004,46 +4515,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_; /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * * @return Whether the acknowledgeConfirmation field is set. */ public boolean hasAcknowledgeConfirmation() { return acknowledgeConfirmationBuilder_ != null || acknowledgeConfirmation_ != null; } /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * * @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(); } } /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - 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(); @@ -4057,15 +4591,20 @@ public Builder setAcknowledgeConfirmation(com.google.pubsub.v1.StreamingPullResp return this; } /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ 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(); onChanged(); @@ -4076,18 +4615,26 @@ public Builder setAcknowledgeConfirmation( return this; } /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public Builder mergeAcknowledgeConfirmation(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { + public Builder mergeAcknowledgeConfirmation( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { if (acknowledgeConfirmationBuilder_ == null) { if (acknowledgeConfirmation_ != null) { acknowledgeConfirmation_ = - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder(acknowledgeConfirmation_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder( + acknowledgeConfirmation_) + .mergeFrom(value) + .buildPartial(); } else { acknowledgeConfirmation_ = value; } @@ -4099,12 +4646,16 @@ public Builder mergeAcknowledgeConfirmation(com.google.pubsub.v1.StreamingPullRe return this; } /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ public Builder clearAcknowledgeConfirmation() { if (acknowledgeConfirmationBuilder_ == null) { @@ -4118,96 +4669,139 @@ public Builder clearAcknowledgeConfirmation() { return this; } /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder getAcknowledgeConfirmationBuilder() { - + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder + getAcknowledgeConfirmationBuilder() { + onChanged(); return getAcknowledgeConfirmationFieldBuilder().getBuilder(); } /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - 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_; } } /** + * + * *
      * This field will only be set if `enable_exactly_once_delivery` is set to
      * `true`.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ 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_; /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * * @return Whether the modifyAckDeadlineConfirmation field is set. */ public boolean hasModifyAckDeadlineConfirmation() { - return modifyAckDeadlineConfirmationBuilder_ != null || modifyAckDeadlineConfirmation_ != null; + return modifyAckDeadlineConfirmationBuilder_ != null + || modifyAckDeadlineConfirmation_ != null; } /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * * @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(); } } /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - 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(); @@ -4221,15 +4815,20 @@ public Builder setModifyAckDeadlineConfirmation(com.google.pubsub.v1.StreamingPu return this; } /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ 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(); onChanged(); @@ -4240,18 +4839,26 @@ public Builder setModifyAckDeadlineConfirmation( return this; } /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public Builder mergeModifyAckDeadlineConfirmation(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { + public Builder mergeModifyAckDeadlineConfirmation( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { if (modifyAckDeadlineConfirmationBuilder_ == null) { if (modifyAckDeadlineConfirmation_ != null) { modifyAckDeadlineConfirmation_ = - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder(modifyAckDeadlineConfirmation_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder( + modifyAckDeadlineConfirmation_) + .mergeFrom(value) + .buildPartial(); } else { modifyAckDeadlineConfirmation_ = value; } @@ -4263,12 +4870,16 @@ public Builder mergeModifyAckDeadlineConfirmation(com.google.pubsub.v1.Streaming return this; } /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ public Builder clearModifyAckDeadlineConfirmation() { if (modifyAckDeadlineConfirmationBuilder_ == null) { @@ -4282,93 +4893,134 @@ public Builder clearModifyAckDeadlineConfirmation() { return this; } /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder getModifyAckDeadlineConfirmationBuilder() { - + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder + getModifyAckDeadlineConfirmationBuilder() { + onChanged(); return getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); } /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - 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_; } } /** + * + * *
      * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ 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_; /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * * @return Whether the subscriptionProperties field is set. */ public boolean hasSubscriptionProperties() { return subscriptionPropertiesBuilder_ != null || subscriptionProperties_ != null; } /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * * @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(); } } /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ - 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(); @@ -4382,11 +5034,15 @@ public Builder setSubscriptionProperties(com.google.pubsub.v1.StreamingPullRespo return this; } /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ public Builder setSubscriptionProperties( com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder builderForValue) { @@ -4400,17 +5056,25 @@ public Builder setSubscriptionProperties( return this; } /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ - public Builder mergeSubscriptionProperties(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { + public Builder mergeSubscriptionProperties( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { if (subscriptionPropertiesBuilder_ == null) { if (subscriptionProperties_ != null) { subscriptionProperties_ = - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder(subscriptionProperties_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder( + subscriptionProperties_) + .mergeFrom(value) + .buildPartial(); } else { subscriptionProperties_ = value; } @@ -4422,11 +5086,15 @@ public Builder mergeSubscriptionProperties(com.google.pubsub.v1.StreamingPullRes return this; } /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ public Builder clearSubscriptionProperties() { if (subscriptionPropertiesBuilder_ == null) { @@ -4440,55 +5108,73 @@ public Builder clearSubscriptionProperties() { return this; } /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder() { - + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder + getSubscriptionPropertiesBuilder() { + onChanged(); return getSubscriptionPropertiesFieldBuilder().getBuilder(); } /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ - 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_; } } /** + * + * *
      * Properties associated with this subscription.
      * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ 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); } @@ -4498,12 +5184,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(); } @@ -4512,16 +5198,16 @@ 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 { - return new StreamingPullResponse(input, extensionRegistry); - } - }; + 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 { + return new StreamingPullResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4536,6 +5222,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/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 similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java rename to proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index a805fdf9a..b2bb7ba25 100644 --- a/owl-bot-staging/v1/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 @@ -1,22 +1,41 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; -public interface StreamingPullResponseOrBuilder extends +public interface StreamingPullResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - java.util.List - getReceivedMessagesList(); + java.util.List getReceivedMessagesList(); /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -25,6 +44,8 @@ public interface StreamingPullResponseOrBuilder extends */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -33,108 +54,157 @@ public interface StreamingPullResponseOrBuilder extends */ int getReceivedMessagesCount(); /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - java.util.List + java.util.List getReceivedMessagesOrBuilderList(); /** + * + * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index); + com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); /** + * + * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * * @return Whether the acknowledgeConfirmation field is set. */ boolean hasAcknowledgeConfirmation(); /** + * + * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * * @return The acknowledgeConfirmation. */ com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation(); /** + * + * *
    * This field will only be set if `enable_exactly_once_delivery` is set to
    * `true`.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder(); + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder + getAcknowledgeConfirmationOrBuilder(); /** + * + * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * * @return Whether the modifyAckDeadlineConfirmation field is set. */ boolean hasModifyAckDeadlineConfirmation(); /** + * + * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * * @return The modifyAckDeadlineConfirmation. */ - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation(); + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getModifyAckDeadlineConfirmation(); /** + * + * *
    * 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.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder(); + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder + getModifyAckDeadlineConfirmationOrBuilder(); /** + * + * *
    * Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * * @return Whether the subscriptionProperties field is set. */ boolean hasSubscriptionProperties(); /** + * + * *
    * Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * * @return The subscriptionProperties. */ com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties(); /** + * + * *
    * Properties associated with this subscription.
    * 
* - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * */ - com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder(); + 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 77% 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 72bc75ec2..c05fea07e 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,24 +1,42 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; /** + * + * *
  * A subscription resource.
  * 
* * 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_ = ""; @@ -27,16 +45,15 @@ private Subscription() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Subscription(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Subscription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,147 +73,164 @@ private Subscription( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 34: { - com.google.pubsub.v1.PushConfig.Builder subBuilder = null; - if (pushConfig_ != null) { - subBuilder = pushConfig_.toBuilder(); + topic_ = s; + break; } - pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pushConfig_); - pushConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); + } + pushConfig_ = + input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 40: { - - ackDeadlineSeconds_ = input.readInt32(); - break; - } - case 56: { - - retainAckedMessages_ = input.readBool(); - break; - } - case 66: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (messageRetentionDuration_ != null) { - subBuilder = messageRetentionDuration_.toBuilder(); + case 40: + { + ackDeadlineSeconds_ = input.readInt32(); + break; } - messageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageRetentionDuration_); - messageRetentionDuration_ = subBuilder.buildPartial(); + case 56: + { + retainAckedMessages_ = input.readBool(); + break; } - - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 66: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); + } + messageRetentionDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); + } + + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 80: { - - enableMessageOrdering_ = input.readBool(); - break; - } - case 90: { - com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; - if (expirationPolicy_ != null) { - subBuilder = expirationPolicy_.toBuilder(); + case 74: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - expirationPolicy_ = input.readMessage(com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expirationPolicy_); - expirationPolicy_ = subBuilder.buildPartial(); + case 80: + { + enableMessageOrdering_ = input.readBool(); + break; } + case 90: + { + com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; + if (expirationPolicy_ != null) { + subBuilder = expirationPolicy_.toBuilder(); + } + expirationPolicy_ = + input.readMessage( + com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expirationPolicy_); + expirationPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 106: { - com.google.pubsub.v1.DeadLetterPolicy.Builder subBuilder = null; - if (deadLetterPolicy_ != null) { - subBuilder = deadLetterPolicy_.toBuilder(); + filter_ = s; + break; } - deadLetterPolicy_ = input.readMessage(com.google.pubsub.v1.DeadLetterPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deadLetterPolicy_); - deadLetterPolicy_ = subBuilder.buildPartial(); + case 106: + { + com.google.pubsub.v1.DeadLetterPolicy.Builder subBuilder = null; + if (deadLetterPolicy_ != null) { + subBuilder = deadLetterPolicy_.toBuilder(); + } + deadLetterPolicy_ = + input.readMessage( + com.google.pubsub.v1.DeadLetterPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deadLetterPolicy_); + deadLetterPolicy_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 114: { - com.google.pubsub.v1.RetryPolicy.Builder subBuilder = null; - if (retryPolicy_ != null) { - subBuilder = retryPolicy_.toBuilder(); + case 114: + { + com.google.pubsub.v1.RetryPolicy.Builder subBuilder = null; + if (retryPolicy_ != null) { + subBuilder = retryPolicy_.toBuilder(); + } + retryPolicy_ = + input.readMessage(com.google.pubsub.v1.RetryPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryPolicy_); + retryPolicy_ = subBuilder.buildPartial(); + } + + break; } - retryPolicy_ = input.readMessage(com.google.pubsub.v1.RetryPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retryPolicy_); - retryPolicy_ = subBuilder.buildPartial(); + case 120: + { + detached_ = input.readBool(); + break; } - - break; - } - case 120: { - - detached_ = input.readBool(); - break; - } - case 128: { - - enableExactlyOnceDelivery_ = input.readBool(); - break; - } - case 138: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (topicMessageRetentionDuration_ != null) { - subBuilder = topicMessageRetentionDuration_.toBuilder(); + case 128: + { + enableExactlyOnceDelivery_ = input.readBool(); + break; } - topicMessageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topicMessageRetentionDuration_); - topicMessageRetentionDuration_ = subBuilder.buildPartial(); + case 138: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (topicMessageRetentionDuration_ != null) { + subBuilder = topicMessageRetentionDuration_.toBuilder(); + } + topicMessageRetentionDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topicMessageRetentionDuration_); + topicMessageRetentionDuration_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -204,41 +238,44 @@ private Subscription( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -249,6 +286,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -257,14 +295,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
@@ -275,16 +314,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 { @@ -295,13 +333,18 @@ public java.lang.String getName() { public static final int TOPIC_FIELD_NUMBER = 2; 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 @@ -310,31 +353,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 { @@ -345,6 +390,8 @@ public java.lang.String getTopic() { public static final int PUSH_CONFIG_FIELD_NUMBER = 4; private com.google.pubsub.v1.PushConfig pushConfig_; /** + * + * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -352,6 +399,7 @@ public java.lang.String getTopic() {
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; + * * @return Whether the pushConfig field is set. */ @java.lang.Override @@ -359,6 +407,8 @@ public boolean hasPushConfig() { return pushConfig_ != null; } /** + * + * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -366,6 +416,7 @@ public boolean hasPushConfig() {
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; + * * @return The pushConfig. */ @java.lang.Override @@ -373,6 +424,8 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } /** + * + * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -389,6 +442,8 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
   public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5;
   private int 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
@@ -410,6 +465,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
    * 
* * int32 ack_deadline_seconds = 5; + * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -420,6 +476,8 @@ public int getAckDeadlineSeconds() { public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7; private boolean retainAckedMessages_; /** + * + * *
    * Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
@@ -430,6 +488,7 @@ public int getAckDeadlineSeconds() {
    * 
* * bool retain_acked_messages = 7; + * * @return The retainAckedMessages. */ @java.lang.Override @@ -440,6 +499,8 @@ public boolean getRetainAckedMessages() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; /** + * + * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -450,6 +511,7 @@ public boolean getRetainAckedMessages() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @return Whether the messageRetentionDuration field is set. */ @java.lang.Override @@ -457,6 +519,8 @@ public boolean hasMessageRetentionDuration() { return messageRetentionDuration_ != null; } /** + * + * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -467,13 +531,18 @@ public boolean hasMessageRetentionDuration() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @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_; } /** + * + * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -491,24 +560,23 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
   }
 
   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,
-                "");
-  }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> labels_;
-  private com.google.protobuf.MapField
-  internalGetLabels() {
+    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,
+            "");
+  }
+
+  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_;
   }
@@ -517,6 +585,8 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -524,22 +594,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 9;
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -548,11 +618,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 9;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -561,16 +632,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, 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;
   }
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -579,12 +650,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 9;
    */
   @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();
     }
@@ -594,6 +664,8 @@ public java.lang.String getLabelsOrThrow(
   public static final int ENABLE_MESSAGE_ORDERING_FIELD_NUMBER = 10;
   private boolean enableMessageOrdering_;
   /**
+   *
+   *
    * 
    * If true, messages published with the same `ordering_key` in `PubsubMessage`
    * will be delivered to the subscribers in the order in which they
@@ -602,6 +674,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * bool enable_message_ordering = 10; + * * @return The enableMessageOrdering. */ @java.lang.Override @@ -612,6 +685,8 @@ public boolean getEnableMessageOrdering() { public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; /** + * + * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -622,6 +697,7 @@ public boolean getEnableMessageOrdering() {
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * * @return Whether the expirationPolicy field is set. */ @java.lang.Override @@ -629,6 +705,8 @@ public boolean hasExpirationPolicy() { return expirationPolicy_ != null; } /** + * + * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -639,13 +717,18 @@ public boolean hasExpirationPolicy() {
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * * @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_; } /** + * + * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -665,6 +748,8 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
   public static final int FILTER_FIELD_NUMBER = 12;
   private volatile java.lang.Object filter_;
   /**
+   *
+   *
    * 
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -674,6 +759,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
    * 
* * string filter = 12; + * * @return The filter. */ @java.lang.Override @@ -682,14 +768,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; } } /** + * + * *
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -699,16 +786,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 12; + * * @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 { @@ -719,6 +805,8 @@ public java.lang.String getFilter() { public static final int DEAD_LETTER_POLICY_FIELD_NUMBER = 13; private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; /** + * + * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -730,6 +818,7 @@ public java.lang.String getFilter() {
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * * @return Whether the deadLetterPolicy field is set. */ @java.lang.Override @@ -737,6 +826,8 @@ public boolean hasDeadLetterPolicy() { return deadLetterPolicy_ != null; } /** + * + * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -748,13 +839,18 @@ public boolean hasDeadLetterPolicy() {
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * * @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_; } /** + * + * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -775,6 +871,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
   public static final int RETRY_POLICY_FIELD_NUMBER = 14;
   private com.google.pubsub.v1.RetryPolicy retryPolicy_;
   /**
+   *
+   *
    * 
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -785,6 +883,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * * @return Whether the retryPolicy field is set. */ @java.lang.Override @@ -792,6 +891,8 @@ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** + * + * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -802,13 +903,18 @@ public boolean hasRetryPolicy() {
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * * @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_; } /** + * + * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -828,6 +934,8 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
   public static final int DETACHED_FIELD_NUMBER = 15;
   private boolean detached_;
   /**
+   *
+   *
    * 
    * Indicates whether the subscription is detached from its topic. Detached
    * subscriptions don't receive messages from their topic and don't retain any
@@ -837,6 +945,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
    * 
* * bool detached = 15; + * * @return The detached. */ @java.lang.Override @@ -847,6 +956,8 @@ public boolean getDetached() { public static final int ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER = 16; private boolean enableExactlyOnceDelivery_; /** + * + * *
    * If true, Pub/Sub provides the following guarantees for the delivery of
    * a message with a given value of `message_id` on this subscription:
@@ -860,6 +971,7 @@ public boolean getDetached() {
    * 
* * bool enable_exactly_once_delivery = 16; + * * @return The enableExactlyOnceDelivery. */ @java.lang.Override @@ -870,6 +982,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,
@@ -879,7 +993,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 @@ -887,6 +1004,8 @@ public boolean hasTopicMessageRetentionDuration() { return topicMessageRetentionDuration_ != null; } /** + * + * *
    * 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,
@@ -896,14 +1015,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,
@@ -913,7 +1039,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]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder() { @@ -921,6 +1049,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -932,8 +1061,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_); } @@ -952,12 +1080,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (messageRetentionDuration_ != null) { 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_); } @@ -998,61 +1122,54 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } if (pushConfig_ != null) { - 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 (messageRetentionDuration_ != null) { - 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 (expirationPolicy_ != null) { - 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 (deadLetterPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getDeadLetterPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); } if (retryPolicy_ != null) { - 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 (topicMessageRetentionDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getTopicMessageRetentionDuration()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, getTopicMessageRetentionDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1062,60 +1179,47 @@ 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 (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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1139,8 +1243,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(); @@ -1150,8 +1253,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(); @@ -1167,11 +1269,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(); @@ -1181,140 +1281,146 @@ 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.
    * 
* * 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"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { 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() @@ -1322,16 +1428,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1392,9 +1497,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 @@ -1463,38 +1568,39 @@ public com.google.pubsub.v1.Subscription 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.Subscription) { - return mergeFrom((com.google.pubsub.v1.Subscription)other); + return mergeFrom((com.google.pubsub.v1.Subscription) other); } else { super.mergeFrom(other); return this; @@ -1523,8 +1629,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasMessageRetentionDuration()) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.getEnableMessageOrdering() != false) { setEnableMessageOrdering(other.getEnableMessageOrdering()); } @@ -1578,10 +1683,13 @@ public Builder mergeFrom( } 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
@@ -1592,13 +1700,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; @@ -1607,6 +1715,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1617,15 +1727,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 { @@ -1633,6 +1742,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1643,20 +1754,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1667,15 +1780,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1686,16 +1802,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1703,20 +1819,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; @@ -1725,22 +1845,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 { @@ -1748,60 +1871,73 @@ 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) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; 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() { - + topic_ = getDefaultInstance().getTopic(); 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) = { ... } + * + * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; @@ -1809,8 +1945,13 @@ 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_; /** + * + * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1818,12 +1959,15 @@ public Builder setTopicBytes(
      * 
* * .google.pubsub.v1.PushConfig push_config = 4; + * * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfigBuilder_ != null || pushConfig_ != null; } /** + * + * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1831,16 +1975,21 @@ public boolean hasPushConfig() {
      * 
* * .google.pubsub.v1.PushConfig push_config = 4; + * * @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(); } } /** + * + * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1863,6 +2012,8 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1871,8 +2022,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
      *
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
-    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();
         onChanged();
@@ -1883,6 +2033,8 @@ public Builder setPushConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1895,7 +2047,9 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
       if (pushConfigBuilder_ == null) {
         if (pushConfig_ != null) {
           pushConfig_ =
-            com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial();
+              com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           pushConfig_ = value;
         }
@@ -1907,6 +2061,8 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1927,6 +2083,8 @@ public Builder clearPushConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1936,11 +2094,13 @@ public Builder clearPushConfig() {
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
     public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
-      
+
       onChanged();
       return getPushConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1953,11 +2113,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1967,21 +2130,26 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
     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_;
     }
 
-    private int ackDeadlineSeconds_ ;
+    private int 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
@@ -2003,6 +2171,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
      * 
* * int32 ack_deadline_seconds = 5; + * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -2010,6 +2179,8 @@ public int getAckDeadlineSeconds() { return 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
@@ -2031,16 +2202,19 @@ public int getAckDeadlineSeconds() {
      * 
* * int32 ack_deadline_seconds = 5; + * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setAckDeadlineSeconds(int value) { - + ackDeadlineSeconds_ = value; onChanged(); return this; } /** + * + * *
      * 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
@@ -2062,17 +2236,20 @@ public Builder setAckDeadlineSeconds(int value) {
      * 
* * int32 ack_deadline_seconds = 5; + * * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - + ackDeadlineSeconds_ = 0; onChanged(); return this; } - private boolean retainAckedMessages_ ; + private boolean retainAckedMessages_; /** + * + * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2083,6 +2260,7 @@ public Builder clearAckDeadlineSeconds() {
      * 
* * bool retain_acked_messages = 7; + * * @return The retainAckedMessages. */ @java.lang.Override @@ -2090,6 +2268,8 @@ public boolean getRetainAckedMessages() { return retainAckedMessages_; } /** + * + * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2100,16 +2280,19 @@ public boolean getRetainAckedMessages() {
      * 
* * bool retain_acked_messages = 7; + * * @param value The retainAckedMessages to set. * @return This builder for chaining. */ public Builder setRetainAckedMessages(boolean value) { - + retainAckedMessages_ = value; onChanged(); return this; } /** + * + * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2120,10 +2303,11 @@ public Builder setRetainAckedMessages(boolean value) {
      * 
* * bool retain_acked_messages = 7; + * * @return This builder for chaining. */ public Builder clearRetainAckedMessages() { - + retainAckedMessages_ = false; onChanged(); return this; @@ -2131,8 +2315,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_; /** + * + * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2143,12 +2332,15 @@ public Builder clearRetainAckedMessages() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; } /** + * + * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2159,16 +2351,21 @@ public boolean hasMessageRetentionDuration() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @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(); } } /** + * + * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2194,6 +2391,8 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2217,6 +2416,8 @@ public Builder setMessageRetentionDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2232,7 +2433,9 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       if (messageRetentionDurationBuilder_ == null) {
         if (messageRetentionDuration_ != null) {
           messageRetentionDuration_ =
-            com.google.protobuf.Duration.newBuilder(messageRetentionDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(messageRetentionDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           messageRetentionDuration_ = value;
         }
@@ -2244,6 +2447,8 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2267,6 +2472,8 @@ public Builder clearMessageRetentionDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2279,11 +2486,13 @@ public Builder clearMessageRetentionDuration() {
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() {
-      
+
       onChanged();
       return getMessageRetentionDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2299,11 +2508,14 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
       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_;
       }
     }
     /**
+     *
+     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2316,35 +2528,37 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     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() {
-      onChanged();;
+        internalGetMutableLabels() {
+      onChanged();
+      ;
       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();
@@ -2356,6 +2570,8 @@ public int getLabelsCount() {
       return internalGetLabels().getMap().size();
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2363,22 +2579,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 9;
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2387,11 +2603,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 9;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2400,16 +2617,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, 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;
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2418,12 +2636,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9;
      */
     @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();
       }
@@ -2431,11 +2648,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2443,23 +2661,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9;
      */
-
-    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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2467,19 +2683,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 9;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2487,16 +2704,15 @@ public Builder putLabels(
      *
      * map<string, string> labels = 9;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
-    private boolean enableMessageOrdering_ ;
+    private boolean enableMessageOrdering_;
     /**
+     *
+     *
      * 
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2505,6 +2721,7 @@ public Builder putAllLabels(
      * 
* * bool enable_message_ordering = 10; + * * @return The enableMessageOrdering. */ @java.lang.Override @@ -2512,6 +2729,8 @@ public boolean getEnableMessageOrdering() { return enableMessageOrdering_; } /** + * + * *
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2520,16 +2739,19 @@ public boolean getEnableMessageOrdering() {
      * 
* * bool enable_message_ordering = 10; + * * @param value The enableMessageOrdering to set. * @return This builder for chaining. */ public Builder setEnableMessageOrdering(boolean value) { - + enableMessageOrdering_ = value; onChanged(); return this; } /** + * + * *
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2538,10 +2760,11 @@ public Builder setEnableMessageOrdering(boolean value) {
      * 
* * bool enable_message_ordering = 10; + * * @return This builder for chaining. */ public Builder clearEnableMessageOrdering() { - + enableMessageOrdering_ = false; onChanged(); return this; @@ -2549,8 +2772,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_; /** + * + * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2561,12 +2789,15 @@ public Builder clearEnableMessageOrdering() {
      * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * * @return Whether the expirationPolicy field is set. */ public boolean hasExpirationPolicy() { return expirationPolicyBuilder_ != null || expirationPolicy_ != null; } /** + * + * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2577,16 +2808,21 @@ public boolean hasExpirationPolicy() {
      * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * * @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(); } } /** + * + * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2612,6 +2848,8 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value)
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2635,6 +2873,8 @@ public Builder setExpirationPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2650,7 +2890,9 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
       if (expirationPolicyBuilder_ == null) {
         if (expirationPolicy_ != null) {
           expirationPolicy_ =
-            com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_).mergeFrom(value).buildPartial();
+              com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expirationPolicy_ = value;
         }
@@ -2662,6 +2904,8 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2685,6 +2929,8 @@ public Builder clearExpirationPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2697,11 +2943,13 @@ public Builder clearExpirationPolicy() {
      * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
      */
     public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() {
-      
+
       onChanged();
       return getExpirationPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2717,11 +2965,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
       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_;
       }
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2734,14 +2985,17 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
      * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
      */
     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_;
@@ -2749,6 +3003,8 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
 
     private java.lang.Object filter_ = "";
     /**
+     *
+     *
      * 
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -2758,13 +3014,13 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
      * 
* * string filter = 12; + * * @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; @@ -2773,6 +3029,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -2782,15 +3040,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 12; + * * @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 { @@ -2798,6 +3055,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -2807,20 +3066,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 12; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -2830,15 +3091,18 @@ public Builder setFilter(
      * 
* * string filter = 12; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -2848,16 +3112,16 @@ public Builder clearFilter() {
      * 
* * string filter = 12; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -2865,8 +3129,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_; /** + * + * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -2878,12 +3147,15 @@ public Builder setFilterBytes(
      * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * * @return Whether the deadLetterPolicy field is set. */ public boolean hasDeadLetterPolicy() { return deadLetterPolicyBuilder_ != null || deadLetterPolicy_ != null; } /** + * + * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -2895,16 +3167,21 @@ public boolean hasDeadLetterPolicy() {
      * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * * @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(); } } /** + * + * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -2931,6 +3208,8 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value)
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -2955,6 +3234,8 @@ public Builder setDeadLetterPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -2971,7 +3252,9 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value
       if (deadLetterPolicyBuilder_ == null) {
         if (deadLetterPolicy_ != null) {
           deadLetterPolicy_ =
-            com.google.pubsub.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_).mergeFrom(value).buildPartial();
+              com.google.pubsub.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           deadLetterPolicy_ = value;
         }
@@ -2983,6 +3266,8 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3007,6 +3292,8 @@ public Builder clearDeadLetterPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3020,11 +3307,13 @@ public Builder clearDeadLetterPolicy() {
      * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13;
      */
     public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() {
-      
+
       onChanged();
       return getDeadLetterPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3041,11 +3330,14 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
       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_;
       }
     }
     /**
+     *
+     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3059,14 +3351,17 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13;
      */
     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_;
@@ -3074,8 +3369,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_;
     /**
+     *
+     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3086,12 +3386,15 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** + * + * *
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3102,16 +3405,21 @@ public boolean hasRetryPolicy() {
      * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * * @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(); } } /** + * + * *
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3137,6 +3445,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3148,8 +3458,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
      *
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
-    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();
         onChanged();
@@ -3160,6 +3469,8 @@ public Builder setRetryPolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3175,7 +3486,9 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       if (retryPolicyBuilder_ == null) {
         if (retryPolicy_ != null) {
           retryPolicy_ =
-            com.google.pubsub.v1.RetryPolicy.newBuilder(retryPolicy_).mergeFrom(value).buildPartial();
+              com.google.pubsub.v1.RetryPolicy.newBuilder(retryPolicy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           retryPolicy_ = value;
         }
@@ -3187,6 +3500,8 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3210,6 +3525,8 @@ public Builder clearRetryPolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3222,11 +3539,13 @@ public Builder clearRetryPolicy() {
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
     public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
-      
+
       onChanged();
       return getRetryPolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3242,11 +3561,14 @@ 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_;
       }
     }
     /**
+     *
+     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3259,21 +3581,26 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
     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_;
     /**
+     *
+     *
      * 
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3283,6 +3610,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * 
* * bool detached = 15; + * * @return The detached. */ @java.lang.Override @@ -3290,6 +3618,8 @@ public boolean getDetached() { return detached_; } /** + * + * *
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3299,16 +3629,19 @@ public boolean getDetached() {
      * 
* * bool detached = 15; + * * @param value The detached to set. * @return This builder for chaining. */ public Builder setDetached(boolean value) { - + detached_ = value; onChanged(); return this; } /** + * + * *
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3318,17 +3651,20 @@ public Builder setDetached(boolean value) {
      * 
* * bool detached = 15; + * * @return This builder for chaining. */ public Builder clearDetached() { - + detached_ = false; onChanged(); return this; } - private boolean enableExactlyOnceDelivery_ ; + private boolean enableExactlyOnceDelivery_; /** + * + * *
      * If true, Pub/Sub provides the following guarantees for the delivery of
      * a message with a given value of `message_id` on this subscription:
@@ -3342,6 +3678,7 @@ public Builder clearDetached() {
      * 
* * bool enable_exactly_once_delivery = 16; + * * @return The enableExactlyOnceDelivery. */ @java.lang.Override @@ -3349,6 +3686,8 @@ public boolean getEnableExactlyOnceDelivery() { return enableExactlyOnceDelivery_; } /** + * + * *
      * If true, Pub/Sub provides the following guarantees for the delivery of
      * a message with a given value of `message_id` on this subscription:
@@ -3362,16 +3701,19 @@ public boolean getEnableExactlyOnceDelivery() {
      * 
* * bool enable_exactly_once_delivery = 16; + * * @param value The enableExactlyOnceDelivery to set. * @return This builder for chaining. */ public Builder setEnableExactlyOnceDelivery(boolean value) { - + enableExactlyOnceDelivery_ = value; onChanged(); return this; } /** + * + * *
      * If true, Pub/Sub provides the following guarantees for the delivery of
      * a message with a given value of `message_id` on this subscription:
@@ -3385,10 +3727,11 @@ public Builder setEnableExactlyOnceDelivery(boolean value) {
      * 
* * bool enable_exactly_once_delivery = 16; + * * @return This builder for chaining. */ public Builder clearEnableExactlyOnceDelivery() { - + enableExactlyOnceDelivery_ = false; onChanged(); return this; @@ -3396,8 +3739,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,
@@ -3407,13 +3755,19 @@ 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 topicMessageRetentionDurationBuilder_ != null || topicMessageRetentionDuration_ != null; + return topicMessageRetentionDurationBuilder_ != null + || topicMessageRetentionDuration_ != null; } /** + * + * *
      * 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,
@@ -3423,17 +3777,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,
@@ -3443,7 +3804,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) { @@ -3459,6 +3822,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,
@@ -3468,7 +3833,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) { @@ -3482,6 +3849,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,
@@ -3491,13 +3860,17 @@ 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 (topicMessageRetentionDuration_ != null) { topicMessageRetentionDuration_ = - com.google.protobuf.Duration.newBuilder(topicMessageRetentionDuration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(topicMessageRetentionDuration_) + .mergeFrom(value) + .buildPartial(); } else { topicMessageRetentionDuration_ = value; } @@ -3509,6 +3882,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,
@@ -3518,7 +3893,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() { if (topicMessageRetentionDurationBuilder_ == null) { @@ -3532,6 +3909,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,
@@ -3541,14 +3920,18 @@ 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() { - + onChanged(); 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,
@@ -3558,17 +3941,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,
@@ -3578,24 +3966,29 @@ 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_; } + @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); } @@ -3605,12 +3998,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(); } @@ -3619,16 +4012,16 @@ 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 { - return new Subscription(input, extensionRegistry); - } - }; + 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 { + return new Subscription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3643,6 +4036,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 88% 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 e2ca338f6..2c85e903f 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,13 +1,31 @@ +/* + * Copyright 2020 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 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
@@ -18,10 +36,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
@@ -32,36 +53,47 @@ 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(); /** + * + * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -69,10 +101,13 @@ public interface SubscriptionOrBuilder extends
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; + * * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); /** + * + * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -80,10 +115,13 @@ public interface SubscriptionOrBuilder extends
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; + * * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); /** + * + * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -95,6 +133,8 @@ public interface SubscriptionOrBuilder extends
   com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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
@@ -116,11 +156,14 @@ public interface SubscriptionOrBuilder extends
    * 
* * int32 ack_deadline_seconds = 5; + * * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); /** + * + * *
    * Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
@@ -131,11 +174,14 @@ public interface SubscriptionOrBuilder extends
    * 
* * bool retain_acked_messages = 7; + * * @return The retainAckedMessages. */ boolean getRetainAckedMessages(); /** + * + * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -146,10 +192,13 @@ public interface SubscriptionOrBuilder extends
    * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** + * + * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -160,10 +209,13 @@ public interface SubscriptionOrBuilder extends
    * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** + * + * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -178,6 +230,8 @@ public interface SubscriptionOrBuilder extends
   com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -187,6 +241,8 @@ public interface SubscriptionOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -194,15 +250,13 @@ public interface SubscriptionOrBuilder extends
    *
    * map<string, string> labels = 9;
    */
-  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();
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -210,9 +264,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 9;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -222,11 +277,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -234,11 +291,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 9;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * If true, messages published with the same `ordering_key` in `PubsubMessage`
    * will be delivered to the subscribers in the order in which they
@@ -247,11 +304,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool enable_message_ordering = 10; + * * @return The enableMessageOrdering. */ boolean getEnableMessageOrdering(); /** + * + * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -262,10 +322,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * * @return Whether the expirationPolicy field is set. */ boolean hasExpirationPolicy(); /** + * + * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -276,10 +339,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * * @return The expirationPolicy. */ com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy(); /** + * + * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -294,6 +360,8 @@ java.lang.String getLabelsOrThrow(
   com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -303,10 +371,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string filter = 12; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -316,12 +387,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string filter = 12; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -333,10 +406,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * * @return Whether the deadLetterPolicy field is set. */ boolean hasDeadLetterPolicy(); /** + * + * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -348,10 +424,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * * @return The deadLetterPolicy. */ com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy(); /** + * + * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -367,6 +446,8 @@ java.lang.String getLabelsOrThrow(
   com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -377,10 +458,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** + * + * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -391,10 +475,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * * @return The retryPolicy. */ com.google.pubsub.v1.RetryPolicy getRetryPolicy(); /** + * + * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -409,6 +496,8 @@ java.lang.String getLabelsOrThrow(
   com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * Indicates whether the subscription is detached from its topic. Detached
    * subscriptions don't receive messages from their topic and don't retain any
@@ -418,11 +507,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool detached = 15; + * * @return The detached. */ boolean getDetached(); /** + * + * *
    * If true, Pub/Sub provides the following guarantees for the delivery of
    * a message with a given value of `message_id` on this subscription:
@@ -436,11 +528,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool enable_exactly_once_delivery = 16; + * * @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,
@@ -450,11 +545,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,
@@ -464,11 +564,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,
@@ -478,7 +583,9 @@ 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(); } 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 74% 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 cc3afbe27..6361c9e27 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,24 +1,42 @@ +/* + * Copyright 2020 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 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_ = ""; @@ -26,16 +44,15 @@ private Topic() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Topic(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Topic( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,82 +72,92 @@ private Topic( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; - if (messageStoragePolicy_ != null) { - subBuilder = messageStoragePolicy_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - messageStoragePolicy_ = input.readMessage(com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageStoragePolicy_); - messageStoragePolicy_ = subBuilder.buildPartial(); + case 26: + { + com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; + if (messageStoragePolicy_ != null) { + subBuilder = messageStoragePolicy_.toBuilder(); + } + messageStoragePolicy_ = + input.readMessage( + com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageStoragePolicy_); + messageStoragePolicy_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - kmsKeyName_ = s; - break; - } - case 50: { - com.google.pubsub.v1.SchemaSettings.Builder subBuilder = null; - if (schemaSettings_ != null) { - subBuilder = schemaSettings_.toBuilder(); + kmsKeyName_ = s; + break; } - schemaSettings_ = input.readMessage(com.google.pubsub.v1.SchemaSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schemaSettings_); - schemaSettings_ = subBuilder.buildPartial(); + case 50: + { + com.google.pubsub.v1.SchemaSettings.Builder subBuilder = null; + if (schemaSettings_ != null) { + subBuilder = schemaSettings_.toBuilder(); + } + schemaSettings_ = + input.readMessage( + com.google.pubsub.v1.SchemaSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schemaSettings_); + schemaSettings_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 56: { - - satisfiesPzs_ = input.readBool(); - break; - } - case 66: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (messageRetentionDuration_ != null) { - subBuilder = messageRetentionDuration_.toBuilder(); + case 56: + { + satisfiesPzs_ = input.readBool(); + break; } - messageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageRetentionDuration_); - messageRetentionDuration_ = subBuilder.buildPartial(); + case 66: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); + } + messageRetentionDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,34 +165,33 @@ private Topic( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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); } @@ -173,6 +199,8 @@ protected com.google.protobuf.MapField internalGetMapField( public static final int NAME_FIELD_NUMBER = 1; 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,
@@ -183,6 +211,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -191,14 +220,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,
@@ -209,16 +239,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 { @@ -227,24 +256,23 @@ 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, + ""); } - 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_; } @@ -253,6 +281,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -260,22 +290,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
-
   @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();
   }
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -284,11 +314,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -297,16 +328,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, 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;
   }
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -315,12 +346,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 2;
    */
   @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();
     }
@@ -330,6 +360,8 @@ public java.lang.String getLabelsOrThrow(
   public static final int MESSAGE_STORAGE_POLICY_FIELD_NUMBER = 3;
   private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_;
   /**
+   *
+   *
    * 
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -337,6 +369,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * * @return Whether the messageStoragePolicy field is set. */ @java.lang.Override @@ -344,6 +377,8 @@ public boolean hasMessageStoragePolicy() { return messageStoragePolicy_ != null; } /** + * + * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -351,13 +386,18 @@ public boolean hasMessageStoragePolicy() {
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * * @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_; } /** + * + * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -374,6 +414,8 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
   public static final int KMS_KEY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object kmsKeyName_;
   /**
+   *
+   *
    * 
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -381,6 +423,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
    * 
* * string kms_key_name = 5; + * * @return The kmsKeyName. */ @java.lang.Override @@ -389,14 +432,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; } } /** + * + * *
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -404,16 +448,15 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 5; + * * @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 { @@ -424,11 +467,14 @@ public java.lang.String getKmsKeyName() { public static final int SCHEMA_SETTINGS_FIELD_NUMBER = 6; private com.google.pubsub.v1.SchemaSettings schemaSettings_; /** + * + * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * * @return Whether the schemaSettings field is set. */ @java.lang.Override @@ -436,18 +482,25 @@ public boolean hasSchemaSettings() { return schemaSettings_ != null; } /** + * + * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * * @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_; } /** + * + * *
    * Settings for validating messages published against a schema.
    * 
@@ -462,12 +515,15 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() public static final int SATISFIES_PZS_FIELD_NUMBER = 7; private boolean satisfiesPzs_; /** + * + * *
    * 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; + * * @return The satisfiesPzs. */ @java.lang.Override @@ -478,6 +534,8 @@ public boolean getSatisfiesPzs() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; /** + * + * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -490,6 +548,7 @@ public boolean getSatisfiesPzs() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @return Whether the messageRetentionDuration field is set. */ @java.lang.Override @@ -497,6 +556,8 @@ public boolean hasMessageRetentionDuration() { return messageRetentionDuration_ != null; } /** + * + * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -509,13 +570,18 @@ public boolean hasMessageRetentionDuration() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @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_; } /** + * + * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -535,6 +601,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -546,17 +613,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 (messageStoragePolicy_ != null) {
       output.writeMessage(3, getMessageStoragePolicy());
     }
@@ -584,34 +646,33 @@ 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 (messageStoragePolicy_ != null) {
-      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 (schemaSettings_ != null) {
-      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 (messageRetentionDuration_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getMessageRetentionDuration());
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, getMessageRetentionDuration());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -621,35 +682,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.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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -679,8 +733,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();
@@ -690,138 +743,142 @@ 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; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { 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); } @@ -831,16 +888,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -873,8 +929,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; } @@ -924,38 +979,39 @@ public com.google.pubsub.v1.Topic 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.Topic) { - return mergeFrom((com.google.pubsub.v1.Topic)other); + return mergeFrom((com.google.pubsub.v1.Topic) other); } else { super.mergeFrom(other); return this; @@ -968,8 +1024,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } @@ -1014,10 +1069,13 @@ public Builder mergeFrom( } 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,
@@ -1028,13 +1086,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; @@ -1043,6 +1101,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,
@@ -1053,15 +1113,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 { @@ -1069,6 +1128,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,
@@ -1079,20 +1140,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1103,15 +1166,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1122,37 +1188,36 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1164,6 +1229,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1171,22 +1238,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
-
     @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();
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1195,11 +1262,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1208,16 +1276,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, 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;
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1226,12 +1295,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @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();
       }
@@ -1239,11 +1307,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1251,23 +1320,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1275,19 +1342,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1295,18 +1363,20 @@ public Builder putLabels(
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       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_;
     /**
+     *
+     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1314,12 +1384,15 @@ public Builder putAllLabels(
      * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * * @return Whether the messageStoragePolicy field is set. */ public boolean hasMessageStoragePolicy() { return messageStoragePolicyBuilder_ != null || messageStoragePolicy_ != null; } /** + * + * *
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1327,16 +1400,21 @@ public boolean hasMessageStoragePolicy() {
      * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * * @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(); } } /** + * + * *
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1359,6 +1437,8 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy
       return this;
     }
     /**
+     *
+     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1379,6 +1459,8 @@ public Builder setMessageStoragePolicy(
       return this;
     }
     /**
+     *
+     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1391,7 +1473,9 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli
       if (messageStoragePolicyBuilder_ == null) {
         if (messageStoragePolicy_ != null) {
           messageStoragePolicy_ =
-            com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_).mergeFrom(value).buildPartial();
+              com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           messageStoragePolicy_ = value;
         }
@@ -1403,6 +1487,8 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli
       return this;
     }
     /**
+     *
+     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1423,6 +1509,8 @@ public Builder clearMessageStoragePolicy() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1432,11 +1520,13 @@ public Builder clearMessageStoragePolicy() {
      * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
      */
     public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() {
-      
+
       onChanged();
       return getMessageStoragePolicyFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1449,11 +1539,14 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
       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_;
       }
     }
     /**
+     *
+     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1463,14 +1556,17 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
      * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
      */
     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_;
@@ -1478,6 +1574,8 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
 
     private java.lang.Object kmsKeyName_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1485,13 +1583,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
      * 
* * string kms_key_name = 5; + * * @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; @@ -1500,6 +1598,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1507,15 +1607,14 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 5; + * * @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 { @@ -1523,6 +1622,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1530,20 +1631,22 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 5; + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1551,15 +1654,18 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 5; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1567,16 +1673,16 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 5; + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; @@ -1584,34 +1690,47 @@ 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_; /** + * + * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * * @return Whether the schemaSettings field is set. */ public boolean hasSchemaSettings() { return schemaSettingsBuilder_ != null || schemaSettings_ != null; } /** + * + * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * * @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(); } } /** + * + * *
      * Settings for validating messages published against a schema.
      * 
@@ -1632,14 +1751,15 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { return this; } /** + * + * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ - 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(); onChanged(); @@ -1650,6 +1770,8 @@ public Builder setSchemaSettings( return this; } /** + * + * *
      * Settings for validating messages published against a schema.
      * 
@@ -1660,7 +1782,9 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { if (schemaSettings_ != null) { schemaSettings_ = - com.google.pubsub.v1.SchemaSettings.newBuilder(schemaSettings_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.SchemaSettings.newBuilder(schemaSettings_) + .mergeFrom(value) + .buildPartial(); } else { schemaSettings_ = value; } @@ -1672,6 +1796,8 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { return this; } /** + * + * *
      * Settings for validating messages published against a schema.
      * 
@@ -1690,6 +1816,8 @@ public Builder clearSchemaSettings() { return this; } /** + * + * *
      * Settings for validating messages published against a schema.
      * 
@@ -1697,11 +1825,13 @@ public Builder clearSchemaSettings() { * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { - + onChanged(); return getSchemaSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Settings for validating messages published against a schema.
      * 
@@ -1712,11 +1842,14 @@ 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_; } } /** + * + * *
      * Settings for validating messages published against a schema.
      * 
@@ -1724,27 +1857,33 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ 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_; /** + * + * *
      * 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; + * * @return The satisfiesPzs. */ @java.lang.Override @@ -1752,32 +1891,38 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** + * + * *
      * 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; + * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ public Builder setSatisfiesPzs(boolean value) { - + satisfiesPzs_ = value; onChanged(); return this; } /** + * + * *
      * 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; + * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - + satisfiesPzs_ = false; onChanged(); return this; @@ -1785,8 +1930,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_; /** + * + * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1799,12 +1949,15 @@ public Builder clearSatisfiesPzs() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; } /** + * + * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1817,16 +1970,21 @@ public boolean hasMessageRetentionDuration() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @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(); } } /** + * + * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1854,6 +2012,8 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1879,6 +2039,8 @@ public Builder setMessageRetentionDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1896,7 +2058,9 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       if (messageRetentionDurationBuilder_ == null) {
         if (messageRetentionDuration_ != null) {
           messageRetentionDuration_ =
-            com.google.protobuf.Duration.newBuilder(messageRetentionDuration_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(messageRetentionDuration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           messageRetentionDuration_ = value;
         }
@@ -1908,6 +2072,8 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1933,6 +2099,8 @@ public Builder clearMessageRetentionDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1947,11 +2115,13 @@ public Builder clearMessageRetentionDuration() {
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() {
-      
+
       onChanged();
       return getMessageRetentionDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1969,11 +2139,14 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
       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_;
       }
     }
     /**
+     *
+     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1988,21 +2161,24 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     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_;
     }
+
     @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);
     }
 
@@ -2012,12 +2188,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();
   }
@@ -2026,16 +2202,16 @@ 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 {
-      return new Topic(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new Topic(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2050,6 +2226,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 85%
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 e4506eb8a..cbc1957b4 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,13 +1,31 @@
+/*
+ * Copyright 2020 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
 
 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,
@@ -18,10 +36,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,
@@ -32,12 +53,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(); /** + * + * *
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -47,6 +70,8 @@ public interface TopicOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -54,15 +79,13 @@ public interface TopicOrBuilder extends
    *
    * map<string, string> labels = 2;
    */
-  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();
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -70,9 +93,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -82,11 +106,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -94,11 +120,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -106,10 +132,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * * @return Whether the messageStoragePolicy field is set. */ boolean hasMessageStoragePolicy(); /** + * + * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -117,10 +146,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * * @return The messageStoragePolicy. */ com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy(); /** + * + * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -132,6 +164,8 @@ java.lang.String getLabelsOrThrow(
   com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder();
 
   /**
+   *
+   *
    * 
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -139,10 +173,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string kms_key_name = 5; + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -150,30 +187,38 @@ java.lang.String getLabelsOrThrow(
    * 
* * string kms_key_name = 5; + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * * @return Whether the schemaSettings field is set. */ boolean hasSchemaSettings(); /** + * + * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * * @return The schemaSettings. */ com.google.pubsub.v1.SchemaSettings getSchemaSettings(); /** + * + * *
    * Settings for validating messages published against a schema.
    * 
@@ -183,17 +228,22 @@ java.lang.String getLabelsOrThrow( com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder(); /** + * + * *
    * 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; + * * @return The satisfiesPzs. */ boolean getSatisfiesPzs(); /** + * + * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -206,10 +256,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** + * + * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -222,10 +275,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration message_retention_duration = 8; + * * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** + * + * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
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 69%
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 3918ebb16..1925b6c4f 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,39 +1,55 @@
+/*
+ * Copyright 2020 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
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,43 @@ private UpdateSnapshotRequest( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Snapshot.Builder subBuilder = null; - if (snapshot_ != null) { - subBuilder = snapshot_.toBuilder(); - } - snapshot_ = input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshot_); - snapshot_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.pubsub.v1.Snapshot.Builder subBuilder = null; + if (snapshot_ != null) { + subBuilder = snapshot_.toBuilder(); + } + snapshot_ = + input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshot_); + snapshot_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,39 @@ private UpdateSnapshotRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } 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 @@ -127,11 +152,14 @@ public boolean hasSnapshot() { return snapshot_ != null; } /** + * + * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The snapshot. */ @java.lang.Override @@ -139,6 +167,8 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } /** + * + * *
    * Required. The updated snapshot object.
    * 
@@ -153,12 +183,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 @@ -166,12 +200,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * 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 @@ -179,12 +217,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() { @@ -192,6 +233,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +245,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 (snapshot_ != null) { output.writeMessage(1, getSnapshot()); } @@ -221,12 +262,10 @@ public int getSerializedSize() { size = 0; if (snapshot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSnapshot()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshot()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,22 +275,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -277,118 +315,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() @@ -396,16 +443,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +471,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 @@ -446,7 +492,8 @@ 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); + com.google.pubsub.v1.UpdateSnapshotRequest result = + new com.google.pubsub.v1.UpdateSnapshotRequest(this); if (snapshotBuilder_ == null) { result.snapshot_ = snapshot_; } else { @@ -465,38 +512,39 @@ public com.google.pubsub.v1.UpdateSnapshotRequest 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.UpdateSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other); + return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest) other); } else { super.mergeFrom(other); return this; @@ -542,24 +590,35 @@ public Builder mergeFrom( 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 snapshotBuilder_ != null || snapshot_ != null; } /** + * + * *
      * 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() { @@ -570,11 +629,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) { @@ -590,14 +652,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(); onChanged(); @@ -608,17 +672,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 (snapshot_ != null) { snapshot_ = - com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); } else { snapshot_ = value; } @@ -630,11 +697,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() { if (snapshotBuilder_ == null) { @@ -648,48 +718,59 @@ 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() { - + onChanged(); 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_; @@ -697,42 +778,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 updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * 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) { @@ -748,15 +845,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(); onChanged(); @@ -767,18 +866,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -790,12 +892,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() { if (updateMaskBuilder_ == null) { @@ -809,58 +914,71 @@ 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() { - + onChanged(); 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); } @@ -870,12 +988,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(); } @@ -884,16 +1002,16 @@ 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 { - return new UpdateSnapshotRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,6 +1026,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 53e7d7fe9..2acbd1120 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,31 +1,55 @@ +/* + * Copyright 2020 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 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.
    * 
@@ -35,32 +59,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 65% 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 cb6f854f8..0e9110799 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,39 +1,55 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,43 @@ private UpdateSubscriptionRequest( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Subscription.Builder subBuilder = null; - if (subscription_ != null) { - subBuilder = subscription_.toBuilder(); - } - subscription_ = input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subscription_); - subscription_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.pubsub.v1.Subscription.Builder subBuilder = null; + if (subscription_ != null) { + subBuilder = subscription_.toBuilder(); + } + subscription_ = + input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subscription_); + subscription_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,41 @@ private UpdateSubscriptionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } 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 @@ -127,23 +154,34 @@ public boolean hasSubscription() { return subscription_ != null; } /** + * + * *
    * 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() { @@ -153,12 +191,16 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { 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 @@ -166,12 +208,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * 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 @@ -179,12 +225,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() { @@ -192,6 +241,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +253,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 (subscription_ != null) { output.writeMessage(1, getSubscription()); } @@ -221,12 +270,10 @@ public int getSerializedSize() { size = 0; if (subscription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubscription()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,22 +283,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -277,118 +323,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() @@ -396,16 +451,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +479,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 @@ -446,7 +500,8 @@ 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); + com.google.pubsub.v1.UpdateSubscriptionRequest result = + new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { result.subscription_ = subscription_; } else { @@ -465,38 +520,39 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest 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.UpdateSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -542,39 +598,58 @@ public Builder mergeFrom( 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 subscriptionBuilder_ != null || subscription_ != null; } /** + * + * *
      * 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) { @@ -590,14 +665,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(); onChanged(); @@ -608,17 +686,23 @@ 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 (subscription_ != null) { subscription_ = - com.google.pubsub.v1.Subscription.newBuilder(subscription_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.Subscription.newBuilder(subscription_) + .mergeFrom(value) + .buildPartial(); } else { subscription_ = value; } @@ -630,11 +714,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() { if (subscriptionBuilder_ == null) { @@ -648,48 +736,64 @@ 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() { - + onChanged(); 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_; @@ -697,42 +801,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 updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * 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) { @@ -748,15 +868,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(); onChanged(); @@ -767,18 +889,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -790,12 +915,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() { if (updateMaskBuilder_ == null) { @@ -809,58 +937,71 @@ 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() { - + onChanged(); 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); } @@ -870,12 +1011,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(); } @@ -884,16 +1025,16 @@ 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 { - return new UpdateSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,6 +1049,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 812f8da0d..730dc304b 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,66 +1,107 @@ +/* + * Copyright 2020 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 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 73% 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 9cf9d1306..51fe720e6 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,39 +1,55 @@ +/* + * Copyright 2020 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 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private UpdateTopicRequest( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Topic.Builder subBuilder = null; - if (topic_ != null) { - subBuilder = topic_.toBuilder(); - } - topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topic_); - topic_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.pubsub.v1.Topic.Builder subBuilder = null; + if (topic_ != null) { + subBuilder = topic_.toBuilder(); + } + topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topic_); + topic_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +111,39 @@ private UpdateTopicRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } 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 @@ -127,11 +151,14 @@ public boolean hasTopic() { return topic_ != null; } /** + * + * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topic. */ @java.lang.Override @@ -139,6 +166,8 @@ public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } /** + * + * *
    * Required. The updated topic object.
    * 
@@ -153,6 +182,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
@@ -161,7 +192,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 @@ -169,6 +202,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -177,7 +212,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 @@ -185,6 +222,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
@@ -193,7 +232,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() { @@ -201,6 +241,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +253,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 (topic_ != null) { output.writeMessage(1, getTopic()); } @@ -230,12 +270,10 @@ public int getSerializedSize() { size = 0; if (topic_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTopic()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,7 +283,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); @@ -254,13 +292,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -286,118 +322,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() @@ -405,16 +450,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +478,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 @@ -455,7 +499,8 @@ 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); + com.google.pubsub.v1.UpdateTopicRequest result = + new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { result.topic_ = topic_; } else { @@ -474,38 +519,39 @@ public com.google.pubsub.v1.UpdateTopicRequest 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.UpdateTopicRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -551,24 +597,33 @@ public Builder mergeFrom( 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 topicBuilder_ != null || topic_ != null; } /** + * + * *
      * 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() { @@ -579,6 +634,8 @@ public com.google.pubsub.v1.Topic getTopic() { } } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -599,14 +656,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(); onChanged(); @@ -617,6 +675,8 @@ public Builder setTopic( return this; } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -626,8 +686,7 @@ public Builder setTopic( public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { if (topic_ != null) { - topic_ = - com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); + topic_ = com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); } else { topic_ = value; } @@ -639,6 +698,8 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { return this; } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -657,6 +718,8 @@ public Builder clearTopic() { return this; } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -664,11 +727,13 @@ public Builder clearTopic() { * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { - + onChanged(); return getTopicFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated topic object.
      * 
@@ -679,11 +744,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.
      * 
@@ -691,14 +757,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_; @@ -706,8 +774,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
@@ -716,13 +789,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 updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -731,17 +808,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
@@ -750,7 +833,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) { @@ -766,6 +850,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
@@ -774,10 +860,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(); onChanged(); @@ -788,6 +874,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
@@ -796,13 +884,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -814,6 +903,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
@@ -822,7 +913,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() { if (updateMaskBuilder_ == null) { @@ -836,6 +928,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
@@ -844,14 +938,17 @@ 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() { - + onChanged(); 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
@@ -860,17 +957,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
@@ -879,24 +980,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); } @@ -906,12 +1011,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(); } @@ -920,16 +1025,16 @@ 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 { - return new UpdateTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,6 +1049,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 74% 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 c5ad2f1b9..c65735f57 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,31 +1,55 @@ +/* + * Copyright 2020 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 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.
    * 
@@ -35,6 +59,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
@@ -43,11 +69,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
@@ -56,11 +86,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
@@ -69,7 +103,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 72% 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 0dbbbb9da..b58b83ebc 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,24 +1,42 @@ +/* + * Copyright 2020 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 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; @@ -27,16 +45,15 @@ private ValidateMessageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateMessageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ValidateMessageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,50 +72,54 @@ private ValidateMessageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - schemaSpecCase_ = 2; - schemaSpec_ = s; - break; - } - case 26: { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schemaSpecCase_ == 3) { - subBuilder = ((com.google.pubsub.v1.Schema) schemaSpec_).toBuilder(); + parent_ = s; + break; } - schemaSpec_ = - input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.pubsub.v1.Schema) schemaSpec_); - schemaSpec_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + schemaSpecCase_ = 2; + schemaSpec_ = s; + break; } - schemaSpecCase_ = 3; - break; - } - case 34: { - - message_ = input.readBytes(); - break; - } - case 40: { - int rawValue = input.readEnum(); + case 26: + { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schemaSpecCase_ == 3) { + subBuilder = ((com.google.pubsub.v1.Schema) schemaSpec_).toBuilder(); + } + schemaSpec_ = + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.pubsub.v1.Schema) schemaSpec_); + schemaSpec_ = subBuilder.buildPartial(); + } + schemaSpecCase_ = 3; + break; + } + case 34: + { + message_ = input.readBytes(); + break; + } + case 40: + { + int rawValue = input.readEnum(); - encoding_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + encoding_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,35 +127,40 @@ private ValidateMessageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -150,32 +176,40 @@ 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; 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 @@ -184,30 +218,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 { @@ -217,24 +253,30 @@ public java.lang.String getParent() { public static final int NAME_FIELD_NUMBER = 2; /** + * + * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * 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.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The name. */ public java.lang.String getName() { @@ -245,8 +287,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; @@ -255,24 +296,25 @@ public java.lang.String getName() { } } /** + * + * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * 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; } @@ -284,11 +326,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 @@ -296,21 +341,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
    * 
@@ -320,7 +370,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(); } @@ -328,11 +378,14 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { public static final int MESSAGE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString message_; /** + * + * *
    * Message to validate against the provided `schema_spec`.
    * 
* * bytes message = 4; + * * @return The message. */ @java.lang.Override @@ -343,31 +396,40 @@ public com.google.protobuf.ByteString getMessage() { public static final int ENCODING_FIELD_NUMBER = 5; private int encoding_; /** + * + * *
    * 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() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(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; @@ -379,8 +441,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_); } @@ -412,16 +473,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -431,27 +491,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: @@ -490,118 +547,127 @@ 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() @@ -609,16 +675,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -634,9 +699,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 @@ -655,7 +720,8 @@ 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); + com.google.pubsub.v1.ValidateMessageRequest result = + new com.google.pubsub.v1.ValidateMessageRequest(this); result.parent_ = parent_; if (schemaSpecCase_ == 2) { result.schemaSpec_ = schemaSpec_; @@ -678,38 +744,39 @@ public com.google.pubsub.v1.ValidateMessageRequest 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.ValidateMessageRequest) { - return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest)other); + return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest) other); } else { super.mergeFrom(other); return this; @@ -729,19 +796,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.unknownFields); onChanged(); @@ -771,12 +841,12 @@ public Builder mergeFrom( } 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() { @@ -786,22 +856,25 @@ public Builder clearSchemaSpec() { return this; } - 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; @@ -810,21 +883,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 { @@ -832,69 +908,85 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } /** + * + * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return Whether the name field is set. */ @java.lang.Override @@ -902,12 +994,15 @@ public boolean hasName() { return schemaSpecCase_ == 2; } /** + * + * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -917,8 +1012,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; @@ -929,25 +1023,26 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * 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; } @@ -957,32 +1052,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - schemaSpecCase_ = 2; + throw new NullPointerException(); + } + schemaSpecCase_ = 2; schemaSpec_ = value; onChanged(); return this; } /** + * + * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { @@ -994,21 +1094,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); schemaSpecCase_ = 2; schemaSpec_ = value; onChanged(); @@ -1016,13 +1118,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 @@ -1030,11 +1138,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 @@ -1052,6 +1163,8 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1072,14 +1185,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(); @@ -1090,6 +1204,8 @@ public Builder setSchema( return this; } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1098,10 +1214,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; } @@ -1117,6 +1235,8 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1140,6 +1260,8 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1150,6 +1272,8 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1168,6 +1292,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } } /** + * + * *
      * Ad-hoc schema against which to validate
      * 
@@ -1175,31 +1301,38 @@ 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; - onChanged();; + onChanged(); + ; return schemaBuilder_; } 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 @@ -1207,33 +1340,39 @@ 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(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
      * Message to validate against the provided `schema_spec`.
      * 
* * bytes message = 4; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; @@ -1241,37 +1380,47 @@ 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. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** + * + * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return The encoding. */ @java.lang.Override @@ -1281,11 +1430,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. */ @@ -1293,28 +1445,31 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; 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); } @@ -1324,12 +1479,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(); } @@ -1338,16 +1493,16 @@ 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 { - return new ValidateMessageRequest(input, extensionRegistry); - } - }; + 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 { + return new ValidateMessageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1362,6 +1517,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 53b514966..f2c3968c0 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,85 +1,126 @@ +/* + * Copyright 2020 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 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.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return Whether the name field is set. */ boolean hasName(); /** + * + * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * 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
    * 
@@ -89,30 +130,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 67% 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 591d694d8..f734b6925 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,9 +1,26 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; /** + * + * *
  * Response for the `ValidateMessage` method.
  * Empty for now.
@@ -11,30 +28,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ValidateMessageResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,13 +69,13 @@ private ValidateMessageResponse(
           case 0:
             done = true;
             break;
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -67,27 +83,30 @@ private ValidateMessageResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
@@ -99,8 +118,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 {
     unknownFields.writeTo(output);
   }
 
@@ -118,12 +136,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -141,97 +160,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.
@@ -239,21 +265,23 @@ 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()
@@ -261,16 +289,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -278,9 +305,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
@@ -299,7 +326,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;
     }
@@ -308,38 +336,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;
@@ -376,9 +405,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -388,12 +417,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();
   }
@@ -402,16 +431,16 @@ 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 {
-      return new ValidateMessageResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new ValidateMessageResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -426,6 +455,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..e8be64dc7
--- /dev/null
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 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
+
+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 68%
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 6b493f678..5aa2bf5dd 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,40 +1,57 @@
+/*
+ * Copyright 2020 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
 
 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ValidateSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,34 @@ private ValidateSchemaRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); + parent_ = s; + break; } - schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); + case 18: + { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schema_ != null) { + subBuilder = schema_.toBuilder(); + } + schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schema_); + schema_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +105,42 @@ private ValidateSchemaRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } public static final int PARENT_FIELD_NUMBER = 1; 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 @@ -123,30 +149,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 { @@ -157,11 +185,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 @@ -169,11 +200,14 @@ public boolean hasSchema() { return schema_ != null; } /** + * + * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -181,6 +215,8 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** + * + * *
    * Required. The schema object to validate.
    * 
@@ -193,6 +229,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +241,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_); } @@ -225,8 +261,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +271,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -272,118 +306,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() @@ -391,16 +434,15 @@ 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) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +458,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 @@ -437,7 +479,8 @@ 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); + com.google.pubsub.v1.ValidateSchemaRequest result = + new com.google.pubsub.v1.ValidateSchemaRequest(this); result.parent_ = parent_; if (schemaBuilder_ == null) { result.schema_ = schema_; @@ -452,38 +495,39 @@ public com.google.pubsub.v1.ValidateSchemaRequest 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.ValidateSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest)other); + return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest) other); } else { super.mergeFrom(other); return this; @@ -530,19 +574,23 @@ public Builder mergeFrom( 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; @@ -551,21 +599,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 { @@ -573,57 +624,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,24 +695,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 schemaBuilder_ != null || schema_ != null; } /** + * + * *
      * 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() { @@ -659,6 +732,8 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -679,14 +754,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(); onChanged(); @@ -697,6 +773,8 @@ public Builder setSchema( return this; } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -706,8 +784,7 @@ public Builder setSchema( public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { if (schema_ != null) { - schema_ = - com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); + schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -719,6 +796,8 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -737,6 +816,8 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -744,11 +825,13 @@ public Builder clearSchema() { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { - + onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The schema object to validate.
      * 
@@ -759,11 +842,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.
      * 
@@ -771,21 +855,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); } @@ -795,12 +882,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(); } @@ -809,16 +896,16 @@ 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 { - return new ValidateSchemaRequest(input, extensionRegistry); - } - }; + 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 { + return new ValidateSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +920,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 57% 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 c40d9f9a7..2c972155f 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,53 +1,86 @@ +/* + * Copyright 2020 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 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 67% 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 f08f29d83..e7755cca3 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,9 +1,26 @@ +/* + * Copyright 2020 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 package com.google.pubsub.v1; /** + * + * *
  * Response for the `ValidateSchema` method.
  * Empty for now.
@@ -11,30 +28,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ValidateSchemaResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,13 +69,13 @@ private ValidateSchemaResponse(
           case 0:
             done = true;
             break;
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -67,27 +83,30 @@ private ValidateSchemaResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
@@ -99,8 +118,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 {
     unknownFields.writeTo(output);
   }
 
@@ -118,12 +136,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -141,97 +160,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.
@@ -239,21 +265,23 @@ 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()
@@ -261,16 +289,15 @@ 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) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -278,9 +305,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
@@ -299,7 +326,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;
     }
@@ -308,38 +336,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;
@@ -376,9 +405,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -388,12 +417,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();
   }
@@ -402,16 +431,16 @@ 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 {
-      return new ValidateSchemaResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new ValidateSchemaResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -426,6 +455,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..9e8467fc1
--- /dev/null
+++ b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 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
+
+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